puppetlabs / puppetlabs-node_manager

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

Initial commit on face #21

Closed WhatsARanjit closed 7 years ago

WhatsARanjit commented 7 years ago

Added a face to cover the endpoints available to the classifier API:

For the moment, the idea is to be read-only- used for query purposes only. The unpin endpoint is the only endpoint that changes anything. The reason being, I'm aiming to encourage changes through DSL instead of using the face. However, if users would rather just update using the face, I'd be open to adding something like the following:

# puppet node_manager groups 'My Group' \
--classes '{ "foo" => {} }' \
--variables '{ "key" => "var" }'

...in order to update a group. But this can be accomplished using the RAL in any case:


# puppet apply -e 'node_group { "My Group": classes => { "foo" => {} }, variables => { "key" => "var" }, }'