关于 ruby??:Puppet 不处理文件资源的源属性中的方括号 | 珊瑚贝

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


当我尝试通过复制文件夹并使其递归来复制 git 安装文件时,我仍然面临这个问题。有一个名为 [.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`

在阅读其他请求时,我看到这是由于 Puppet 用于验证路径的 URI 库。我还在 https://tickets.puppetlabs.com/browse/PUP-3135 中发现了同样的问题,但它在没有解决方案的情况下被接受。

我想知道是否有您推荐的解决方法或解决此问题的方法。使用 Puppet 4.4.2.

资源是:

1
2
3
4
5
6
file{‘Copy Team City agent tools’:
    ensure => directory,
    path => $tc_tools_path,
    source => ‘puppet:///tools/TeamCityTools’,
    recurse => true,
}
  • 谷歌发现了这个相关的问题,但我看到你已经在那里发表了评论。尽管如此,为了后代:tickets.puppetlabs.com/browse/PUP-3135
  • 是的。我还向 Puppetlabs 提出了一个问题:tickets.puppetlabs.com/browse/PUP-6509。不管怎么说,还是要谢谢你! :)


Puppet 仍未解决此问题 (https://tickets.puppetlabs.com/browse/PUP-3135)。


来源:https://www.codenong.com/38400763/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9536.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?