Code comments


To add comments to your Puppet code, use shell-style or hash comments. 

Hash comments begin with a hash symbol (#) and continue to the end of a line. You can start comments either at the beginning of a line or partway through a line that began with code.
# This is a comment
file {'/etc/ntp.conf': # This is another comment
  ensure => file,
  owner  => root,
How helpful was this page?

If you leave us your email, we may contact you regarding your feedback. For more information on how Puppet uses your personal information, see our privacy policy.

Puppet sites use proprietary and third-party cookies. By using our sites, you agree to our cookie policy.