Policy-Based Autosigning

45 views
Skip to first unread message

Poil

unread,
Mar 17, 2014, 3:56:46 PM3/17/14
to puppet...@googlegroups.com
Hi,

I'm trying to have Policy-Based Autosigning working with puppet 3.4.3;
but my script is never called

# /etc/puppet/puppet.conf
[master]
autosign = /usr/local/bin/autosign.sh

# ls -l /usr/local/bin/autosign.sh
puppet.puppet rwxr-xr-x /usr/local/bin/autosign.sh

# cat /usr/local/bin/autosign.sh
echo $@ >> /var/tmp/debugme
exit 0

/var/tmp/debugme remain empty

Anyone have any idea? I'm on for more than 6 hours ... (I've tried to
run --no-daemonize --debug, strace -f ... There is no call to the
script, no reference ...)

Best regards,

Atom Powers

unread,
Mar 17, 2014, 8:00:41 PM3/17/14
to puppet...@googlegroups.com
Ensure that the the user running the puppetmaster service can read and execute the script and can write to the debug file.

`sudo -u puppet /usr/local/bin/autosign.sh`

Instead of using "echo $@" you may want to try using 'logger', which should be easier to debug.

logger -f /var/tmp/debugme "$@"

or similar.




--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5327537E.1070703%40quake.fr.
For more options, visit https://groups.google.com/d/optout.



--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
Reply all
Reply to author
Forward
0 new messages