简体   繁体   English

Puppet 不处理文件资源的源属性中的方括号

[英]Puppet not handling squared brackets in the source attribute for file resource

I am still facing this issue, when trying to copy git installation files by copying a folder and making it recursive.在尝试通过复制文件夹并使其递归来复制 git 安装文件时,我仍然面临这个问题。 There is a file called [.exe and it is failing with:有一个名为[.exe的文件,它失败了:

Error: /Stage[main]/Tcagents/File[Copy Team City agent tools]: Failed to generate additional resources using 'eval_generate': Parameter source failed on File[D:/TeamCityTools/git-2.5.0/usr/bin/[.exe]: Could not understand source puppet:///tools/TeamCityTools/git-2.5.0/usr/bin/[.exe: bad URI(is not URI?) : puppet:///tools/TeamCityTools/git-2.5.0/usr/bin/[.exe`错误:/Stage[main]/Tcagents/File[Copy Team City agent tools]:无法使用“eval_generate”生成附加资源:文件[D:/TeamCityTools/git-2.5.0/usr/bin/上的参数源失败[.exe]:无法理解源 puppet:///tools/TeamCityTools/git-2.5.0/usr/bin/[.exe:错误的 URI(不是 URI?) :puppet:///tools/TeamCityTools/ git-2.5.0/usr/bin/[.exe`

While reading other requests, I saw that is is due to the URI library Puppet uses for validating the path.在阅读其他请求时,我看到这是由于 Puppet 用于验证路径的 URI 库。 I also found the same issue in https://tickets.puppetlabs.com/browse/PUP-3135 but it is accepted without a solution.我也在https://tickets.puppetlabs.com/browse/PUP-3135 中发现了同样的问题,但没有解决方案就被接受了。

I wonder if there is a workaround you recommend or a fix for this.我想知道是否有您推荐的解决方法或解决方法。 Using Puppet 4.4.2.使用木偶 4.4.2。

Resource is:资源是:

file{'Copy Team City agent tools':
    ensure => directory,
    path => $tc_tools_path,
    source => 'puppet:///tools/TeamCityTools',
    recurse => true,
}

Puppet 还没有解决这个问题( https://tickets.puppetlabs.com/browse/PUP-3135 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM