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

4. 执行导入的reports

[root@master puppet-dashboard]# cd /usr/share/puppet-dashboard/
[root@master puppet-dashboard]# rake jobs:work RAILS_ENV="production"

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

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

一个Master,五个node测试效果

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

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

文件同步测试

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

[fisteam2filesync]

path /etc/puppet

allow *

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

在下面加一个配置域,名字叫做fisteam2filesync,路径是/etc/puppet
[root@master ~]# vim /etc/puppet/manifests/site.pp

node default {
file {
"/tmp/fisteam2_puppet_testfile.txt":

content=>"good,test pass!\nfisteam2_puppet_testing\n";

}
}

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

上面的代码对默认连入的puppet客户端执行一个操作,在/tmp目录生成一个fisteam2_puppet_testfile.txt文件,内容是good,test pass! 回车换行fisteam2_puppet_testing回车换行. 
初次创建pp文件,需要重启puppetmaster
[root@master ~]# service puppetmaster restart

Stopping puppetmaster: [ OK ]

Starting puppetmaster: [ OK ]

NODE1~5测试

node1:

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

node2:

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

node3:

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

node4:

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

node5:

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

Puppet 的详细介绍请点这里
Puppet 的下载地址请点这里

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

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