Title: Message Title
Dorin Pleava created an issue
Puppet / PUP-10710
Disable setting invalid sections in puppet.conf
Issue Type:
Bug
Affects Versions:
PUP 6.18.0
Assignee:
Unassigned
Created:
2020/10/08 3:10 AM
Priority:
Normal
Reporter:
Dorin Pleava
Puppet Version: 6.18.0 Puppet Server Version: N/A OS Name/Version: RedHat 8 Puppet does not reject setting an invalid section in puppet.conf via the set command. As the invalid section will be written into puppet.conf, the next time puppet.conf gets parsed, an error will be shown.
root@unlikely-beggar ~# puppet config set random213 --section random4212 root@unlikely-beggar ~# cat /etc/puppetlabs/puppet/puppet.conf [random4212] random213 = root@unlikely-beggar ~# puppet config print server Error: Could not parse /etc/puppetlabs/puppet/puppet.conf: Illegal section 'random4212' in config file at (file: /etc/puppetlabs/puppet/puppet.conf, line: 1). The only valid puppet.conf sections are: [main, master, agent, user, server]. Please use the directory environments feature to specify environments. (See https://puppet.com/docs/puppet/latest/environments_about.html) puppet
Desired Behavior: Do not allow setting of invalid sections in puppet.conf Actual Behavior: Setting of invalid sections in puppet.conf works only on the first try