I want to copy a directory recursivly from an external source on my local machine.

asked 2018-03-19 10:55:22 -0600

Dei gravatar image

I am using two Vm's. RedHat on the Master and Windows on the Agent.

Both are connected and simple modules can be applied.

Now i want to copy a directory recursivly onto the agent.

Therefore the documentation states that i need to set a mountpoint with the path to my external ressource in the fileserver.conf. But on my master there is no such .conf file.

i created one by myself and added the external path

[external_files] path C:/[path-to-file] allow*

Finally i modified my source variable in my init.pp to: source => "puppet:///external_files/<directory_name>", recurse => true,

As i run puppet agent -t this occures:

Error: /Stage[main]/Maven_copy/File[c:\Program files\Maven]: Failed to generate additional resources using 'eval_generate': Error 500 on SERVER: Server Error: Not authorized to call search on /file_metadata/external_files/Maven with {:rest => "external_files/Maven", :links => "manage", recurse => true, :source_permission => "ignore", :checksum_type => "md5"} Error: /Stage[main]/Maven_copy/File[c:\Program files\Maven]: Could not evaluate: Could not retrieve file metadata for puppet:///external_files/Maven: Error 500 on SERVER: Server Error: Not authorized to call find on /file_metadata/external_files/Maven with {:rest => "external_files/Maven", :links => "manage", :checksum_type => "md5", :source_permission => "ignore"}

I am kinda lost.

Please help if you guys know something to solve this

Thanks in advance.

edit retag flag offensive close merge delete