Skip to content

Instantly share code, notes, and snippets.

@oscarrenalias
Created December 11, 2012 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oscarrenalias/4258354 to your computer and use it in GitHub Desktop.
Save oscarrenalias/4258354 to your computer and use it in GitHub Desktop.
Using Puppet to provision instances from EC2 and automatically install Puppet agent on them
#!/bin/sh
puppet node_aws bootstrap \
--debug \
--image ami-c1aaabb5 \
--keyname 'puppet_provisioner' \
--type 'm1.small' \
--region eu-west-1 \
--security-group puppet-clients \
--login ubuntu \
--keyfile ~/.ssh/id_rsa \
--certname <<CERTNAME>> \
--server <<PUPPET MASTER SERVER>> \
--node-group=test_group \
--enc-server=localhost \
--enc-port=443 \
--enc-ssl \
--enc-auth-user=stefberg1@gmail.com \
--enc-auth-passwd=secret_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment