Skip to content

Instantly share code, notes, and snippets.

@larstobi
Created October 13, 2011 08:11
Show Gist options
  • Save larstobi/1283703 to your computer and use it in GitHub Desktop.
Save larstobi/1283703 to your computer and use it in GitHub Desktop.
Bootstraps a puppet master node until a running puppetmaster server. Uses https://gist.github.com/1283705
#!/bin/bash
source bootstrap_functions.sh
ensure_packages_installed "git ruby ruby-irb rubygems httpd"
ensure_user_present "puppet"
ensure_directory "/etc/puppet"
ensure_file "/etc/puppet/puppet.conf" "puppet.master.conf"
ensure_yum_repo "my.repo"
ensure_vhost_present "yum.conf"
ensure_package_installed "rubygem-puppet"
exec_puppet_apply "puppetmaster.pp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment