Skip to content

Commit

Permalink
Seems to be working for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
rgeyer committed Feb 14, 2014
0 parents commit 6df06f2
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
site :opscode

group :servertemplate do

cookbook "ephemeral_lvm",
git: "git://github.com/rightscale-cookbooks/ephemeral_lvm.git",
ref: '30339df6aa83c0bb825489eeacd6c82fd030c701'

cookbook "rs-machine_tag",
git: "git://github.com/rightscale-cookbooks/rs-machine_tag.git"

cookbook "machine_tag",
git: "git://github.com/rightscale-cookbooks/machine_tag.git"

cookbook "rs-base",
git: "git://github.com/rightscale-cookbooks/rs-base.git"

cookbook "marker",
git: "git://github.com/rightscale-cookbooks/marker.git"

cookbook 'collectd',
github: 'EfrainOlivares/chef-collectd',
ref: 'ec50609ed6eb193e0411f30aced91befa571940f'

cookbook "rundeck",
git: "git://github.com/priestjim/chef-rundeck.git"

cookbook "nginx"
end

group :vagrant_only do
cookbook "yum"

cookbook "yum-epel"

cookbook "rightscaleshim",
path: "/Users/ryangreyer/Code/Chef/rgeyer-rs-cookbooks/rightscaleshim"

cookbook "resolver"
end
105 changes: 105 additions & 0 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"sources": {
"ephemeral_lvm": {
"locked_version": "1.0.2",
"git": "git://github.com/rightscale-cookbooks/ephemeral_lvm.git",
"ref": "30339df6aa83c0bb825489eeacd6c82fd030c701"
},
"rs-machine_tag": {
"locked_version": "1.0.0",
"git": "git://github.com/rightscale-cookbooks/rs-machine_tag.git",
"ref": "d65ff7cdc9897d53a6c698d049ff652c8415ff45"
},
"machine_tag": {
"locked_version": "1.0.3",
"git": "git://github.com/rightscale-cookbooks/machine_tag.git",
"ref": "1d3c801dad9d058bc8e1e92c84604b0f9b2681e9"
},
"rs-base": {
"locked_version": "1.0.0",
"git": "git://github.com/rightscale-cookbooks/rs-base.git",
"ref": "a90f53ff19946caf7324b5c128a528bf18ed2a1d"
},
"marker": {
"locked_version": "1.0.0",
"git": "git://github.com/rightscale-cookbooks/marker.git",
"ref": "893cb7e00691a5b6a6192b43b67d7a975b6c41c4"
},
"collectd": {
"locked_version": "1.1.0",
"git": "git://github.com/EfrainOlivares/chef-collectd.git",
"ref": "ec50609ed6eb193e0411f30aced91befa571940f"
},
"rundeck": {
"locked_version": "0.2.0",
"git": "git://github.com/priestjim/chef-rundeck.git",
"ref": "cd3caa78512aa96eb039a191daca407bb16d4e96"
},
"nginx": {
"locked_version": "2.2.2"
},
"yum": {
"locked_version": "3.0.6"
},
"yum-epel": {
"locked_version": "0.3.0"
},
"rightscaleshim": {
"path": "../../Chef/rgeyer-rs-cookbooks/rightscaleshim"
},
"resolver": {
"locked_version": "1.1.2"
},
"lvm": {
"locked_version": "1.0.4"
},
"ntp": {
"locked_version": "1.4.0"
},
"swap": {
"locked_version": "0.3.6"
},
"rsyslog": {
"locked_version": "1.8.0"
},
"supervisor": {
"locked_version": "0.4.10"
},
"python": {
"locked_version": "1.3.4"
},
"build-essential": {
"locked_version": "1.4.0"
},
"openresty": {
"locked_version": "0.3.1"
},
"postgresql": {
"locked_version": "3.3.4"
},
"apt": {
"locked_version": "2.3.6"
},
"openssl": {
"locked_version": "1.1.0"
},
"jemalloc": {
"locked_version": "0.1.1"
},
"logrotate": {
"locked_version": "1.2.2"
},
"ohai": {
"locked_version": "1.1.12"
},
"java": {
"locked_version": "1.19.2"
},
"bluepill": {
"locked_version": "2.3.1"
},
"runit": {
"locked_version": "1.5.8"
}
}
}
49 changes: 49 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Vagrant.configure("2") do |config|

config.berkshelf.enabled = true

config.vm.define :centos do |default_config|
default_config.vm.hostname = "centos"

default_config.vm.box = "CentOS 6.3 x86_64 minimal"
default_config.vm.box_url = "https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box"

default_config.vm.network :private_network, ip: "33.33.33.128"

default_config.rightscaleshim.run_list_dir = "runlists/centos"
default_config.rightscaleshim.shim_dir = "rightscaleshim/centos"

default_config.vm.provision :shell,
inline: <<SCRIPT
mkdir -p /var/chef/cache
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
rm -rf remi-release-6*.rpm epel-release-6*.rpm
# Pre-import the rightscale public key
rpm --import http://s3.amazonaws.com/rightscale_key_pub/rightscale_key.pub
#Create a yum source:
cat > /etc/yum.repos.d/RightLink-staging.repo <<EOF
[rightlink]
name=RightLink
baseurl=http://rightlink-integration.test.rightscale.com/adhoc/ivory/v6.0/yum/1/el/6/x86_64
gpgcheck=1
gpgkey=http://s3.amazonaws.com/rightscale_key_pub/rightscale_key.pub
EOF
yum install -y --nogpgcheck rightlink-cloud-none
SCRIPT

default_config.vm.provision :chef_solo do |chef|
chef.binary_env = "GEM_HOME=/opt/rightscale/sandbox/lib/ruby/gems/1.9.1"
chef.binary_path = "/opt/rightscale/sandbox/bin"
end
end

end
1 change: 1 addition & 0 deletions runlists/centos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
47 changes: 47 additions & 0 deletions runlists/centos/default.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"rightscale": { "instance_uuid": "uuid-default" },
"ephemeral_lvm": {
"filesystem": "ext4",
"mount_point": "/mnt/ephemeral",
"logical_volume_name": "ephemeral0",
"logical_volume_size": "100%VG",
"stripe_size": 512,
"volume_group_name": "vg-data"
},
"rs-base": {
"collectd_server": "localhost",
"ntp": {
"servers": ["time.rightscale.com","ec2-us-east.time.rightscale.com","ec2-us-west.time.rightscale.com"]
},
"swap": {
"size": 1
}
},
"resolver": {
"nameservers": ["8.8.8.8","8.8.4.4","4.2.2.3","4.2.2.6"],
"search": "foo.bar.baz"
},
"nginx": {
"install_method": "package"
},
"rundeck": {
"admin": {
"username": "admin",
"password": "password",
"ssh_key": "TODO: Put a key here"
}
},
"run_list": [
"recipe[resolver]",
"recipe[rightscaleshim]",
"recipe[ephemeral_lvm::default]",
"recipe[rs-machine_tag::default]",
"recipe[rs-base::swap]",
"recipe[rs-base::ntp]",
"recipe[rs-base::rsyslog]",
"recipe[rs-base::collectd]",
"recipe[nginx]",
"recipe[rundeck::default]",
"recipe[rundeck::proxy]"
]
}

0 comments on commit 6df06f2

Please sign in to comment.