HP-UX Puppet Init Script !!

47 views
Skip to first unread message

Rakesh Kathpal

unread,
Mar 22, 2014, 12:33:54 PM3/22/14
to puppet...@googlegroups.com
Hi,


I have been successfully able to install puppet on hu-ux, all I am looking is to run puppet agent from this server.

Can someone please help me with the init script for puppet agent on HP-UX ??

It would be great if you have one, else if you can point me to the correct directions for creating one.

Thanks,

Rakesh K

Garrett Honeycutt

unread,
Mar 23, 2014, 4:45:10 PM3/23/14
to puppet...@googlegroups.com
Hi Rakesh,

Might I suggest not running puppet as a service at all and instead
running it from cron. Doing so provides some more flexibility and helps
protect against memory leaks.

My module[1] for managing puppet would likely work for you with minimal
modification. Would be glad to work with you on it to support HP-UX.

[1] - https://github.com/ghoneycutt/puppet-module-puppet

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

Rakesh Kathpal

unread,
Mar 24, 2014, 8:51:46 AM3/24/14
to puppet...@googlegroups.com
Thanks a ton garrett.

I need to only run puppet client on hp-ux.



--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/532F47D6.5000206%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Anderson

unread,
Mar 24, 2014, 9:10:36 AM3/24/14
to puppet...@googlegroups.com
A puppet init script would essentially be:

case $1 in

start)
  echo "Starting puppet agent"
  puppet agent --verbose
  ;;
stop)
  echo "Stopping puppet agent"
  kill `cat /var/run/puppet/agent.pid`
  ;;
esac

To make it work on HP-UX, copy the init script into /sbin/init.d, then create sym-links in /sbin/rc2.d/S99puppet and /sbin/rc0.d/K01puppet that point to it.

Rakesh Kathpal

unread,
Mar 24, 2014, 9:49:06 AM3/24/14
to puppet...@googlegroups.com
looks great.. !!!

Thanks a lot Ryan..


--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages