puppet.conf ini heading

8 views
Skip to first unread message

Matt Zagrabelny

unread,
Oct 30, 2018, 9:34:35 PM10/30/18
to puppet...@googlegroups.com
Greetings,

I'm running puppet 5.5.6 (Debian testing.)

I'm seeing some curious and inconsistent results from where I put config settings in /etc/puppet/puppet.conf. When I use the [master] heading, the "external_nodes" setting is read by the puppet master:

# cat /etc/puppet/puppet.conf
[master]
node_terminus  = exec
external_nodes = /opt/bin/my-enc
# systemctl restart puppet-master.service
# puppet config print external_nodes
none

However, if I remove the "master" section heading in the puppet.conf file, I get the results I expect:

# cat /etc/puppet/puppet.conf
node_terminus  = exec
external_nodes = /opt/bin/my-enc
# systemctl restart puppet-master.service
# puppet config print external_nodes
/opt/bin/my-enc

Should I file a bug or is this somehow expected?

Thanks!

-m

Justin Stoller

unread,
Oct 30, 2018, 10:09:34 PM10/30/18
to puppet...@googlegroups.com
When your master run it uses only certain sections of the config file (mainly "master" and "main"[1]), while config print will by default use the section "main". You can use the `--section <section>` flag to act on a specific section. If you don't specify a section in the puppet.conf the setting will be applied to the "main" section.

eg `puppet config print --section master external_nodes` should give you want you want.

HTH,
Justin



Thanks!

-m

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOLfK3UsJHY%2BpFMXUpM1H4%2BL6FajzPj01x09EqfAcWHnkSqb1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Matt Zagrabelny

unread,
Oct 30, 2018, 10:15:20 PM10/30/18
to puppet...@googlegroups.com
On Tue, Oct 30, 2018 at 5:10 PM Justin Stoller <jus...@puppet.com> wrote:


On Tue, Oct 30, 2018 at 2:34 PM Matt Zagrabelny <mzag...@d.umn.edu> wrote:
Greetings,

I'm running puppet 5.5.6 (Debian testing.)

I'm seeing some curious and inconsistent results from where I put config settings in /etc/puppet/puppet.conf. When I use the [master] heading, the "external_nodes" setting is read by the puppet master:

# cat /etc/puppet/puppet.conf
[master]
node_terminus  = exec
external_nodes = /opt/bin/my-enc
# systemctl restart puppet-master.service
# puppet config print external_nodes
none


[...] 
 
When your master run it uses only certain sections of the config file (mainly "master" and "main"[1]), while config print will by default use the section "main". You can use the `--section <section>` flag to act on a specific section. If you don't specify a section in the puppet.conf the setting will be applied to the "main" section.

eg `puppet config print --section master external_nodes` should give you want you want.
 
Indeed it does!

Thanks, Justin!

-m 
Reply all
Reply to author
Forward
0 new messages