C R Ritson
2011-Nov-10 13:20 UTC
[Puppet Users] Starting puppet on fedora - mixed init.d and systemd
Fedora 15 uses a mix of init.d and systemd to start services. Our systems also use NetworkManager. When a client machine is rebooted, NetworkManager is still initialising (and has sometimes not yet updated /etc/resolv.conf) by the time puppetd is started. puppetd can then not look up its master server and end up looping without retrying the name service lookup. How is this best avoided? Chris Ritson (Computing Officer and School Safety Officer) Room 707, Claremont Tower, EMAIL: C.R.Ritson@ncl.ac.uk School of Computing Science, PHONE: +44 191 222 8175 Newcastle University, FAX : +44 191 222 8232 Newcastle upon Tyne, UK NE1 7RU. WEB : http://www.cs.ncl.ac.uk/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2011-Nov-10 14:10 UTC
[Puppet Users] Re: Starting puppet on fedora - mixed init.d and systemd
On Nov 10, 7:20 am, C R Ritson <c.r.rit...@newcastle.ac.uk> wrote:> Fedora 15 uses a mix of init.d and systemd to start services. Our systems also use NetworkManager. When a client machine is rebooted, NetworkManager is still initialising (and has sometimes not yet updated /etc/resolv.conf) by the time puppetd is started. puppetd can then not look up its master server and end up looping without retrying the name service lookup. How is this best avoided?Whichever mechanism F15 uses to start NetworkManager, use the same to start puppet. It should have a way to allow you to set the relative order of NetworkManager and pupptd startup. For example, if NetworkManager is started from an initscript, then start puppetd from an initscript too. Set puppet''s start priority lower (larger number) than NetworkManager''s. The exact value probably doesn''t matter much, because there shouldn''t be any other services that depend on puppetd being running. By convention, you should set Puppet''s stop priority to 100 - (start priority). John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.