Created
July 17, 2013 13:48
-
-
Save mrzarquon/6020701 to your computer and use it in GitHub Desktop.
puppet is nice.
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 | |
agent_certname=$1 | |
/opt/puppet/bin/puppet resource ini_setting certname \ | |
path="/etc/puppetlabs/puppet/puppet.conf" \ | |
section="main" \ | |
setting="certname" \ | |
value="${agent_certname}" \ | |
ensure="present" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment