Puppet transfer files to agent -


i playing around puppet , trying copy file local directory (my laptop) on puppet agent. have 2 vm's running, 1 puppet master , 1 puppet agent. looked @ answer here seems older version on puppet. running puppet 3.4.3 . have gone through pro puppet book , puppet tutorials find them way confusing (the former having glaring typos). big if helped me out process in simple steps. have till now.

i created folder named my_module in /etc/puppet/. in /etc/puppet/my_module created 2 folders files, manifests , file init.pp .

init.pp looks this:

class myfile {      file { "/home/me/myfolder/file.py":         mode => "0440",         owner => 'root',         group => 'root',         source => 'puppet:///modules/module_name/datas.xls',     } } 

i copied file file.py files folder created above. unsure how proceed after step. help?

please read this documentation regarding creating own modules. module created in wrong location right now. should /etc/puppet/modules or wherever modulepath in /etc/puppet/puppet.conf points on puppet master.

the file given source => 'puppet:///modules/module_name/datas.xls' 1 placed in /home/me/myfolder/file.py on client run puppet agent -t command rollout changes.

another source examples how use standard builtin puppet features type reference of puppetlabs.


Comments