Hi All,
I have setup a Puppet Server on my Cent OS 5.5 machines.
I have
box1.test.com as Puppet Server
and
box2.test.com as Puppet Client
These are the packages involved :
puppet-server v0.22.4-1
puppet v0.22.4-1
facter v1.3.7-1
ruby v1.8.5
I am looking a class to transfer files from my Pupper Server to Puppet Clients.
I have used this code in
/etc/puppet/manifests/nodes.pp
Code:
file { "/tmp/abc.sh":
source => "puppet:///var/lib/puppet/files",
}
Below, is my
/etc/puppet/fileserver.conf
Code:
[files]
path /var/lib/puppet/files/
allow *.test.com
When, I try to use the above
file syntax in Puppet Client, I get below
errors.
Code:
# puppetd --test --server=box1.test.com
notice: Ignoring cache
info: Caching configuration at /var/lib/puppet/localconfig.yaml
err: //box2/File[/tmp/abc.sh]/source: Could not describe /var/lib/puppet/files: Fileserver module 'var' not mounted
notice: Finished configuration run in 0.33 seconds
#
I have googled it but could not find anything which worked for me. I can make a shell script and run it, but I am looking to use this
file syntax.