Deactivate node in PuppetDB via REST API

If you ever need to delete or deactivate (deactivate is a more appropriate word in PuppetDB context) a node in your PuppetDB, follow these steps. First: List your nodes. curl ‘http://localhost:8080/v2/nodes’ Second: List details of your node you want to deactivate curl ‘http://localhost:8080/v2/nodes/<fqdn>’ { “name” : “<fqdn>”, “deactivated” : null, “catalog_timestamp” : null, “facts_timestamp” : […]

Make Puppet, Vagrant and Hiera play together

Testing your Puppet code locally with Vagrant is great. Fast and clean development and testing of your code can be done in this comfortable way. The base setup is easy: Download and install Vagrant Download and install VirtualBox Download and install Puppet So far, so good. When it comes to Hiera, I was struggling around […]