Skip to content

Commit

Permalink
Add the cookbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam committed Apr 7, 2012
1 parent 7bed806 commit b62c330
Show file tree
Hide file tree
Showing 13 changed files with 152 additions and 18 deletions.
24 changes: 24 additions & 0 deletions .chef/knife.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
current_dir = File.dirname(__FILE__)

log_level :info
log_location STDOUT

node_name 'vagrant'
client_key 'vagrant.pem'

validation_client_name 'chef-validator'
validation_key "#{current_dir}/validation.pem"

chef_server_url 'http://33.33.33.100:4000'
cache_type 'BasicFile'
cache_options( :path => '.chef/checksums' )

cookbook_copyright 'Learn Yourself Some Chef'
cookbook_email 'chef@cruft.co'
cookbook_license 'apachev2'

cookbook_path [
"#{current_dir}/../chef-repo/cookbooks/",
]

encrypted_data_bag_secret "#{current_dir}/data_bag_key"
36 changes: 18 additions & 18 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ Vagrant::Config.run do |config|
chefserver_config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
chefserver_config.vm.network :hostonly, "33.33.33.100"
chefserver_config.vm.customize ["modifyvm", :id, "--memory", 1024]
end

################################################################################

config.vm.define :doctorwu do |doctorwu_config|
doctorwu_config.vm.host_name = "doctorwu"
doctorwu_config.vm.box = "lucid64"
doctorwu_config.vm.network :hostonly, "33.33.33.101"

doctorwu_config.vm.provision :chef_client do |chef|
chef.node_name = "doctorwu"
chef.chef_server_url = "http://33.33.33.100:4000"
chef.provisioning_path = "/etc/chef"
chef.validation_client_name = "chef-validator"
chef.validation_key_path = ".chef/validation.pem"
chef.environment = "studio"
end
end

################################################################################

### config.vm.define :protoscore do |protoscore_config|
### protoscore_config.vm.host_name = "protoscore"
### protoscore_config.vm.box = "lucid64"
### protoscore_config.vm.network :hostonly, "33.33.33.50"
###
### protoscore_config.vm.provision :chef_client do |chef|
### chef.node_name = "protoscore-vagrant"
### chef.chef_server_url = "http://chef.amee.com:4000"
### chef.provisioning_path = "/etc/chef"
### chef.validation_client_name = "chef-validator"
### chef.validation_key_path = ".chef/validation.pem"
### # chef.run_list = chef.run_list = [
### # "role[amee-protoscore]"
### # ]
### # can put a role here, too
### chef.environment = "vagrant-dev"
### end
### end
end
12 changes: 12 additions & 0 deletions chef-repo/cookbooks/aja/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Description
===========

Requirements
============

Attributes
==========

Usage
=====

6 changes: 6 additions & 0 deletions chef-repo/cookbooks/aja/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
maintainer "Learn Yourself Some Chef"
maintainer_email "chef@cruft.co"
license "Apache 2.0"
description "Installs/Configures aja"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.1"
18 changes: 18 additions & 0 deletions chef-repo/cookbooks/aja/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Cookbook Name:: aja
# Recipe:: default
#
# Copyright 2012, Learn Yourself Some Chef
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
12 changes: 12 additions & 0 deletions chef-repo/cookbooks/countdown_to_ecstasy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Description
===========

Requirements
============

Attributes
==========

Usage
=====

6 changes: 6 additions & 0 deletions chef-repo/cookbooks/countdown_to_ecstasy/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
maintainer "Learn Yourself Some Chef"
maintainer_email "chef@cruft.co"
license "Apache 2.0"
description "Installs/Configures countdown_to_ecstasy"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.1"
18 changes: 18 additions & 0 deletions chef-repo/cookbooks/countdown_to_ecstasy/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Cookbook Name:: countdown_to_ecstasy
# Recipe:: default
#
# Copyright 2012, Learn Yourself Some Chef
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
12 changes: 12 additions & 0 deletions chef-repo/cookbooks/the_royal_scam/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Description
===========

Requirements
============

Attributes
==========

Usage
=====

6 changes: 6 additions & 0 deletions chef-repo/cookbooks/the_royal_scam/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
maintainer "Learn Yourself Some Chef"
maintainer_email "chef@cruft.co"
license "Apache 2.0"
description "Installs/Configures the_royal_scam"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.1"
18 changes: 18 additions & 0 deletions chef-repo/cookbooks/the_royal_scam/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Cookbook Name:: the_royal_scam
# Recipe:: default
#
# Copyright 2012, Learn Yourself Some Chef
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
1 change: 1 addition & 0 deletions chef-repo/environments/live.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name "live"
1 change: 1 addition & 0 deletions chef-repo/environments/studio.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name "studio"

0 comments on commit b62c330

Please sign in to comment.