Alexandre
2011-Oct-13 10:29 UTC
[Puppet Users] How to divide the puppet.conf file in multiple files ?
Hi, How can i divide my puppet.conf file in multiple files ? I would like to have the [main] and [agent] section in puppet.conf and [master] in puppetmaster.conf for example. I could call sone "include" or "import" statement inside puppet.conf to include the content of puppetmaster.conf in my configuration Not sure if this is a stupid question, but i could not find any "include" or "import" statement in the man page of puppet.conf Alex -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dean Wilson
2011-Oct-13 15:18 UTC
Re: [Puppet Users] How to divide the puppet.conf file in multiple files ?
On Thu, Oct 13, 2011 at 03:29:29AM -0700, Alexandre wrote:> How can i divide my puppet.conf file in multiple files ? > I would like to have the [main] and [agent] section in puppet.conf and > [master] in puppetmaster.conf for example. I could call sone "include" > or "import" statement inside puppet.conf to include the content of > puppetmaster.conf in my configurationOne option is that you can specify the config file to use with --config when you start your puppet master / clients. # puppet master --configprint config /etc/puppet/puppet.conf Dean -- Dean Wilson http://www.unixdaemon.net @unixdaemon http://www.puppetcookbook.com @puppetcookbook -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Luke Bigum
2011-Oct-14 07:57 UTC
[Puppet Users] Re: How to divide the puppet.conf file in multiple files ?
If you''re trying to reduce the amount of repeated configuration by only storing the [main] and [agent] sections once, you can achieve this using the Concat module (https://github.com/ripienaar/puppet- concat). You have a file for /etc/puppet/puppet.conf with an Agent fragment, then on your Puppet Master you can add another fragment for the [master] section. On Oct 13, 11:29 am, Alexandre <alexandre.fou...@gmail.com> wrote:> Hi, > > How can i divide my puppet.conf file in multiple files ? > I would like to have the [main] and [agent] section in puppet.conf and > [master] in puppetmaster.conf for example. I could call sone "include" > or "import" statement inside puppet.conf to include the content of > puppetmaster.conf in my configuration > > Not sure if this is a stupid question, but i could not find any > "include" or "import" statement in the man page of puppet.conf > > Alex-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.