How can I run puppet once on a machine?
Log into the server you want to run puppet on. Run the following command to invoke the puppet catalog run.
/usr/sbin/puppetd –onetime –no-daemonize –logdest syslog > /dev/null 2>&1
“/usr/sbin/puppetd” runs the puppet process
“–onetime” ensures that it only runs once
“–no-daemonize” ensures that it runs as a script and not a daemon
“–logdest syslog > /dev/null” tells where to send the log information
“2>&1” sends the process to the background as it can take a long time