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.


On Mon, Mar 17, 2014 at 12:56 PM, Poil <p...@quake.fr> wrote:

> 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,
>
> --
> 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+unsubscr...@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--

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF-H%3DO%3DmwcL%3D045cY9Yw6sw5hczzUdNAb%3Dx8QEzvNSXyOpt2OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to