Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing old hosts and services #27

Closed
alex-harvey-z3q opened this issue Aug 28, 2014 · 4 comments
Closed

removing old hosts and services #27

alex-harvey-z3q opened this issue Aug 28, 2014 · 4 comments

Comments

@alex-harvey-z3q
Copy link

Hi there

Do you have any suggestions for what to do when a host is decommissioned? i.e. what do I have to do in PuppetDB and any other manual steps? I'll be more than happy to submit a PR on the README.md.

@NMerch
Copy link

NMerch commented Aug 28, 2014

Deactivate the node in puppetdb and run puppet on the master.

$puppet node deactivate -hostname-
$puppet agent -t

You can set a ttl on Puppetdb to deCtivate a node if it doesn't request a config after a given amount of time. If you do that and run Puppet agent daemon on puppet-master no manual work is required.

@alex-harvey-z3q
Copy link
Author

Thanks - would you like a pull request with this information added to README.md?

@alex-harvey-z3q
Copy link
Author

By the way after running these commands I note that the nagios service hasn't been restarted - is that issue #21 ? I guess an additional manual step would be to

$service nagios restart

?

@NMerch
Copy link

NMerch commented Aug 28, 2014

Not my repo, that is up to Thias.

Correct, that is issue 21 and that is the correct command.

alex-harvey-z3q added a commit to telstra-digital/puppet-nagios that referenced this issue Aug 30, 2014
alex-harvey-z3q added a commit to telstra-digital/puppet-nagios that referenced this issue Aug 30, 2014
thias added a commit that referenced this issue Sep 6, 2014
Update README.md on how to remove decommissioned hosts - issue #27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants