Skip to content

Instantly share code, notes, and snippets.

@sandfox
Created July 23, 2012 23:06
Show Gist options
  • Save sandfox/3166828 to your computer and use it in GitHub Desktop.
Save sandfox/3166828 to your computer and use it in GitHub Desktop.
Quick and dirty instructions on how to bring some types of server to life

Starting the PuppetMaster v1

  • Create security group (SG) for puppet-master
  • Create new small instance 64bit, EBS backed, ubuntu 12.04 in correct Region using puppet-master SG
  • SSH into instance (username ubuntu)
  • Grab Puppet Labs deb packages for 12.04 `wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb && sudo dpkg -i puppetlabs-release-precise.deb'
  • Update the instance sudo apt-get update && sudo sudo apt-get dist-upgrade
  • install puppet and git 'sudo apt-get install puppetmaster git'
  • set puppetmaster running. sudo puppet resource service puppetmaster ensure=running enable=true

###This stuff is unstable - ignore for now till it's fixed

  • add the following deb http://deb.theforeman.org/ stable main to this file /etc/apt/sources.list.d/foreman.list which you will need to create
  • Install foreman debs package key wget -q http://deb.theforeman.org/foreman.asc -O- | sudo apt-key add -
  • update package lists again sudo apt-get update
  • install foreman's mysql package sudo apt-get install foreman-mysql - remember the passwords you set for the mysql db's.

Creating a Web Server v1

###You should look at using one of these scripts: https://gist.github.com/3675060

  • Create security group (SG) as required
  • Create new small instance 64bit, EBS backed, ubuntu 12.04 in correct Region using suitable SG
  • SSH into instance (username ubuntu)
  • add the following PPAs for more awesome nginx and php sudo add-apt-repository ppa:nginx/stable and sudo add-apt-repository ppa:ondrej/php5
  • Update the instance sudo apt-get update && sudo sudo apt-get dist-upgrade
  • Install barebones webby stuff sudo apt-get install php5-cli php5-fpm php-apc nginx-full
  • Change this line listen = /var/run/php5-fpm.sock to listen = 127.0.0.1:9000 in /etc/php5/fpm/pool.d/www.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment