2012-08-01 77 views
3

我在 - 模式(puppetrun)採用木偶:傀儡踢沒有投票?

客戶的puppet.conf:

[main] 
    modulepath = /etc/puppet/modules:/usr/share/puppet/modules 
    logdir = /var/log/puppet 
    rundir = /var/run/puppet 

    # The default value is '$confdir/ssl'. 
    ssldir = $vardir/ssl 
    server = puppetmaster.example.com 
    listen = true 

    # only kick, no polling 
    client = false 
    certname = client.example.com 
    pluginsync = true 

[agent] 
    # The default value is '$confdir/classes.txt'. 
    classfile = $vardir/classes.txt 
    ignorecache = true 
    report = true 
    environment = dev 
    client = false 

    # The default value is '/localconfig'. 
    localconfig = $vardir/localconfig 

* 木偶踢--host *的偉大工程,但另外每30(運行間隔)分鐘,puppet客戶端執行自己觸發的部署(輪詢)。

我以爲client = false停止輪詢,但它似乎沒有。

有沒有人知道解決這個問題的方法?從慕尼黑

感謝, 安迪

+0

可能需要在serverfault上。 – 2012-08-01 17:03:50

回答

2

看來client = false指令在puppet.conf不存在,根據 http://docs.puppetlabs.com/references/stable/configuration.html(雖然 頁面頂部指定它應該是可用)。

然而,有可以在啓動代理時指定--no-client選項(使用puppet help agent檢查):

--no-client: 
    Do not create a config client. This will cause the daemon to run 
    without ever checking for its configuration automatically, and only 
    makes sense when puppet agent is being run with listen = true in puppet.conf 
    or was started with the `--listen` option. 

添加這些最好的地方是在/etc/sysconfig/puppet基於GNU/Linux發行版RPM,並/etc/default/puppet爲基於deb的。 對於其他人,您必須檢查啓動腳本。