我们需要整合Passenger和apache
[root@master ~]# cat > /etc/httpd/conf.d/passenger.conf << EOF
> LoadModule passenger_module modules/mod_passenger.so
> <IfModule mod_passenger.c>
> PassengerRoot /usr/share/rubygems/gems/passenger-3.0.17
> PassengerRuby /usr/bin/ruby
> PassengerHighPerformance on
> PassengerMaxPoolSize 12
> PassengerPoolIdleTime 1500
> PassengerStatThrottleRate 120
> RailsAutoDetect On
> </IfModule>
> <VirtualHost *:80>
> ServerName master.fisteam2.com
> DocumentRoot "/usr/share/puppet-dashboard/public/"
> <Directory "/usr/share/puppet-dashboard/public/">
> Options None
> AllowOverride AuthConfig
> Order allow,deny
> allow from all
> </Directory>
> ErrorLog /var/log/httpd/master.fisteam2.com_error.log
> LogLevel warn
> CustomLog /var/log/httpd/master.fisteam2.com_access.log combined
> ServerSignature On
> </VirtualHost>
> EOF
[root@master ~]#
启动服务
[root@master ~]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using master.fisteam2.com for ServerName[ OK ]
[root@master ~]# chkconfig httpd on
[root@master ~]# chkconfig --list | grep httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
配置puppet
让Dashboard使用Reports,现在默认agent是已经启用Report的功能,所以你就不需要设置agent,你只需要设置Server端就可以
[root@master ~]# vim /etc/puppet/puppet.conf
[master]
reports = store,http
reporturl = :80/reports/upload
重启puppetmaster 服务
[root@master ~]# service puppetmaster restart
这时候就可以直接用 访问puppet Dashboard
导入报告
[root@master puppet-dashboard]# cd /usr/share/puppet-dashboard/
[root@master puppet-dashboard]# rake RAILS_ENV=production reports:import
这时候你访问Dashboard,可以看到导入的任务.