你好,游客 登录 注册 搜索
背景:
阅读新闻

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

[日期:2015-01-17] 来源:Linux社区  作者:redking [字体:大 中 小]

配置Apache

我们需要整合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 = http://master.fisteam2.com:80/reports/upload

重启puppetmaster 服务

[root@master ~]# service puppetmaster restart

这时候就可以直接用 http://ip 访问puppet Dashboard

导入报告

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

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

linux
相关资讯       Puppet安装  Puppet配置  Puppet3.7.3 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款