How to use prerun_command in puppet.conf ?

180 views
Skip to first unread message

Sandra Schlichting

unread,
Oct 9, 2012, 12:30:22 PM10/9/12
to puppet...@googlegroups.com
Hi,

I am using puppet 2.7.19 and if I use puppet.conf as

[main]
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    ssldir = $vardir/ssl
[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
prerun_command = /bin/false

or add prerun to [main] and do

puppet agent --listen --test --noop

then it doesn't fail, as I would have expected.

I would like to execute a script on the puppetmaster everytime a node tries to connect.

Am I doing something wrong?

Hugs,
Sandra





Reply all
Reply to author
Forward
0 new messages