puppetlabs / puppetlabs-node_manager

Create and manage PE node groups as resources.
Apache License 2.0
10 stars 21 forks source link

Added ability to set the purge behavior for node group rules #68

Closed benjamin-robertson closed 1 year ago

benjamin-robertson commented 2 years ago

When using node_manager to manage a node_group; users lose the ability to pin nodes and modify rules via the PE console. This is inconvenient for users who wish to use node_manager to create node groups; however still require the flexibility to pin nodes and customise rules via the PE console.

This PR introduces the following behavior changes to the node_manager module.

When purge_behavior is set to "all", "data", "classes" or unset. There is no change to the behavior of this module. When purge_behavior is set to "rule" or "none" node manager will.

Currently node_manager provides the ability to accept additional classes and data from users within the PE console by setting the purge_behavior parameter on a node_group basis. I would like to extend the module to include the ability to customise rules and pin nodes on a per node_group basis.