Skip to content

Commit 57532b1

Browse files
first commit
1 parent 11b8d0f commit 57532b1

File tree

343 files changed

+17536
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+17536
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
.vagrant

Cheffile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env ruby
2+
#^syntax detection
3+
4+
site 'http://community.opscode.com/api/v1'
5+
6+
cookbook 'runit', '~> 0.16.2'
7+
cookbook 'nginx', '~> 1.1.2'

Cheffile.lock

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SITE
2+
remote: http://community.opscode.com/api/v1
3+
specs:
4+
build-essential (1.4.0)
5+
nginx (1.1.4)
6+
build-essential (>= 0.0.0)
7+
ohai (>= 1.1.4)
8+
ohai (1.1.10)
9+
runit (0.16.2)
10+
11+
DEPENDENCIES
12+
nginx (~> 1.1.2)
13+
runit (~> 0.16.2)
14+

Vagrantfile

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
# All Vagrant configuration is done here. The most common configuration
6+
# options are documented and commented below. For a complete reference,
7+
# please see the online documentation at vagrantup.com.
8+
9+
# Every Vagrant virtual environment requires a box to build off of.
10+
11+
config.vm.box = "mi_caja_ubuntu_precise_32"
12+
13+
# config.vm.network :forwarded_port, host: 4567, guest: 80
14+
# config.vm.provision :shell, :path => "instala_apache.sh"
15+
16+
# The url from where the 'config.vm.box' box will be fetched if it
17+
# doesn't already exist on the user's system.
18+
# config.vm.box_url = "http://domain.com/path/to/above.box"
19+
20+
# Create a forwarded port mapping which allows access to a specific port
21+
# within the machine from a port on the host machine. In the example below,
22+
# accessing "localhost:8080" will access port 80 on the guest machine.
23+
# config.vm.network :forwarded_port, guest: 80, host: 8080
24+
25+
# Create a private network, which allows host-only access to the machine
26+
# using a specific IP.
27+
28+
config.vm.network :private_network, ip: "192.168.33.10"
29+
30+
# Create a public network, which generally matched to bridged network.
31+
# Bridged networks make the machine appear as another physical device on
32+
# your network.
33+
# config.vm.network :public_network
34+
35+
# If true, then any SSH connections made will enable agent forwarding.
36+
# Default value: false
37+
# config.ssh.forward_agent = true
38+
39+
# Share an additional folder to the guest VM. The first argument is
40+
# the path on the host to the actual folder. The second argument is
41+
# the path on the guest to mount the folder. And the optional third
42+
# argument is a set of non-required options.
43+
# config.vm.synced_folder "../data", "/vagrant_data"
44+
45+
# Provider-specific configuration so you can fine-tune various
46+
# backing providers for Vagrant. These expose provider-specific options.
47+
# Example for VirtualBox:
48+
#
49+
# config.vm.provider :virtualbox do |vb|
50+
# # Don't boot with headless mode
51+
# vb.gui = true
52+
#
53+
# # Use VBoxManage to customize the VM. For example to change memory:
54+
# vb.customize ["modifyvm", :id, "--memory", "1024"]
55+
# end
56+
#
57+
# View the documentation for the provider you're using for more
58+
# information on available options.
59+
60+
# Enable provisioning with Puppet stand alone. Puppet manifests
61+
# are contained in a directory path relative to this Vagrantfile.
62+
# You will need to create the manifests directory and a manifest in
63+
# the file base.pp in the manifests_path directory.
64+
#
65+
# An example Puppet manifest to provision the message of the day:
66+
#
67+
# # group { "puppet":
68+
# # ensure => "present",
69+
# # }
70+
# #
71+
# # File { owner => 0, group => 0, mode => 0644 }
72+
# #
73+
# # file { '/etc/motd':
74+
# # content => "Welcome to your Vagrant-built virtual machine!
75+
# # Managed by Puppet.\n"
76+
# # }
77+
#
78+
# config.vm.provision :puppet do |puppet|
79+
# puppet.manifests_path = "manifests"
80+
# puppet.manifest_file = "init.pp"
81+
# end
82+
83+
# Enable provisioning with chef solo, specifying a cookbooks path, roles
84+
# path, and data_bags path (all relative to this Vagrantfile), and adding
85+
# some recipes and/or roles.
86+
#
87+
88+
VAGRANT_JSON = JSON.parse(Pathname(__FILE__).dirname.join('nodes', 'vagrant_node.json').read)
89+
90+
config.vm.provision :chef_solo do |chef|
91+
chef.cookbooks_path = "cookbooks"
92+
chef.roles_path = "roles"
93+
chef.data_bags_path = "data_bags"
94+
chef.provisioning_path = "/tmp/vagrant-chef"
95+
96+
# You may also specify custom JSON attributes:
97+
chef.run_list = VAGRANT_JSON.delete('run_list')
98+
chef.json = VAGRANT_JSON
99+
end
100+
101+
# Enable provisioning with chef server, specifying the chef server URL,
102+
# and the path to the validation key (relative to this Vagrantfile).
103+
#
104+
# The Opscode Platform uses HTTPS. Substitute your organization for
105+
# ORGNAME in the URL and validation key.
106+
#
107+
# If you have your own Chef Server, use the appropriate URL, which may be
108+
# HTTP instead of HTTPS depending on your configuration. Also change the
109+
# validation key to validation.pem.
110+
#
111+
# config.vm.provision :chef_client do |chef|
112+
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
113+
# chef.validation_key_path = "ORGNAME-validator.pem"
114+
# end
115+
#
116+
# If you're using the Opscode platform, your validator client is
117+
# ORGNAME-validator, replacing ORGNAME with your organization name.
118+
#
119+
# If you have your own Chef Server, the default validation client name is
120+
# chef-validator, unless you changed the configuration.
121+
#
122+
# chef.validation_client_name = "ORGNAME-validator"
123+
end

cookbooks/build-essential/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.bundle
2+
.cache
3+
.kitchen
4+
bin
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
driver_plugin: vagrant
3+
platforms:
4+
- name: debian-6
5+
driver_config:
6+
box: opscode-debian-6
7+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_debian-6.0.7_chef-11.2.0.box
8+
require_chef_omnibus: 11.4.0
9+
- name: ubuntu-12.10
10+
driver_config:
11+
box: canonical-ubuntu-12.10
12+
box_url: http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box
13+
require_chef_omnibus: 11.4.0
14+
- name: ubuntu-12.04
15+
driver_config:
16+
box: canonical-ubuntu-12.04
17+
box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
18+
require_chef_omnibus: 11.4.0
19+
- name: ubuntu-11.04
20+
driver_config:
21+
box: opscode-ubuntu-11.04
22+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-11.04.box
23+
require_chef_omnibus: 11.4.0
24+
- name: ubuntu-10.04
25+
driver_config:
26+
box: opscode-ubuntu-10.04
27+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box
28+
require_chef_omnibus: 11.4.0
29+
- name: centos-6.3
30+
driver_config:
31+
box: opscode-centos-6.3
32+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box
33+
require_chef_omnibus: 11.4.0
34+
- name: centos-5.8
35+
driver_config:
36+
box: opscode-centos-5.8
37+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box
38+
require_chef_omnibus: 11.4.0
39+
suites:
40+
- name: default
41+
run_list:
42+
- recipe[build-essential]

cookbooks/build-essential/Berksfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
site :opscode
2+
3+
metadata
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## v1.4.0:
2+
3+
This version splits up the default recipe into recipes included based
4+
on the node's platform_family.
5+
6+
* [COOK-2505] - backport omnibus builder improvements
7+
8+
## v1.3.4:
9+
10+
* [COOK-2272] - Complete `platform_family` conversion in build-essential
11+
12+
## v1.3.2:
13+
14+
* [COOK-2069] - build-essential will install osx-gcc-installer when
15+
Xcode is present
16+
17+
## v1.3.0:
18+
19+
* [COOK-1895] - support smartos
20+
21+
## v1.2.0:
22+
23+
* Add test-kitchen support (source repo only)
24+
* [COOK-1677] - build-essential cookbook support for OpenSuse and SLES
25+
* [COOK-1718] - build-essential cookbook metadata should include scientific
26+
* [COOK-1768] - The apt-get update in build-essentials needs to be renamed
27+
28+
## v1.1.2:
29+
30+
* [COOK-1620] - support OS X 10.8
31+
32+
## v1.1.0:
33+
34+
* [COOK-1098] - support amazon linux
35+
* [COOK-1149] - support Mac OS X
36+
* [COOK-1296] - allow for compile-time installation of packages
37+
through an attribute (see README)
38+
39+
## v1.0.2:
40+
41+
* [COOK-1098] - Add Amazon Linux platform support
42+
* [COOK-1149] - Add OS X platform support
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
If you would like to contribute, please open a ticket in JIRA:
2+
3+
* http://tickets.opscode.com
4+
5+
Create the ticket in the COOK project and use the cookbook name as the
6+
component.
7+
8+
For all code contributions, we ask that contributors sign a
9+
contributor license agreement (CLA). Instructions may be found here:
10+
11+
* http://wiki.opscode.com/display/chef/How+to+Contribute
12+
13+
When contributing changes to individual cookbooks, please do not
14+
modify the version number in the metadata.rb. Also please do not
15+
update the CHANGELOG.md for a new version. Not all changes to a
16+
cookbook may be merged and released in the same versions. Opscode will
17+
handle the version updates during the release process. You are welcome
18+
to correct typos or otherwise make updates to documentation in the
19+
README.
20+
21+
If a contribution adds new platforms or platform versions, indicate
22+
such in the body of the commit message(s), and update the relevant
23+
COOK ticket. When writing commit messages, it is helpful for others if
24+
you indicate the COOK ticket. For example:
25+
26+
git commit -m '[COOK-1041] Updated pool resource to correctly delete.'
27+
28+
In the ticket itself, it is also helpful if you include log output of
29+
a successful Chef run, but this is not absolutely required.

0 commit comments

Comments
 (0)