Puppet Post install

99 views
Skip to first unread message

Jason Hatman

unread,
Jan 23, 2014, 1:30:27 PM1/23/14
to puppet...@googlegroups.com
I have a complete and working Puppet setup.  Now, I need to automate it.  Looking at the following page: http://docs.puppetlabs.com/guides/installation.html#post-install  I can see that it wants me to set up launchd processes for OS X in order to have the Puppet service start at boot.  I just want to make sure that this is necessary.  I have a master/agent configuration.  In a master/agent setup, does it automate this by default or do I still have to setup launchd on each machine?

This is a separate issue from the first one.  I have completed my puppet-dashboard setup and it's running fine.  However, I've noticed that after I reboot the machine, I no longer have any worker processes running.  I have to manually run "sudo -u puppet-dashboard env RAILS_ENV=production script/delayed_job -p dashboard -n 4 -m start" before any they start working again.  I assumed once I converted dashboard to run in apache that this would be automated.  Am I wrong?

Thanks in advance!!

Matthaus Owens

unread,
Jan 23, 2014, 2:12:33 PM1/23/14
to Puppet Users
This is in response to your dashboard question. 
Running dashboard via apache will handle the starting of the rails app itself, but what you've quoted is the dashboard-workers, which are separate processes that handle doing work for dashboard, like processing reports from the puppet master. There are some init scripts in the puppet-dashboard repo that should work on most platforms to enable the workers to start automatically on boot.


--
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/57ad28a4-8c88-47c3-8b2a-78bda273a456%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Matthaus Owens
Release Manager, Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco

Moses Mendoza

unread,
Jan 23, 2014, 2:15:06 PM1/23/14
to puppet...@googlegroups.com
On Thu, Jan 23, 2014 at 10:30 AM, Jason Hatman <jason....@gmail.com> wrote:
> I have a complete and working Puppet setup. Now, I need to automate it.
> Looking at the following page:
> http://docs.puppetlabs.com/guides/installation.html#post-install I can see
> that it wants me to set up launchd processes for OS X in order to have the
> Puppet service start at boot. I just want to make sure that this is
> necessary. I have a master/agent configuration. In a master/agent setup,
> does it automate this by default or do I still have to setup launchd on each
> machine?

Yes, generally speaking you will still need some form of service
management script (launchd plist) in place anywhere you want the
service to by running as a service. On OSX, puppet uses launchd to
manage services, so on OSX `puppet resource service 'puppet'
ensure=running enable=true` will rely on the existence of a launchd
plist in place on that host.

>
> This is a separate issue from the first one. I have completed my
> puppet-dashboard setup and it's running fine. However, I've noticed that
> after I reboot the machine, I no longer have any worker processes running.
> I have to manually run "sudo -u puppet-dashboard env RAILS_ENV=production
> script/delayed_job -p dashboard -n 4 -m start" before any they start working
> again. I assumed once I converted dashboard to run in apache that this
> would be automated. Am I wrong?
>
> Thanks in advance!!
>
> --
> 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/57ad28a4-8c88-47c3-8b2a-78bda273a456%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Moses Mendoza

Jason Hatman

unread,
Jan 23, 2014, 9:30:48 PM1/23/14
to puppet...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages