This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: | | |
Heat template to deploy a single Django server | |
parameters: | |
database_host: | |
description: Cloud Database hostname. | |
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
driver_config: | |
rackspace_username: USERNAME | |
rackspace_api_key: APIKEY | |
public_key_path: /root/.ssh/id_rsa.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure('2') do |config| | |
config.vm.box = 'dummy' | |
config.vm.box_url = 'https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box' | |
config.vm.provision 'shell', inline: <<-EOF | |
apt-get update | |
apt-get -y install curl git vim zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libxml2-dev libxslt-dev build-essential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site :opscode | |
cookbook 'apt' | |
cookbook 'build-essential' | |
cookbook 'python' | |
metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "rax" | |
config.ssh.private_key_path = "~/.ssh/id_rsa_my_private_key" | |
config.vm.provider :rackspace do |rs| | |
rs.username = "YOUR USERNAME" | |
rs.api_key = "YOUR API KEY" | |
rs.flavor = /512MB/ | |
rs.image = /Ubuntu 12.04/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
STOP=$(($(date +%s)+300)) | |
COMPLETE_FILE="/tmp/automation-complete" | |
ME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/$( basename ${BASH_SOURCE[0]} )" | |
while [[ ! -f "${COMPLETE_FILE}" && $(date +%s) -lt ${STOP} ]]; | |
do | |
sleep 1 | |
done | |
rm -f ${ME} ${COMPLETE_FILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get -y install git | |
su - jenkins | |
git config --global user.name "Jenkins" | |
git config --global user.email "youremail@yourbusiness.com" | |
ssh-keygen -t rsa # You can use the default options here. Don't set a password. | |
cat .ssh/id_rsa.pub # Add this key to your Github account | |
ssh git@github.com # Add Github to your know_hosts file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function ostype() { | |
if [ -e /etc/redhat-release ]; then | |
export distro="Redhat/CentOS" | |
else | |
if [ "$(lsb_release -d | awk '{print $2}')" == "Ubuntu" ];then | |
export distro="Ubuntu" |
NewerOlder