Created
April 27, 2016 00:25
-
-
Save cliffano/f32f04f263858c5104f0b183a886f8e0 to your computer and use it in GitHub Desktop.
Deactivate and clean nodes in PuppetDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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