Removing a service with dependencies
Say I have a resource X provides a service for resource Y. (For example, a database helps a web server) X has no other use in the system expect helping Y. In my manifests, I state that Y requires X.
Now, my question is twofold.
- How do you remove a resource in puppet in a clean way? You can do ensure => absent but when you have many resource that you removed over time, your manifests are filled with "ensure => absent"s. If you just remove the resource declaration from your manifest, the resource isn't managed anymore, but ...