How do I copy files from Master to Client?
I am new to puppet and trying to copy files (the content of a directory) from the master to the client. I am using the learning pupet VMs. On the master under /etc/puppetlabs/puppet/modules I created a directory called testcopy and then created a a subdirectory called files and then a directory called filestomove that has 1 text file called file.txt
This is my directory tree
I did the following test on my master. under /tmp directory I created this file copy.pp and run it on the Master and it is working just fine
I try to run the exact same file on the agent and I get errors.
I am trying to follow example i saw online and I must be missing something but I am not sure what. Has anybody tested this before and know what I am doing wrong? Thanks GLN