我刚刚将木偶环境升级3.4.2
为3.4.3
.通过puppetlabs的apt repos.我正在升级代理商和主人.执行代理程序运行会导致以下错误:
Info: Retrieving pluginfacts
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: file_metadata supports formats: pson yaml b64_zlib_yaml raw
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: file_metadata supports formats: pson yaml b64_zlib_yaml raw
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://<puppetserver>/pluginfacts
Debug: Finishing transaction [...]
Run Code Online (Sandbox Code Playgroud)
尽管如此,我从master中检索了一个目录,因此代理程序运行仍然有效并且似乎可以执行它应该执行的操作.(或者说,如果出现与错误消息相关的错误,我实际上无法确定.)
但是,我想摆脱错误消息.
我puppet --version
在 …
我正在寻找一种只在使用时notify { ... }
在puppet客户端运行期间显示消息的方法
puppet apply <--verbose | --debug>
puppet agent <--verbose | --debug>
我想在客户端交互/手动运行puppet时显示调试消息.然而,我无法找到一种方法来评估我的木偶清单中的这些开关.我怎么能为傀儡4.x实现这个目标?
我有一个配置,内容可以与来自单独文件的片段进行交换。我将如何巧妙地实现这一目标?
配置文件可能如下所示:
# config file
{
"keep": "whatever type of value",
"manipulate": [
{
"foo": "bar",
"cat": {
"color": "grey"
},
"type": "keep",
"detail": "keep whole array element"
},
{
"stuff": "obsolete",
"more_stuff": "obsolete",
"type": "replace",
"detail": "replace whole array element with content from separate file"
},
{
"foz": "baz",
"dog": {
"color": "brown"
},
"type": "keep",
"detail": "keep whole array element"
},
],
"also_keep": "whatever type of value"
}
Run Code Online (Sandbox Code Playgroud)
要插入以替换过时数组元素的内容(来自单独的文件):
# replacement
{
"stuff": "i …
Run Code Online (Sandbox Code Playgroud)