Code comments

This version is out of date. For current versions, see Puppet packages and versions.
Sections

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,
}
See an issue? Please file a JIRA ticket in our [DOCUMENTATION] project
Puppet sites use proprietary and third-party cookies. By using our sites, you agree to our cookie policy.