vagrant-managed-servers 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. data/.gitignore +2 -1
  2. data/.travis.yml +5 -0
  3. data/Berksfile +1 -1
  4. data/CHANGELOG.md +7 -1
  5. data/Gemfile +8 -4
  6. data/README.md +5 -3
  7. data/Rakefile +11 -0
  8. data/Vagrantfile +3 -2
  9. data/lib/vagrant-managed-servers/action/sync_folders.rb +5 -3
  10. data/lib/vagrant-managed-servers/version.rb +1 -1
  11. data/vagrant-managed-servers.gemspec +3 -3
  12. metadata +10 -134
  13. data/cookbooks/apache2/CHANGELOG.md +0 -95
  14. data/cookbooks/apache2/CONTRIBUTING.md +0 -257
  15. data/cookbooks/apache2/Gemfile +0 -10
  16. data/cookbooks/apache2/LICENSE +0 -201
  17. data/cookbooks/apache2/README.md +0 -567
  18. data/cookbooks/apache2/attributes/default.rb +0 -149
  19. data/cookbooks/apache2/attributes/mod_auth_cas.rb +0 -2
  20. data/cookbooks/apache2/attributes/mod_auth_openid.rb +0 -32
  21. data/cookbooks/apache2/definitions/apache_conf.rb +0 -26
  22. data/cookbooks/apache2/definitions/apache_module.rb +0 -53
  23. data/cookbooks/apache2/definitions/apache_site.rb +0 -43
  24. data/cookbooks/apache2/definitions/web_app.rb +0 -49
  25. data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +0 -41
  26. data/cookbooks/apache2/files/default/tests/minitest/default_test.rb +0 -77
  27. data/cookbooks/apache2/files/default/tests/minitest/god_monitor_test.rb +0 -34
  28. data/cookbooks/apache2/files/default/tests/minitest/mod_apreq2_test.rb +0 -19
  29. data/cookbooks/apache2/files/default/tests/minitest/mod_auth_cas_test.rb +0 -11
  30. data/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb +0 -37
  31. data/cookbooks/apache2/files/default/tests/minitest/mod_cgi_test.rb +0 -13
  32. data/cookbooks/apache2/files/default/tests/minitest/mod_dav_svn_test.rb +0 -14
  33. data/cookbooks/apache2/files/default/tests/minitest/mod_fastcgi.rb +0 -11
  34. data/cookbooks/apache2/files/default/tests/minitest/mod_perl_test.rb +0 -18
  35. data/cookbooks/apache2/files/default/tests/minitest/mod_php5_test.rb +0 -13
  36. data/cookbooks/apache2/files/default/tests/minitest/mod_python_test.rb +0 -10
  37. data/cookbooks/apache2/files/default/tests/minitest/mod_ssl_test.rb +0 -23
  38. data/cookbooks/apache2/files/default/tests/minitest/support/helpers.rb +0 -50
  39. data/cookbooks/apache2/metadata.json +0 -513
  40. data/cookbooks/apache2/metadata.rb +0 -207
  41. data/cookbooks/apache2/recipes/default.rb +0 -208
  42. data/cookbooks/apache2/recipes/god_monitor.rb +0 -33
  43. data/cookbooks/apache2/recipes/logrotate.rb +0 -29
  44. data/cookbooks/apache2/recipes/mod_alias.rb +0 -22
  45. data/cookbooks/apache2/recipes/mod_apreq2.rb +0 -54
  46. data/cookbooks/apache2/recipes/mod_auth_basic.rb +0 -20
  47. data/cookbooks/apache2/recipes/mod_auth_cas.rb +0 -59
  48. data/cookbooks/apache2/recipes/mod_auth_digest.rb +0 -20
  49. data/cookbooks/apache2/recipes/mod_auth_openid.rb +0 -111
  50. data/cookbooks/apache2/recipes/mod_authn_file.rb +0 -20
  51. data/cookbooks/apache2/recipes/mod_authnz_ldap.rb +0 -20
  52. data/cookbooks/apache2/recipes/mod_authz_default.rb +0 -20
  53. data/cookbooks/apache2/recipes/mod_authz_groupfile.rb +0 -20
  54. data/cookbooks/apache2/recipes/mod_authz_host.rb +0 -20
  55. data/cookbooks/apache2/recipes/mod_authz_user.rb +0 -20
  56. data/cookbooks/apache2/recipes/mod_autoindex.rb +0 -22
  57. data/cookbooks/apache2/recipes/mod_cgi.rb +0 -20
  58. data/cookbooks/apache2/recipes/mod_dav.rb +0 -20
  59. data/cookbooks/apache2/recipes/mod_dav_fs.rb +0 -21
  60. data/cookbooks/apache2/recipes/mod_dav_svn.rb +0 -41
  61. data/cookbooks/apache2/recipes/mod_deflate.rb +0 -22
  62. data/cookbooks/apache2/recipes/mod_dir.rb +0 -22
  63. data/cookbooks/apache2/recipes/mod_env.rb +0 -20
  64. data/cookbooks/apache2/recipes/mod_expires.rb +0 -20
  65. data/cookbooks/apache2/recipes/mod_fastcgi.rb +0 -26
  66. data/cookbooks/apache2/recipes/mod_fcgid.rb +0 -55
  67. data/cookbooks/apache2/recipes/mod_headers.rb +0 -20
  68. data/cookbooks/apache2/recipes/mod_include.rb +0 -20
  69. data/cookbooks/apache2/recipes/mod_ldap.rb +0 -20
  70. data/cookbooks/apache2/recipes/mod_log_config.rb +0 -24
  71. data/cookbooks/apache2/recipes/mod_logio.rb +0 -24
  72. data/cookbooks/apache2/recipes/mod_mime.rb +0 -22
  73. data/cookbooks/apache2/recipes/mod_negotiation.rb +0 -22
  74. data/cookbooks/apache2/recipes/mod_perl.rb +0 -44
  75. data/cookbooks/apache2/recipes/mod_php5.rb +0 -77
  76. data/cookbooks/apache2/recipes/mod_proxy.rb +0 -22
  77. data/cookbooks/apache2/recipes/mod_proxy_ajp.rb +0 -21
  78. data/cookbooks/apache2/recipes/mod_proxy_balancer.rb +0 -20
  79. data/cookbooks/apache2/recipes/mod_proxy_connect.rb +0 -20
  80. data/cookbooks/apache2/recipes/mod_proxy_http.rb +0 -20
  81. data/cookbooks/apache2/recipes/mod_python.rb +0 -38
  82. data/cookbooks/apache2/recipes/mod_rewrite.rb +0 -20
  83. data/cookbooks/apache2/recipes/mod_setenvif.rb +0 -22
  84. data/cookbooks/apache2/recipes/mod_ssl.rb +0 -46
  85. data/cookbooks/apache2/recipes/mod_status.rb +0 -22
  86. data/cookbooks/apache2/recipes/mod_wsgi.rb +0 -38
  87. data/cookbooks/apache2/recipes/mod_xsendfile.rb +0 -38
  88. data/cookbooks/apache2/templates/default/a2dismod.erb +0 -22
  89. data/cookbooks/apache2/templates/default/a2dissite.erb +0 -29
  90. data/cookbooks/apache2/templates/default/a2enmod.erb +0 -37
  91. data/cookbooks/apache2/templates/default/a2ensite.erb +0 -38
  92. data/cookbooks/apache2/templates/default/apache2.conf.erb +0 -237
  93. data/cookbooks/apache2/templates/default/apache2.god.erb +0 -19
  94. data/cookbooks/apache2/templates/default/charset.erb +0 -6
  95. data/cookbooks/apache2/templates/default/default-site.erb +0 -57
  96. data/cookbooks/apache2/templates/default/mods/README +0 -2
  97. data/cookbooks/apache2/templates/default/mods/alias.conf.erb +0 -24
  98. data/cookbooks/apache2/templates/default/mods/auth_cas.conf.erb +0 -1
  99. data/cookbooks/apache2/templates/default/mods/auth_cas.load.erb +0 -1
  100. data/cookbooks/apache2/templates/default/mods/authopenid.load.erb +0 -1
  101. data/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +0 -101
  102. data/cookbooks/apache2/templates/default/mods/deflate.conf.erb +0 -16
  103. data/cookbooks/apache2/templates/default/mods/dir.conf.erb +0 -5
  104. data/cookbooks/apache2/templates/default/mods/fastcgi.conf.erb +0 -5
  105. data/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +0 -10
  106. data/cookbooks/apache2/templates/default/mods/mime.conf.erb +0 -198
  107. data/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +0 -18
  108. data/cookbooks/apache2/templates/default/mods/php5.conf.erb +0 -16
  109. data/cookbooks/apache2/templates/default/mods/proxy.conf.erb +0 -19
  110. data/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +0 -28
  111. data/cookbooks/apache2/templates/default/mods/ssl.conf.erb +0 -76
  112. data/cookbooks/apache2/templates/default/mods/status.conf.erb +0 -26
  113. data/cookbooks/apache2/templates/default/port_apache.erb +0 -2
  114. data/cookbooks/apache2/templates/default/ports.conf.erb +0 -6
  115. data/cookbooks/apache2/templates/default/security.erb +0 -50
  116. data/cookbooks/apache2/templates/default/web_app.conf.erb +0 -43
  117. data/cookbooks/apt/Berksfile +0 -8
  118. data/cookbooks/apt/CHANGELOG.md +0 -97
  119. data/cookbooks/apt/CONTRIBUTING +0 -29
  120. data/cookbooks/apt/LICENSE +0 -201
  121. data/cookbooks/apt/README.md +0 -243
  122. data/cookbooks/apt/TESTING.md +0 -25
  123. data/cookbooks/apt/attributes/default.rb +0 -4
  124. data/cookbooks/apt/files/default/apt-proxy-v2.conf +0 -50
  125. data/cookbooks/apt/metadata.json +0 -1
  126. data/cookbooks/apt/metadata.rb +0 -30
  127. data/cookbooks/apt/providers/preference.rb +0 -61
  128. data/cookbooks/apt/providers/repository.rb +0 -132
  129. data/cookbooks/apt/recipes/cacher-client.rb +0 -59
  130. data/cookbooks/apt/recipes/cacher-ng.rb +0 -40
  131. data/cookbooks/apt/recipes/default.rb +0 -68
  132. data/cookbooks/apt/resources/preference.rb +0 -30
  133. data/cookbooks/apt/resources/repository.rb +0 -40
  134. data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +0 -174
  135. data/cookbooks/apt/templates/default/01proxy.erb +0 -2
  136. data/cookbooks/apt/templates/default/acng.conf.erb +0 -276
  137. data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +0 -270
@@ -1,22 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: mime
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "mime" do
21
- conf true
22
- end
@@ -1,22 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: negotiation
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "negotiation" do
21
- conf true
22
- end
@@ -1,44 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: perl
4
- #
5
- # adapted from the mod_python recipe by Jeremy Bingham
6
- #
7
- # Copyright 2008-2009, Opscode, Inc.
8
- #
9
- # Licensed under the Apache License, Version 2.0 (the "License");
10
- # you may not use this file except in compliance with the License.
11
- # You may obtain a copy of the License at
12
- #
13
- # http://www.apache.org/licenses/LICENSE-2.0
14
- #
15
- # Unless required by applicable law or agreed to in writing, software
16
- # distributed under the License is distributed on an "AS IS" BASIS,
17
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
- # See the License for the specific language governing permissions and
19
- # limitations under the License.
20
- #
21
-
22
- case node['platform_family']
23
- when "debian"
24
- %w{libapache2-mod-perl2 libapache2-request-perl apache2-mpm-prefork}.each do |pkg|
25
-
26
- package pkg
27
-
28
- end
29
- when "rhel", "fedora"
30
-
31
- package "mod_perl" do
32
- notifies :run, "execute[generate-module-list]", :immediately
33
- end
34
-
35
- package "perl-libapreq2"
36
-
37
- end
38
-
39
- file "#{node['apache']['dir']}/conf.d/perl.conf" do
40
- action :delete
41
- backup false
42
- end
43
-
44
- apache_module "perl"
@@ -1,77 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: php5
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- case node['platform_family']
21
- when "debian"
22
-
23
- package "libapache2-mod-php5"
24
-
25
- when "arch"
26
-
27
- package "php-apache" do
28
- notifies :run, "execute[generate-module-list]", :immediately
29
- end
30
-
31
- when "rhel"
32
-
33
- package "php package" do
34
- if node['platform_version'].to_f < 6.0
35
- package_name "php53"
36
- else
37
- package_name "php"
38
- end
39
- notifies :run, "execute[generate-module-list]", :immediately
40
- not_if "which php"
41
- end
42
-
43
- when "fedora"
44
-
45
- package "php package" do
46
- package_name "php"
47
- notifies :run, "execute[generate-module-list]", :immediately
48
- not_if "which php"
49
- end
50
-
51
- when "freebsd"
52
-
53
- freebsd_port_options "php5" do
54
- options "APACHE" => true
55
- action :create
56
- end
57
-
58
- package "php package" do
59
- package_name "php5"
60
- source "ports"
61
- notifies :run, "execute[generate-module-list]", :immediately
62
- end
63
-
64
- end
65
-
66
- file "#{node['apache']['dir']}/conf.d/php.conf" do
67
- action :delete
68
- backup false
69
- end
70
-
71
- apache_module "php5" do
72
- case node['platform_family']
73
- when "rhel", "fedora", "freebsd"
74
- conf true
75
- filename "libphp5.so"
76
- end
77
- end
@@ -1,22 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: proxy
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "proxy" do
21
- conf true
22
- end
@@ -1,21 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: proxy
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- include_recipe "apache2::mod_proxy"
21
- apache_module "proxy_ajp"
@@ -1,20 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: proxy
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "proxy_balancer"
@@ -1,20 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: proxy
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "proxy_connect"
@@ -1,20 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: proxy_http
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "proxy_http"
@@ -1,38 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: python
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- case node['platform_family']
21
- when "debian"
22
-
23
- package "libapache2-mod-python"
24
-
25
- when "rhel", "fedora"
26
-
27
- package "mod_python" do
28
- notifies :run, "execute[generate-module-list]", :immediately
29
- end
30
-
31
- end
32
-
33
- file "#{node['apache']['dir']}/conf.d/python.conf" do
34
- action :delete
35
- backup false
36
- end
37
-
38
- apache_module "python"
@@ -1,20 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: rewrite
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "rewrite"
@@ -1,22 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: setenvif
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "setenvif" do
21
- conf true
22
- end
@@ -1,46 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: ssl
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
- unless node['apache']['listen_ports'].include?("443")
20
- node.set['apache']['listen_ports'] = node['apache']['listen_ports'] + ["443"]
21
- end
22
-
23
- ports = node['apache']['listen_ports']
24
-
25
- if platform_family?("rhel", "fedora", "suse")
26
-
27
- package "mod_ssl" do
28
- notifies :run, "execute[generate-module-list]", :immediately
29
- end
30
-
31
- file "#{node['apache']['dir']}/conf.d/ssl.conf" do
32
- action :delete
33
- backup false
34
- end
35
- end
36
-
37
- template "#{node['apache']['dir']}/ports.conf" do
38
- source "ports.conf.erb"
39
- variables :apache_listen_ports => ports.map{|p| p.to_i}.uniq
40
- notifies :restart, "service[apache2]"
41
- mode 00644
42
- end
43
-
44
- apache_module "ssl" do
45
- conf true
46
- end
@@ -1,22 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: status
4
- #
5
- # Copyright 2008-2009, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- apache_module "status" do
21
- conf true
22
- end
@@ -1,38 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: mod_wsgi
4
- #
5
- # Copyright 2008-2012, Opscode, Inc.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- case node['platform_family']
21
- when "debian"
22
-
23
- package "libapache2-mod-wsgi"
24
-
25
- when "rhel", "fedora", "arch"
26
-
27
- package "mod_wsgi" do
28
- notifies :run, "execute[generate-module-list]", :immediately
29
- end
30
-
31
- end
32
-
33
- file "#{node['apache']['dir']}/conf.d/wsgi.conf" do
34
- action :delete
35
- backup false
36
- end
37
-
38
- apache_module "wsgi"
@@ -1,38 +0,0 @@
1
- #
2
- # Cookbook Name:: apache2
3
- # Recipe:: mod_xsendfile
4
- #
5
- # Copyright 2011, CustomInk, LLC.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- case node['platform_family']
21
- when "debian"
22
-
23
- package "libapache2-mod-xsendfile"
24
-
25
- when "rhel", "fedora"
26
-
27
- package "mod_xsendfile" do
28
- notifies :run, "execute[generate-module-list]", :immediately
29
- end
30
-
31
- end
32
-
33
- file "#{node['apache']['dir']}/conf.d/xsendfile.conf" do
34
- action :delete
35
- backup false
36
- end
37
-
38
- apache_module "xsendfile"
@@ -1,22 +0,0 @@
1
- #!/bin/sh -e
2
-
3
- SYSCONFDIR='<%= node['apache']['dir'] %>'
4
-
5
- if [ -z $1 ]; then
6
- echo "Which module would you like to disable?"
7
- echo -n "Your choices are: "
8
- ls $SYSCONFDIR/mods-enabled/*.load | \
9
- sed -e "s,$SYSCONFDIR/mods-enabled/,,g" | sed -e 's/\.load$//g;' | xargs echo
10
- echo -n "Module name? "
11
- read MODNAME
12
- else
13
- MODNAME=$1
14
- fi
15
-
16
- if ! [ -e $SYSCONFDIR/mods-enabled/$MODNAME.load ]; then
17
- echo "This module is already disabled, or does not exist!"
18
- exit 1
19
- fi
20
-
21
- rm -f $SYSCONFDIR/mods-enabled/$MODNAME.*
22
- echo "Module $MODNAME disabled; reload apache to fully disable."
@@ -1,29 +0,0 @@
1
- #!/bin/sh -e
2
-
3
- SYSCONFDIR='<%= node['apache']['dir'] %>'
4
-
5
- if [ -z $1 ]; then
6
- echo "Which site would you like to disable?"
7
- echo -n "Your choices are: "
8
- ls $SYSCONFDIR/sites-enabled/* | \
9
- sed -e "s,$SYSCONFDIR/sites-enabled/,,g" | xargs echo
10
- echo -n "Site name? "
11
- read SITENAME
12
- else
13
- SITENAME=$1
14
- fi
15
-
16
- if [ $SITENAME = "default" ]; then
17
- PRIORITY="000"
18
- fi
19
-
20
- if ! [ -e $SYSCONFDIR/sites-enabled/$SITENAME -o \
21
- -e $SYSCONFDIR/sites-enabled/"$PRIORITY"-"$SITENAME" ]; then
22
- echo "This site is already disabled, or does not exist!"
23
- exit 1
24
- fi
25
-
26
- if ! rm $SYSCONFDIR/sites-enabled/$SITENAME 2>/dev/null; then
27
- rm -f $SYSCONFDIR/sites-enabled/"$PRIORITY"-"$SITENAME"
28
- fi
29
- echo "Site $SITENAME disabled; reload apache to disable."
@@ -1,37 +0,0 @@
1
- #!/bin/sh -e
2
-
3
- SYSCONFDIR='<%= node['apache']['dir'] %>'
4
-
5
- if [ -z $1 ]; then
6
- echo "Which module would you like to enable?"
7
- echo -n "Your choices are: "
8
- ls $SYSCONFDIR/mods-available/*.load | \
9
- sed -e "s,$SYSCONFDIR/mods-available/,,g" | sed -e 's/\.load$//g;' | xargs echo
10
- echo -n "Module name? "
11
- read MODNAME
12
- else
13
- MODNAME=$1
14
- fi
15
-
16
- #figure out if we're on a prefork or threaded mpm
17
- if [ -x /usr/sbin/apache2 ]; then
18
- PREFORK=`/usr/sbin/apache2 -l | grep prefork || true`
19
- fi
20
-
21
- if [ -e $SYSCONFDIR/mods-enabled/$MODNAME.load -a -e $SYSCONFDIR/mods-enabled/$MODNAME.conf ]; then
22
- echo "This module is already enabled!"
23
- exit 0
24
- fi
25
-
26
- if ! [ -e $SYSCONFDIR/mods-available/$MODNAME.load ]; then
27
- echo "This module does not exist!"
28
- exit 1
29
- fi
30
-
31
- for i in conf load; do
32
- if [ -e $SYSCONFDIR/mods-available/$MODNAME.$i -a ! -e $SYSCONFDIR/mods-enabled/$MODNAME.$i ]; then
33
- ln -sf $SYSCONFDIR/mods-available/$MODNAME.$i $SYSCONFDIR/mods-enabled/$MODNAME.$i;
34
- fi
35
- done
36
-
37
- echo "Module $MODNAME installed; reload apache to enable."
@@ -1,38 +0,0 @@
1
- #!/bin/sh -e
2
-
3
- SYSCONFDIR='<%= node['apache']['dir'] %>'
4
-
5
- if [ -z $1 ]; then
6
- echo "Which site would you like to enable?"
7
- echo -n "Your choices are: "
8
- ls $SYSCONFDIR/sites-available/* | \
9
- sed -e "s,$SYSCONFDIR/sites-available/,,g" | xargs echo
10
- echo -n "Site name? "
11
- read SITENAME
12
- else
13
- SITENAME=$1
14
- fi
15
-
16
- if [ $SITENAME = "default" ]; then
17
- PRIORITY="000"
18
- fi
19
-
20
- if [ -e $SYSCONFDIR/sites-enabled/$SITENAME -o \
21
- -e $SYSCONFDIR/sites-enabled/"$PRIORITY"-"$SITENAME" ]; then
22
- echo "This site is already enabled!"
23
- exit 0
24
- fi
25
-
26
- if ! [ -e $SYSCONFDIR/sites-available/$SITENAME ]; then
27
- echo "This site does not exist!"
28
- exit 1
29
- fi
30
-
31
- if [ $SITENAME = "default" ]; then
32
- ln -sf $SYSCONFDIR/sites-available/$SITENAME \
33
- $SYSCONFDIR/sites-enabled/"$PRIORITY"-"$SITENAME"
34
- else
35
- ln -sf $SYSCONFDIR/sites-available/$SITENAME $SYSCONFDIR/sites-enabled/$SITENAME
36
- fi
37
-
38
- echo "Site $SITENAME installed; reload apache to enable."