I've installed Puppet and am installing Dashboard on CentOS 6.  I'm running 
into an 'undefined method' when installing the dashboard.  To install 
Puppet Open Source, I ran:

  > rpm -ivh 
http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-6.noarch.rpm<https://webmail.battelle.org/owa/redir.aspx?C=49d16157280e4bac838fdb9a9a3f5644&URL=http%3a%2f%2fyum.puppetlabs.com%2fel%2f6%2fproducts%2fi386%2fpuppetlabs-release-6-6.noarch.rpm>
  > rpm -Uvh 
http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm<https://webmail.battelle.org/owa/redir.aspx?C=49d16157280e4bac838fdb9a9a3f5644&URL=http%3a%2f%2fdownload.fedoraproject.org%2fpub%2fepel%2f6%2fx86_64%2fepel-release-6-7.noarch.rpm>
  > yum install puppet-server
  > yum install puppet

I created the /etc/puppet/manifests/site.pp and 
/etc/puppet/manifests/classes/sudo.pp files and ran:

  > service puppetmaster start
  > chkconfig puppetmaster on

I created the /etc/sysconfig/puppet file and then ran

  > service puppet start
  > chkconfig puppet on

To install dashboard I followed the steps in the Dashboard Manual.  First I 
installed:

  * RubyGems
  * Rake
  * MySQL
  * Ruby-MySQL

Then I ran:

  > yum install puppet-dashboard

I updated the database.yml and settings.yml files and created a puppet DB 
in MySQL by running the following in MySQL's workbench.

  CREATE DATABASE dashboard CHARACTER SET utf8;
  CREATE USER 'dashboard'@'localhost' IDENTIFIED BY 'dbpassword';
  GRANT ALL PRIVILEGES ON dashboard.* TO 'dashboard'@'localhost';

I've added the following line to the /etc/mysql/my.cnf file.

  max_allowed_packet = 32M

And executed 'set max_allowed_packet = 33554432;' in the MySQL workbench.

I then ran the following within the /usr/share/puppet-dashboard/ directory.

  > rake RAILS_ENV=production db:migrate

I got the following error message.

  rake aborted!
  undefined method `source_index' for Gem:Module

  (See full trace by running task with --trace)

So I ran it again with trace turned on and got the following.

  rake aborted!
  undefined method `source_index' for Gem:Module
  
/usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in
 
`add_frozen_gem_path'
  /usr/share/puppet-dashboard/config/boot.rb:50:in `load_initializer'
  /usr/share/puppet-dashboard/config/boot.rb:41:in `run'
  /usr/share/puppet-dashboard/config/boot.rb:14:in `boot!'
  /usr/share/puppet-dashboard/config/boot.rb:113
  /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in 
`gem_original_require'
  /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in 
`require'
  /usr/share/puppet-dashboard/Rakefile:4
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in 
`load'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in 
`load_rakefile'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:589:in 
`raw_load_rakefile'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:89:in 
`load_rakefile'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in 
`standard_exception_handling'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:88:in 
`load_rakefile'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:72:in 
`run'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in 
`standard_exception_handling'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:70:in 
`run'
  /usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/bin/rake:33
  /usr/bin/rake:23:in `load'
  /usr/bin/rake:23

Has this problem been encountered before. Is a solution known?  Could it be 
a RubyGem version problem (version 1.8.1 needed?).  I'm using the 2.0.3 
version.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to