CentOS6.5+Puppet3.7.3 安装、配置及测试(3)

我们需要整合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 ~]#

CentOS6.5+Puppet3.7.3 安装、配置及测试

启动服务

[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

CentOS6.5+Puppet3.7.3 安装、配置及测试

配置puppet

让Dashboard使用Reports,现在默认agent是已经启用Report的功能,所以你就不需要设置agent,你只需要设置Server端就可以

[root@master ~]# vim /etc/puppet/puppet.conf

[master]

reports = store,http

reporturl = :80/reports/upload

CentOS6.5+Puppet3.7.3 安装、配置及测试

重启puppetmaster 服务

[root@master ~]# service puppetmaster restart

CentOS6.5+Puppet3.7.3 安装、配置及测试

这时候就可以直接用 访问puppet Dashboard

CentOS6.5+Puppet3.7.3 安装、配置及测试

导入报告

[root@master puppet-dashboard]# cd /usr/share/puppet-dashboard/
[root@master puppet-dashboard]# rake RAILS_ENV=production reports:import

CentOS6.5+Puppet3.7.3 安装、配置及测试

这时候你访问Dashboard,可以看到导入的任务.

CentOS6.5+Puppet3.7.3 安装、配置及测试

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/a28277a9ba5017e8e9d04ea6aba856ef.html