Just upgraded my puppet master to 3.0.0. We have a very simple setup.
However, when restarting, I see this error:
Starting puppetmaster:
/usr/local/lib/ruby/gems/1.8/gems/puppet-3.0.0/lib/puppet/application.rb:273:in
`run_mode': undefined method `settings' for Puppet:Module (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/puppet-3.0.0/lib/puppet/application/master.rb:5
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in
`require'
from /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.19/bin/puppetmasterd:3
from /usr/local/bin/puppetmasterd:23:in `load'
from /usr/local/bin/puppetmasterd:23
The code that is triggering this:
# Sets or gets the run_mode name. Sets the run_mode name if a mode_name
>> is
>
> # passed. Otherwise, gets the run_mode or a default run_mode
>
> #
>
> def run_mode( mode_name = nil)
>
> if mode_name
>
> *Puppet.settings.preferred_run_mode = mode_name*
>
> end
>
>
>> return @run_mode if @run_mode and not mode_name
>
>
>> require 'puppet/util/run_mode'
>
> @run_mode = Puppet::Util::RunMode[ mode_name ||
>> Puppet.settings.preferred_run_mode ]
>
> end
>
>
Anyone else run into this problem?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/ugWYcqNvHgEJ.
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-users?hl=en.