svn: URL 'svn://192.168.30.134/modules/test' of existing directory '/etc/puppet/modules/apache' does not match expected URL 'svn://192.168.30.134/modules/apache'
[iyunv@puppet puppet]# rm -rf *
[iyunv@puppet puppet]# ls
[iyunv@puppet puppet]# svn checkout svn://192.168.30.134 /etc/puppet/
Restored '/etc/puppet/puppet.conf'
Restored '/etc/puppet/namespaceauth.conf'
Restored '/etc/puppet/auth.conf'
Restored '/etc/puppet/fileserver.conf'
Restored '/etc/puppet/autosign.conf'
A /etc/puppet/modules
A /etc/puppet/modules/test
A /etc/puppet/modules/apache
A /etc/puppet/modules/apache/files
A /etc/puppet/modules/apache/lib
A /etc/puppet/modules/apache/manifests
A /etc/puppet/modules/apache/manifests/init.pp
A /etc/puppet/modules/apache/templates
A /etc/puppet/manifests
A /etc/puppet/manifests/site.pp
A /etc/puppet/manifests/nodes.pp
Checked out revision 64.
[iyunv@sh-proxy2 ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for sh-proxy2.localdomain
Info: Applying configuration version '1505315382'
Notice: hello world
Notice: /Stage[main]/Main/Notify[hello world]/message: defined 'message' as 'hello world'
Notice: Finished catalog run in 0.02 seconds
测试节点sh-web1更新:
1
2
3
4
5
6
7
8
9
[iyunv@sh-web1 ~]# puppet agent -t
Notice: Ignoring --listen on onetime run
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for sh-web1.localdomain
Info: Applying configuration version '1505315382'
Notice: hello world
Notice: /Stage[main]/Main/Notify[hello world]/message: defined 'message' as 'hello world'
Notice: Finished catalog run in 0.02 seconds
举例:(多节点匹配操作)
新建模块apache
1
2
cd /etc/puppet/modules
# mkdir apache/{templates,files,lib,manifests}