Skip to content

Instantly share code, notes, and snippets.

@cliffano
Created April 27, 2016 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffano/f32f04f263858c5104f0b183a886f8e0 to your computer and use it in GitHub Desktop.
Save cliffano/f32f04f263858c5104f0b183a886f8e0 to your computer and use it in GitHub Desktop.
Deactivate and clean nodes in PuppetDB
#!/bin/bash
domains="domain1.xyz domain2.xyz"
for DOMAIN in ${domains}; do
puppet node deactivate ${DOMAIN}
puppet node clean ${DOMAIN}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment