Puppet 3 在配置中添加清单目录而不是文件
puppet 3 add manifest directory in config instead file
我卡住了,无法在 google 中找到任何答案。
现在我的主配置指向单个清单
清单 = $confdir/manifests/cronjob.pp
问题是我如何更改指向目录而不是使用此文件夹中的所有文件(清单)。
每次创建新清单时,这都是非常烦人的更改点。
我正在使用 puppet 3.24(我现在已经很旧了)
您可以通过搜索 Puppet Configuration Reference
找到您的答案
摘录如下:
The entry-point manifest for puppet master. This can be one file or a directory of manifests to be evaluated in alphabetical order. Puppet manages this path as a directory if one exists or if the path ends with a / or .
也就是说,如果您将 manifest
设置为以下内容:
manifest = $confdir/manifests/
它应该按字母顺序读取目录中的每个 manifest
。
我卡住了,无法在 google 中找到任何答案。 现在我的主配置指向单个清单 清单 = $confdir/manifests/cronjob.pp 问题是我如何更改指向目录而不是使用此文件夹中的所有文件(清单)。 每次创建新清单时,这都是非常烦人的更改点。 我正在使用 puppet 3.24(我现在已经很旧了)
您可以通过搜索 Puppet Configuration Reference
找到您的答案摘录如下:
The entry-point manifest for puppet master. This can be one file or a directory of manifests to be evaluated in alphabetical order. Puppet manages this path as a directory if one exists or if the path ends with a / or .
也就是说,如果您将 manifest
设置为以下内容:
manifest = $confdir/manifests/
它应该按字母顺序读取目录中的每个 manifest
。