On 07/14/2014 03:33 AM, Nishantu Kumar wrote: > Hi all, > > I have created a file in "/etc/puppet/manifests/classes" as copy.pp and > contents are :- > > # copy a remote file to /etc/sudoers > file { "/etc/sudoers": > mode => 440, > owner => root, > group => root, > source => "puppet:///home/ubuntu" > } > > and i run the command on agent machine as:- sudo puppet agent -t > > info: Caching catalog for ip-10-148-160-84.ap-southeast-1.compute.internal > info: Applying configuration version '1405071378' > notice: Finished catalog run in 0.05 seconds > > > but its not copying a file from master server to agent machine. > > Can anyone pls share with me a manifest for copying a file from master > server to agent machine and pls share the procedure to implement that. as i > am new on puppet. > > Thanks in advance > -Nishantu > > On Friday, July 11, 2014 3:21:38 PM UTC+5:30, Nishantu Kumar wrote: >> >> Hello All, >> >> I have successfully configured puppet master and agent on two machines and >> i have created a file in manifest directory to copy a file from master >> server to agent machine but its not copying and throwing some error, can >> anyone tell me and share with me the procedure to copy file from master >> server to client machine. >> >> Thanks in advance >> Nishantu >> >
Hi Nishantu, I think if you haven't done the Learn Puppet tutorial you should start there http://docs.puppetlabs.com/learning/. Based on your previous email, you expect your manifest to be /etc/puppet/manifests/classes/copy.pp, but if you haven't specify it to be, your default manifest will be /etc/puppet/manifests/site.pp. On your master, simply run `puppet config print manifest` to have the actual value. Hence you should adapt it in your puppet.conf -- Yanis Guenane
signature.asc
Description: OpenPGP digital signature