3ofcoins / chef-cookbook-hostname

Chef cookbook to set node's hostname and FQDN.
MIT License
41 stars 90 forks source link

Refactor to reduce reload restarts of services and ohai #28

Closed JonathanSerafini closed 9 years ago

JonathanSerafini commented 10 years ago

This PR refactors default.rb for FreeBsd, Debian and RHEL to ensure that we don't needlessly call restart on services or reload on Ohai.

Tested on a Centos 6.5 box.

xamebax commented 10 years ago

Should this be updated somehow after merging #27 in?

JonathanSerafini commented 10 years ago

Likely, the previous PR brought in quite a few changes.

xamebax commented 10 years ago

Ok, so I'm leaving this open for now.

JonathanSerafini commented 10 years ago

Much like in the previous case, I'm more than willing to close this PR if you wish. I'm solely using the fork I made back in July across my environments,