Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Add rubygems-cloud-init cookbook
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 29, 2014
1 parent b2a7b26 commit 09fd9e2
Showing 7 changed files with 85 additions and 4 deletions.
1 change: 1 addition & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ cookbook 'rubygems-balancer', path: 'cookbooks/rubygems-balancer'
cookbook 'rubygems-bastion', path: 'cookbooks/rubygems-bastion'
cookbook 'rubygems-cache', path: 'cookbooks/rubygems-cache'
cookbook 'rubygems-chef', path: 'cookbooks/rubygems-chef'
cookbook 'rubygems-cloud-init', path: 'cookbooks/rubygems-cloud-init'
cookbook 'rubygems-ci', path: 'cookbooks/rubygems-ci'
cookbook 'rubygems-database', path: 'cookbooks/rubygems-database'
cookbook 'rubygems-hostname', path: 'cookbooks/rubygems-hostname'
6 changes: 5 additions & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -35,6 +35,8 @@ DEPENDENCIES
path: cookbooks/rubygems-chef
rubygems-ci
path: cookbooks/rubygems-ci
rubygems-cloud-init
path: cookbooks/rubygems-cloud-init
rubygems-database
path: cookbooks/rubygems-database
rubygems-hostname
@@ -167,8 +169,9 @@ GRAPH
redisio (1.7.1)
ulimit (>= 0.1.2)
rsyslog (1.12.2)
rubygems (0.0.13)
rubygems (0.0.15)
rubygems-chef (>= 0.0.0)
rubygems-cloud-init (>= 0.0.0)
rubygems-hostname (>= 0.0.0)
rubygems-hosts (>= 0.0.0)
rubygems-logging (>= 0.0.0)
@@ -210,6 +213,7 @@ GRAPH
jenkins (>= 0.0.0)
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-cloud-init (0.0.1)
rubygems-database (0.0.22)
chef-vault (>= 0.0.0)
database (>= 0.0.0)
67 changes: 67 additions & 0 deletions cookbooks/rubygems-cloud-init/files/default/cloud.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
users:
- default

disable_root: true
preserve_hostname: true

cloud_init_modules:
- migrator
- seed_random
- bootcmd
- write-files
- growpart
- resizefs
- set_hostname
- update_hostname
- update_etc_hosts
- ca-certs
- rsyslog
- users-groups
- ssh

cloud_config_modules:
- emit_upstart
- disk_setup
- mounts
- ssh-import-id
- locale
- set-passwords
- grub-dpkg
- package-update-upgrade-install
- landscape
- timezone
- puppet
- chef
- salt-minion
- mcollective
- disable-ec2-metadata
- runcmd
- byobu

cloud_final_modules:
- rightscale_userdata
- scripts-vendor
- scripts-per-once
- scripts-per-boot
- scripts-per-instance
- scripts-user
- ssh-authkey-fingerprints
- keys-to-console
- phone-home
- final-message
- power-state-change

system_info:
distro: ubuntu
default_user:
name: ubuntu
lock_passwd: True
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
paths:
cloud_dir: /var/lib/cloud/
templates_dir: /etc/cloud/templates/
upstart_dir: /etc/init/
ssh_svcname: ssh
6 changes: 6 additions & 0 deletions cookbooks/rubygems-cloud-init/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name 'rubygems-cloud-init'
maintainer 'RubyGems.org ops team'

version '0.0.1'

supports 'ubuntu'
3 changes: 3 additions & 0 deletions cookbooks/rubygems-cloud-init/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cookbook_file 'cloud.cfg' do
path '/etc/cloud/cloud.cfg'
end
3 changes: 2 additions & 1 deletion cookbooks/rubygems/metadata.rb
Original file line number Diff line number Diff line change
@@ -2,9 +2,10 @@
maintainer 'RubyGems.org Ops Team'
license 'MIT'
description 'RubyGems base recipes'
version '0.0.13'
version '0.0.15'

depends 'rubygems-chef'
depends 'rubygems-cloud-init'
depends 'rubygems-hostname'
depends 'rubygems-hosts'
depends 'rubygems-logging'
3 changes: 1 addition & 2 deletions cookbooks/rubygems/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -3,9 +3,8 @@
# Recipe:: default
#

node.default['rubygems']['role_from_base_recipe'] = node.recipes.first.split('-')[1]

include_recipe 'rubygems-chef'
include_recipe 'rubygems-cloud-init'
include_recipe 'rubygems-hostname'
include_recipe 'rubygems-hosts'
include_recipe 'rubygems-logging'

0 comments on commit 09fd9e2

Please sign in to comment.