Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
Created July 17, 2013 13:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mrzarquon/6020701 to your computer and use it in GitHub Desktop.
puppet is nice.
#!/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