I''ve set up a new puppet 2.7.9 machine with the master running on Apache with Passenger. Things have been going well and I''m slowly developing manifests. I''ve also set up puppet dashboard on the master to act as an ENC. Since the batch functionality for dashboard is lacking, I used a custom face based off Kelsey Hightower''s dashboard face to import classes/group memberships from a yaml file. The khightower page isn''t coming up on github, but here''s the presentation talking about it: http://www.slideshare.net/kelseyhightower/streamlining-workflows-with-puppet-faces-9413828 Everything was going great, until recently I went to update the face to import node parameters and kept getting errors I needed to install a new gem: # puppet dashboard import ~/param-test.yaml nil err: Please install the adapter: `gem install activerecord--adapter` (no such file to load -- active_record/connection_adapters/_adapter) err: Try ''puppet help dashboard import'' for usage The face reads the ActiveRecord connection information from puppet.conf: # cat /etc/puppet/puppet.conf ... [dashboard] dashboard_face_adapter = mysql dashboard_face_host = 127.0.0.1 dashboard_face_database = dashboard dashboard_face_username = dashboard dashboard_face_password = <redacted> Here''s the code which reads the settings: def config(options) @class = options[:class] @group = options[:group] @user = options[:username] || Puppet.settings[:dashboard_face_username] @password = options[:password] || Puppet.settings[:dashboard_face_password] @database = options[:database] || Puppet.settings[:dashboard_face_database] @host = options[:host] || Puppet.settings[:dashboard_face_host] @adapter = options[:adapter] || Puppet.settings[:dashboard_face_adapter] #Setup the active record database connection ActiveRecord::Base.establish_connection( :adapter => @adapter, :host => @host, :database => @database, :username => @user, :password => @password ) end I don''t see these settings at all when I run puppet config print all # puppet config print user puppet # puppet config print dashboard_face_username invalid parameter: dashboard_face_username # puppet config print all ... csrdir = /var/lib/puppet/ssl/ca/requests daemonize = true dbadapter = sqlite3 dbconnections = "" ... I''m confused whats going on here as the import worked last week and I can''t figure out how to get more information. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Stefan Heijmans
2012-Feb-04 08:39 UTC
[Puppet Users] Re: Puppet no longer reading puppet.conf
Check http://projects.puppetlabs.com/issues/7270 puppet.conf doesn''t support that face configuration options yet. I use the command line option;>>You can override database setting on the command line: >>--adapter mysql --host 127.0.0.1 --database dashboard --username user--password password>>the import worked last weekI have no succes with importing yaml files, other functions work fine. Have send an email to Kelsey about this. Stefan. -- 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/-/itZtv-JsZ2AJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.