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