Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
Created July 17, 2013 13:48
Embed
What would you like to do?
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