On Nov 21, 2:43 pm, Udo Waechter <[email protected]>
wrote:
> Hello all.
>
> I know there were many discussions about how to remove hosts from puppet. I
> know the script that removes all entries from the database.
>
> What I am looking for is a solution that sets all exported resources to
> "ensure => absent". Assumed that they have a "ansure" parameter.
>
[...]
>
> And the last question:
> How do you all handle the case when hosts die. Do you simply remove all
> storedconfigs and do not care about exported resources that might have been
> imported by other hosts (ssh-keys, mounts, nagios-checks, ...)? Or do you go
> to all those hosts and remove the resources by hand?
We have these stanzas in the manifest for the nagios server:
48 resources { "nagios_service":
49 purge => true
50 }
51 resources { "nagios_host":
52 purge => true
53 }
54 resources { "nagios_hostgroup":
55 purge => true
56 }
For other resources we're using similar stanzas, and for file-snippet
exported resources we just automatically purge the containing
directory.
This combined with cleaning the host from the storedconfigs DB gets
rid of all the traces left.
Christian
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=.