4. 执行导入的reports
[root@master puppet-dashboard]# cd /usr/share/puppet-dashboard/
[root@master puppet-dashboard]# rake jobs:work RAILS_ENV="production"
一个Master,五个node测试效果
文件同步测试
Puppet master:
[root@master ~]# vim /etc/puppet/fileserver.conf
[fisteam2filesync]
path /etc/puppet
allow *
在下面加一个配置域,名字叫做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";
}
}
上面的代码对默认连入的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:
node2:
node3:
node4:
node5: