Skip to content

Commit 3d1edc1

Browse files
committed
Initial commit
0 parents  commit 3d1edc1

File tree

334 files changed

+27205
-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.

334 files changed

+27205
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vagrant
2+
data_bags/git/ssh_keys.json

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vagrant-chef-wordpress
2+
======================
3+
4+
A shortcut to a Wordpress dev environment on a Vagrant VirtualBox provisioned with Chef.

Vagrantfile

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant::Config.run 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+
config.vm.box = "precise64"
11+
12+
# The url from where the 'config.vm.box' box will be fetched if it
13+
# doesn't already exist on the user's system.
14+
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
15+
16+
# Boot with a GUI so you can see the screen. (Default is headless)
17+
# config.vm.boot_mode = :gui
18+
19+
# Assign this VM to a host-only network IP, allowing you to access it
20+
# via the IP. Host-only networks can talk to the host machine as well as
21+
# any other machines on the same network, but cannot be accessed (through this
22+
# network interface) by any external networks.
23+
# config.vm.network :hostonly, "192.168.33.10"
24+
25+
# Assign this VM to a bridged network, allowing you to connect directly to a
26+
# network using the host's network device. This makes the VM appear as another
27+
# physical device on your network.
28+
# config.vm.network :bridged
29+
30+
# Forward a port from the guest to the host, which allows for outside
31+
# computers to access the VM, whereas host only networking does not.
32+
config.vm.forward_port 80, 8000
33+
34+
# Share an additional folder to the guest VM. The first argument is
35+
# an identifier, the second is the path on the guest to mount the
36+
# folder, and the third is the path on the host to the actual folder.
37+
config.vm.share_folder "v-data", "/home/vagrant/host_shared", "./shared"
38+
39+
# Enable provisioning with Puppet stand alone. Puppet manifests
40+
# are contained in a directory path relative to this Vagrantfile.
41+
# You will need to create the manifests directory and a manifest in
42+
# the file base.pp in the manifests_path directory.
43+
#
44+
# An example Puppet manifest to provision the message of the day:
45+
#
46+
# # group { "puppet":
47+
# # ensure => "present",
48+
# # }
49+
# #
50+
# # File { owner => 0, group => 0, mode => 0644 }
51+
# #
52+
# # file { '/etc/motd':
53+
# # content => "Welcome to your Vagrant-built virtual machine!
54+
# # Managed by Puppet.\n"
55+
# # }
56+
#
57+
# config.vm.provision :puppet do |puppet|
58+
# puppet.manifests_path = "manifests"
59+
# puppet.manifest_file = "base.pp"
60+
# end
61+
62+
# Enable provisioning with chef solo, specifying a cookbooks path, roles
63+
# path, and data_bags path (all relative to this Vagrantfile), and adding
64+
# some recipes and/or roles.
65+
#
66+
config.vm.provision :chef_solo do |chef|
67+
chef.json = {
68+
:mysql => {
69+
:server_root_password => "open sesame ha ha ha",
70+
:server_repl_password => "open sesame ha ha ha",
71+
:server_debian_password => "open sesame ha ha ha"
72+
}
73+
}
74+
chef.cookbooks_path = "cookbooks"
75+
chef.data_bags_path = "data_bags"
76+
chef.add_recipe "apt"
77+
chef.add_recipe "build-essential"
78+
chef.add_recipe "ohai"
79+
chef.add_recipe "mysql::server"
80+
#chef.add_recipe "nginx"
81+
#chef.add_recipe "php-fpm"
82+
chef.add_recipe "apache2"
83+
chef.add_recipe "wordpress"
84+
chef.add_recipe "vim"
85+
chef.add_recipe "configure"
86+
# You may also specify custom JSON attributes:
87+
# chef.json = { :mysql_password => "foo" }
88+
end
89+
90+
# Enable provisioning with chef server, specifying the chef server URL,
91+
# and the path to the validation key (relative to this Vagrantfile).
92+
#
93+
# The Opscode Platform uses HTTPS. Substitute your organization for
94+
# ORGNAME in the URL and validation key.
95+
#
96+
# If you have your own Chef Server, use the appropriate URL, which may be
97+
# HTTP instead of HTTPS depending on your configuration. Also change the
98+
# validation key to validation.pem.
99+
#
100+
# config.vm.provision :chef_client do |chef|
101+
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
102+
# chef.validation_key_path = "ORGNAME-validator.pem"
103+
# end
104+
#
105+
# If you're using the Opscode platform, your validator client is
106+
# ORGNAME-validator, replacing ORGNAME with your organization name.
107+
#
108+
# IF you have your own Chef Server, the default validation client name is
109+
# chef-validator, unless you changed the configuration.
110+
#
111+
# chef.validation_client_name = "ORGNAME-validator"
112+
end

cookbooks/apache2/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/kitchen/.kitchen/

cookbooks/apache2/CHANGELOG.md

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
## v1.4.2:
2+
3+
* [COOK-1721] - fix logrotate recipe
4+
5+
## v1.4.0:
6+
7+
* [COOK-1456] - iptables enhancements
8+
* [COOK-1473] - apache2 does not disable default site when setting
9+
"`default_site_enabled`" back to false
10+
* [COOK-1824] - the apache2 cookbook needs to specify which binary is
11+
used on rhel platform
12+
* [COOK-1916] - Download location wrong for apache2 `mod_auth_openid`
13+
>= 0.7
14+
* [COOK-1917] - Improve `mod_auth_openid` recipe to handle module
15+
upgrade more gracefully
16+
* [COOK-2029] - apache2 restarts on every run on RHEL and friends,
17+
generate-module-list on every run.
18+
* [COOK-2036] - apache2: Cookbook style
19+
20+
## v1.3.2:
21+
22+
* [COOK-1804] - fix `web_app` definition parameter so site can be
23+
disabled.
24+
25+
## v1.3.0:
26+
27+
* [COOK-1738] - Better configuration for `mod_include` and some
28+
overrides in `web_app` definition
29+
* [COOK-1470] - Change SSL Ciphers to Mitigate BEAST attack
30+
31+
## v1.2.0:
32+
33+
* [COOK-692] - delete package conf.d files in module recipes, for EL
34+
* [COOK-1693] - Foodcritic finding for unnecessary string interpolation
35+
* [COOK-1757] - platform_family and better style / usage practices
36+
37+
## v1.1.16:
38+
39+
re-releasing as .16 due to error on tag 1.1.14
40+
41+
* [COOK-1466] - add `mod_auth_cas` recipe
42+
* [COOK-1609] - apache2 changes ports.conf twice per run when using
43+
apache2::mod_ssl
44+
45+
## v1.1.12:
46+
47+
* [COOK-1436] - restore apache2 web_app definition
48+
* [COOK-1356] - allow ExtendedStatus via attribute
49+
* [COOK-1403] - add mod_fastcgi recipe
50+
51+
## v1.1.10:
52+
53+
* [COOK-1315] - allow the default site to not be enabled
54+
* [COOK-1328] - cookbook tests (minitest, cucumber)
55+
56+
## v1.1.8:
57+
58+
* Some platforms with minimal installations that don't have perl won't
59+
have a `node['languages']['perl']` attribute, so remove the
60+
conditional and rely on the power of idempotence in the package
61+
resource.
62+
* [COOK-1214] - address foodcritic warnings
63+
* [COOK-1180] - add `mod_logio` and fix `mod_proxy`
64+
65+
## v1.1.6:
66+
67+
FreeBSD users: This release requires the `freebsd` cookbook. See README.md.
68+
69+
* [COOK-1025] - freebsd support in mod_php5 recipe
70+
71+
## v1.1.4:
72+
73+
* [COOK-1100] - support amazon linux
74+
75+
## v1.1.2:
76+
77+
* [COOK-996] - apache2::mod_php5 can cause PHP and module API mismatches
78+
* [COOK-1083] - return string for v_f_p and use correct value for
79+
default
80+
81+
## v1.1.0:
82+
83+
* [COOK-861] - Add `mod_perl` and apreq2
84+
* [COOK-941] - fix `mod_auth_openid` on FreeBSD
85+
* [COOK-1021] - add a commented-out LoadModule directive to keep apxs happy
86+
* [COOK-1022] - consistency for icondir attribute
87+
* [COOK-1023] - fix platform test for attributes
88+
* [COOK-1024] - fix a2enmod script so it runs cleanly on !bash
89+
* [COOK-1026] - fix `error_log` location on FreeBSD
90+
91+
## v1.0.8:
92+
93+
* COOK-548 - directory resource doesn't have backup parameter
94+
95+
## v1.0.6:
96+
97+
* COOK-915 - update to `mod_auth_openid` version 0.6, see __Recipes/mod_auth_openid__ below.
98+
* COOK-548 - Add support for FreeBSD.
99+
100+
## v1.0.4:
101+
102+
* COOK-859 - don't hardcode module paths
103+
104+
## v1.0.2
105+
106+
* Tickets resolved in this release: COOK-788, COOK-782, COOK-780
107+
108+
## v1.0.0
109+
110+
* Red Hat family support is greatly improved, all recipes except `god_monitor` converge.
111+
* Recipe `mod_auth_openid` now works on RHEL family distros
112+
* Recipe `mod_php5` will now remove config from package on RHEL family so it doesn't conflict with the cookbook's.
113+
* Added `php5.conf.erb` template for `mod_php5` recipe.
114+
* Create the run state directory for `mod_fcgid` to prevent a startup error on RHEL version 6.
115+
* New attribute `node['apache']['lib_dir']` to handle lib vs lib64 on RHEL family distributions.
116+
* New attribute `node['apache']['group']`.
117+
* Scientific Linux support added.
118+
* Use a file resource instead of the generate-module-list executed perl script on RHEL family.
119+
* "default" site can now be disabled.
120+
* web_app now has an "enable" parameter.
121+
* Support for dav_fs apache module.
122+
* Tickets resolved in this release: COOK-754, COOK-753, COOK-665, COOK-624, COOK-579, COOK-519, COOK-518
123+
* Fix node references in template for a2dissite
124+
* Use proper user and group attributes on files and templates.
125+
* Replace the anemic README.rdoc with this new and improved superpowered README.md :).

0 commit comments

Comments
 (0)