26 Nov 2005 20:18
Re: [Puppet-dev] Init scripts for client & server
Luke Kanies <luke <at> madstop.com>
2005-11-26 19:18:34 GMT
2005-11-26 19:18:34 GMT
On Thu, 24 Nov 2005, Duane Griffin wrote: > Hi folks, > > Attached is an updated puppet spec file which generates and installs > init scripts for the client and server. No doubt there are many things > that could be improved about them. Feedback would be greatly > appreciated. Hmmm, so the spec file generates the init scripts, huh? I guess I don't know enough about how RPMs work. > For the client I've taken the same approach that RedHat uses for > enabling auto-updates through yum. That is, the init script creates or > deletes a lock file. An hourly cron job runs the client if the file is > present. The server, being a long-running daemon process, uses the > standard init approach. Okay, that will work just dandily. At some point puppetd will also be a long-running process (and, frankly, that should happen sooner rather than later), but this is a great solution until then. > I've also attached the generated files, for anyone who doesn't want to > be building and installing RPMs. They should be placed into the > following locations: > > /etc/init.d/puppet > /etc/init.d/puppetmaster > /etc/sysconfig/puppet > /etc/sysconfig/puppetmaster(Continue reading)
RSS Feed