Issue #8547 has been updated by Nan Liu.
Ok, I had a chance to look at this, it's appears puppet use run_mode to determine the setting. I'm not sure what implications we have setting run_mode :master which also requires this script to be rewritten as a Puppet::Application. I think it was best avoided when I saw the comment with set_run_mode. Also Puppet.settings.use(:main, :master) alone wan't sufficient and puppet was trying to create directories specified in the config file, which was beyond the purpose of this tool, so I did another rewrite to merge the config hash instead and load the puppet defaults for missing values. https://github.com/nanliu/puppet/blob/ticket%2F2.7.x%2F8547/ext/puppetstoredconfigclean.rb ---------------------------------------- Bug #8547: puppetstoredconfigclean checks only [master] for database configuration, should also check [main] https://projects.puppetlabs.com/issues/8547 Author: Pieter Lexis Status: Investigating Priority: Normal Assignee: Nan Liu Category: ext Target version: Affected Puppet version: 2.6.8 Keywords: puppetstoredconfigclean Branch: I use stored configs on the puppetmaster. The database information is in the [main] section of puppet.conf (because of queuing, puppetqd checks the [main] for this information). The [master] section of puppet.conf is empty. Puppet works as expected. However, puppetstoredconfigclean doesn't The following error is thrown: /usr/sbin/puppetstoredconfigclean:74: Invalid db adapter (ArgumentError) When the database information is specified in the [master] section, puppetstoredconfigclean works as expected. I would expect that puppetstoredconfigclean behaves the same as the puppetmaster when reading it's configuration. The puppet version is 2.6.8 from debian-backports. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
