puppet agent -t 是否使用 puppet.conf?
Does puppet agent -t use puppet.conf?
我打算通过 cron 作业使用 puppet。
在我的 /etc/puppetlabs/puppet/puppet.conf
我有:
splay = true
splaylimit = 30
在我的 cron 作业中,我 运行 puppet agent -t
不使用 splay。
命令应该在这里使用 splay 吗?服务器 url 设置在同一个 puppet.conf
文件中,这似乎没有问题。
我也试过splaylimit = 30m
.
简而言之,是的,但是...
我的问题是由于没有完全理解 -t
又名 --test
标志。
--test Enable the most common options used for testing. These are 'onetime', 'verbose', 'no-daemonize', 'no-usecacheonfailure',
'detailed-exitcodes', 'no-splay', 'show_diff', and
'no-use_cached_catalog'.
由于 --test
特别暗示不展开 puppet.conf
中的值被覆盖。
旁注:Splay 似乎以秒为单位定义,例如300 = 5 分钟,600 = 10 分钟。分钟和小时也可以定义为 5m, 10m, 1hr, 2hr, ect.
我打算通过 cron 作业使用 puppet。
在我的 /etc/puppetlabs/puppet/puppet.conf
我有:
splay = true
splaylimit = 30
在我的 cron 作业中,我 运行 puppet agent -t
不使用 splay。
命令应该在这里使用 splay 吗?服务器 url 设置在同一个 puppet.conf
文件中,这似乎没有问题。
我也试过splaylimit = 30m
.
简而言之,是的,但是...
我的问题是由于没有完全理解 -t
又名 --test
标志。
--test Enable the most common options used for testing. These are 'onetime', 'verbose', 'no-daemonize', 'no-usecacheonfailure', 'detailed-exitcodes', 'no-splay', 'show_diff', and 'no-use_cached_catalog'.
由于 --test
特别暗示不展开 puppet.conf
中的值被覆盖。
旁注:Splay 似乎以秒为单位定义,例如300 = 5 分钟,600 = 10 分钟。分钟和小时也可以定义为 5m, 10m, 1hr, 2hr, ect.