Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Right now I

  • log into the new server
  • put the puppet master in /etc/hosts
  • install puppet
  • change "START" to "yes" in /etc/default/puppet
  • change "server" to puppet master name under [main]
  • run agent with --waitforcert
  • sign it over on the puppet master.

I'd like for this to be automated. The long-term goal is to easily scale up and down as resources are needed.

share|improve this question
What's the OS? And do you have options for customizing the provisioning process at all? – Shane Madden Apr 12 '12 at 22:17
I'm using Ubuntu 11.10. Not sure how to answer your second question. – AaronShaf Apr 12 '12 at 22:49
Does rackspace support user data/cloud init? If so, it's easy to write a script to edit the hosts file and boostrap puppet. I do this now on amazon. The script is pasted into the aws (or ylastic, etc.) console when launching new servers. – czervik Apr 13 '12 at 17:59
up vote 3 down vote accepted

There are a lot of techniques you can apply to make this less work. I don't know Rackspace specifically, so some of this may not be possible, but you can take some ideas and leave others.

  1. Use machine images: Have a machine image ready that includes Puppet, your configuration and a key in /root/.ssh/authorized_keys from an automation master.
  2. Add callback: Set up something in /etc/init.d, /etc/rc.local or similiar to kick off an initial puppet run, then hit the automation and trigger a script that signs the certificate. The host should already be in a node declaration that matches, and a second configuration should trigger with 'waitforcert' set to 'true'.
  3. Use Puppet to clean up: Have a module that cleans up the entries from the above (root access ssh key, rc.local, etc.)
share|improve this answer

The official Rackspace Cloud app for iOS has an option to connect new instances to your puppet master automatically on boot. I'm not sure how they do the bootstrapping process though, but it may help you get started.

share|improve this answer

Puppet cloud provisioner have a branch that supports rackspace:

We need some additional testing and would love to get some community feedback on this branch. Here's the documentation on how to use it.

share|improve this answer
Awesome. Thank you! – AaronShaf Apr 18 '12 at 18:22

This exact process has been automated with a shell script called puppet-bootstrap that I have created. Portable accross architectures and operating systems:

share|improve this answer

You'll also want to checkout Using Puppet With Cloud Servers and Using Libcloud and Puppet to Bootstrap Cloud Servers. Note that Rackspace now supports cloud-init to inject any additional config you might need.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.