我正在尝试使用内置文件服务器将文件从 puppet master 递归传输到我的代理。
我有一个名为“环境”的文件夹名称,它没有转移给我的代理。相反,我收到以下错误
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"}
我的实际代码如下
class platform::configuration::test1 {
file { "/opt/pe-platform-test/test2":
ensure => "directory",
source => "puppet://puppetmaster.sample.net/puppet_plat_shared/environment",
source_permissions=>"use",
ignore => [".svn"],
replace => "true",
recurse => "remote",
}
}