Puppet Dashboard

source of this page
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html

The guide is for general linux environment , I have installed on ubuntu 12.04
some little notes

  • installed from package , apt
  • the configuration files are here
:/etc/puppet-dashboard# ls
database.yml  settings.yml
  • In the db it is enough put the info of the production account
  • I have already the webtrick webserver configured , I have not configured the apache and production environment
  • no mysql tuning yet
  • after the modification to the puppet.conf agent I had some problems with the server
puppet agent --test

Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo: Name or service not known

because puppet want comunicate with itself
for this configuration inside defaults.rb
puppet://$server/plugins"

add this rule
127.0.0.1 puppet
to /etc/hosts

and the rule to my firewall because it drops everything either localhost

and the errors disappears

I have not done this "Using Dashboard for Node Classification"

My puppet-dashboard runs like root at the begin , so I modify the command that take the info from the asynchronous process to the dashboard in this way

sudo -u root env RAILS_ENV=production /usr/share/puppet-dashboard/script/delayed_job -p dashboard -n 4 -m start

after that the information begin to flow to the puppet dashboard, and the script is on
 ps axu | grep delay
root      2251  0.0  3.2 211484 66508 ?        S    14:42   0:00 delayed_job.0_monitor                                                         
root      2252  7.6  3.3 211704 67812 ?        S    14:42   2:11 dashboard/delayed_job.0                                                       
root      2258  0.0  3.2 211484 66508 ?        S    14:42   0:00 delayed_job.1_monitor                                                         
root      2259  8.5  3.3 211708 67836 ?        S    14:42   2:26 dashboard/delayed_job.1                                                       
root      2269  7.5  3.3 211992 68088 ?        S    14:42   2:09 dashboard/delayed_job.2                                                       
root      2270  0.0  3.2 211484 66508 ?        S    14:42   0:00 delayed_job.2_monitor                                                         
root      2283  8.6  3.3 211900 68000 ?        S    14:42   2:28 dashboard/delayed_job.3                                                       
root      2284  0.0  3.2 211484 66508 ?        S    14:42   0:00 delayed_job.3_monitor                                                         
root      6178  0.0  0.0   9388   900 pts/3    S+   15:11   0:00 grep --color=auto delay

In ubuntu both the service webrick and delayed_job works with the service already installed puppet-dashboard

Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-ShareAlike 3.0 License