puppet-dashboard安装配置
[*]解决依赖关系yum install mod_ssl
[*]创建apache配置cp /usr/share/puppet/ext/rack/files/apache2.conf /etc/httpd/conf.d/rack.confmkdir -p /etc/puppet/rack/publiccp /usr/share/puppet/ext/rack/files/config.ru /etc/puppet/rack/
[*]修改apache配置vim /etc/httpd/conf.d/rack.conf # you probably want to tune these settings #注释这些配置,因为已经在passenger.conf中定义#PassengerHighPerformance on#PassengerMaxPoolSize 12#PassengerPoolIdleTime 1500# PassengerMaxRequests 1000#PassengerStatThrottleRate 120#RackAutoDetect Off#RailsAutoDetect Off Listen 8140 <VirtualHost *:8140> SSLEngine on SSLProtocol -ALL +SSLv3 +TLSv1 SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP SSLCertificateFile /var/lib/puppet/ssl/certs/puppet.server.cihi.cn.pem #修改这里对应的路径 SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/puppet.server.cihi.cn.pem SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem SSLVerifyClient optional SSLVerifyDepth1 . . .
[*]验证测试
八、puppet dashboard常用操作命令如下:
当puppet dashboard数据量过多的时候,需要优化数据库,可使用命令:
rake RAILS_ENV=production db:raw:optimize
清量dashborad一个月之前的数据。可以使用
rake RAILS_ENV=production reports:prune upto=1 unit=mon
备份puppet dashborad数据库,可以使用如下命令:
rake RAILS_ENV=production db:raw:dump
备份sql并输出到文件:
rake RAILS_ENV=production FILE=/my/backup/file.sql db:raw:dump
恢复puppet dashboard数据库,可以使用如下命令:
rake RAILS_ENV=production FILE=production.sql db:raw:restore
页:
[1]