# File lib/puppet/util/settings.rb, line 579
579:     def to_config
580:         str = %{The configuration file for #{Puppet[:name]}.  Note that this file
581: is likely to have unused configuration parameters in it; any parameter that's
582: valid anywhere in Puppet can be in any config file, even if it's not used.
583: 
584: Every section can specify three special parameters: owner, group, and mode.
585: These parameters affect the required permissions of any files specified after
586: their specification.  Puppet will sometimes use these parameters to check its
587: own configured state, so they can be used to make Puppet a bit more self-managing.
588: 
589: Generated on #{Time.now}.
590: 
591: }.gsub(/^/, "# ")
592: 
593:         # Add a section heading that matches our name.
594:         if @config.include?(:name)
595:             str += "[%s]\n" % self[:name]
596:         end
597:         eachsection do |section|
598:             persection(section) do |obj|
599:                 str += obj.to_config + "\n"
600:             end
601:         end
602: 
603:         return str
604:     end