On Tue, Oct 30, 2018 at 2:34 PM Matt Zagrabelny <[email protected]> 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
>
> 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?
>

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

1.
https://github.com/puppetlabs/puppet/blob/5.5.x/lib/puppet/application/master.rb#L274


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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAOLfK3UsJHY%2BpFMXUpM1H4%2BL6FajzPj01x09EqfAcWHnkSqb1Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAOLfK3UsJHY%2BpFMXUpM1H4%2BL6FajzPj01x09EqfAcWHnkSqb1Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2B%3DBEqVWin1P6KjyDPwsQ5MyhfaYab9-Wi%3Dtxkf5wij0vYVxFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to