Issue #8547 has been updated by Jason Hancock.

Status changed from Closed to Re-opened
Target version deleted (2.7.10)

I have a problem with the patch....I'm running 2.7.10 with stored configs 
turned on and using MySQL as the dbadapter. My database settings are in the 
[master] section of /etc/puppet/puppet.conf. 

The problem is that puppet.conf isn't getting read at all now....all of the 
settings are getting their default values. I noticed this because I got a stack 
trace complaining about not being able to load the sqlite3 driver. Some 
investigation and puts debugging inside the puppetstoredconfigclean.rb script 
proved that it wasn't picking up the settings from puppet.conf.

I traced the problem back to this code:
    if config != Puppet[:config]
      Puppet[:config]=config
      Puppet.settings.parse
    end
    
To get it to work for my case, I moved the call to Puppet.settings.parse 
outside the if statement and it now works fine.
    if config != Puppet[:config]
      Puppet[:config]=config
    end
    Puppet.settings.parse

 I didn't test the case where you have the db settings in the [main] section.
----------------------------------------
Bug #8547: puppetstoredconfigclean checks only [master] for database 
configuration, should also check [main]
https://projects.puppetlabs.com/issues/8547

Author: Pieter Lexis
Status: Re-opened
Priority: Normal
Assignee: 
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.

Reply via email to