I am trying to recursively transfer files from puppet master to my agents with inbuilt fileservers.
I am having directory name called "configuration" which having few files and directories.One of that directories called "environment" which is not been transferred to my agents.but I able to transfer all other files with the following errors.
Error: Could not set 'file' on ensure: Error 404 on SERVER: {"message":"Not Found: file1.txt is not a known environment","issue_kind":"RESOURCE_NOT_FOUND"}
Error: Could not set 'file' on ensure: Error 404 on SERVER: {"message":"Not Found: file1.txt is not a known environment","issue_kind":"RESOURCE_NOT_FOUND"}
Wrapped exception:
Error 404 on SERVER: {"message":"Not Found: file1.txt is not a known environment","issue_kind":"RESOURCE_NOT_FOUND"}
Error: /Stage[main]/Platform::Configuration::Test1/File[/opt/pe-platform-test/test2/file1.txt]/ensure: change from absent to file failed: Could not set 'file' on ensure: Error 404 on SERVER: {"message":"Not Found: file1.txt is not a known environment","issue_kind":"RESOURCE_NOT_FOUND"}
here
class platform::configuration::test1
{
file{"/opt/pe-platform-test/test2":
ensure=>"directory",
source=> "puppet://puppetmaster.sample.net/puppet_plat_shared/configuration",
source_permissions=>"use",
replace=>"true",
recurse=>"remote",
}
}
In my code
"puppet_plat_shared" denotes "/home/SharedData/Shared"
↧