fairchild-poolparty 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/README.txt +1 -3
  2. data/VERSION.yml +1 -1
  3. data/bin/cloud-configure +0 -2
  4. data/bin/cloud-show +2 -2
  5. data/lib/poolparty/base_packages/haproxy.rb +9 -4
  6. data/lib/poolparty/base_packages/poolparty.rb +2 -0
  7. data/lib/poolparty/base_packages/tokyo_tyrant.rb +23 -0
  8. data/lib/poolparty/core/string.rb +14 -0
  9. data/lib/poolparty/dependency_resolver/chef_resolver.rb +12 -5
  10. data/lib/poolparty/helpers/binary.rb +5 -2
  11. data/lib/poolparty/modules/cloud_dsl.rb +10 -0
  12. data/lib/poolparty/modules/definable_resource.rb +1 -4
  13. data/lib/poolparty/monitors/neighborhood_monitor.rb +3 -4
  14. data/lib/poolparty/net/remoter/interactive.rb +1 -0
  15. data/lib/poolparty/plugins/chef.rb +5 -0
  16. data/lib/poolparty/plugins/deploydirectory.rb +13 -22
  17. data/lib/poolparty/plugins/git.rb +8 -6
  18. data/lib/poolparty/plugins/svn.rb +56 -39
  19. data/lib/poolparty/poolparty/cloud.rb +23 -4
  20. data/lib/poolparty/poolparty/plugin_model.rb +1 -1
  21. data/lib/poolparty/poolparty/pool.rb +1 -1
  22. data/lib/poolparty/poolparty/poolparty_base_class.rb +2 -0
  23. data/lib/poolparty/provision/dr_configure.rb +6 -5
  24. data/test/poolparty/modules/cloud_dsl_test.rb +33 -0
  25. data/test/test_helper.rb +1 -1
  26. data/vendor/chef/apache2/README.rdoc +59 -0
  27. data/vendor/chef/apache2/attributes/apache.rb +72 -0
  28. data/vendor/chef/apache2/definitions/apache_module.rb +36 -0
  29. data/vendor/chef/apache2/definitions/apache_site.rb +36 -0
  30. data/vendor/chef/apache2/definitions/web_app.rb +45 -0
  31. data/vendor/chef/apache2/files/default/apache2_module_conf_generate.pl +41 -0
  32. data/vendor/chef/apache2/recipes/default.rb +132 -0
  33. data/vendor/chef/apache2/recipes/mod_alias.rb +20 -0
  34. data/vendor/chef/apache2/recipes/mod_auth_basic.rb +20 -0
  35. data/vendor/chef/apache2/recipes/mod_auth_digest.rb +20 -0
  36. data/vendor/chef/apache2/recipes/mod_authn_file.rb +20 -0
  37. data/vendor/chef/apache2/recipes/mod_authnz_ldap.rb +20 -0
  38. data/vendor/chef/apache2/recipes/mod_authz_default.rb +20 -0
  39. data/vendor/chef/apache2/recipes/mod_authz_groupfile.rb +20 -0
  40. data/vendor/chef/apache2/recipes/mod_authz_host.rb +20 -0
  41. data/vendor/chef/apache2/recipes/mod_authz_user.rb +20 -0
  42. data/vendor/chef/apache2/recipes/mod_autoindex.rb +20 -0
  43. data/vendor/chef/apache2/recipes/mod_cgi.rb +20 -0
  44. data/vendor/chef/apache2/recipes/mod_dav.rb +20 -0
  45. data/vendor/chef/apache2/recipes/mod_dav_svn.rb +20 -0
  46. data/vendor/chef/apache2/recipes/mod_deflate.rb +20 -0
  47. data/vendor/chef/apache2/recipes/mod_dir.rb +20 -0
  48. data/vendor/chef/apache2/recipes/mod_env.rb +20 -0
  49. data/vendor/chef/apache2/recipes/mod_expires.rb +20 -0
  50. data/vendor/chef/apache2/recipes/mod_fcgid.rb +35 -0
  51. data/vendor/chef/apache2/recipes/mod_headers.rb +20 -0
  52. data/vendor/chef/apache2/recipes/mod_ldap.rb +20 -0
  53. data/vendor/chef/apache2/recipes/mod_log_config.rb +20 -0
  54. data/vendor/chef/apache2/recipes/mod_mime.rb +20 -0
  55. data/vendor/chef/apache2/recipes/mod_negotiation.rb +20 -0
  56. data/vendor/chef/apache2/recipes/mod_php5.rb +27 -0
  57. data/vendor/chef/apache2/recipes/mod_proxy.rb +20 -0
  58. data/vendor/chef/apache2/recipes/mod_proxy_http.rb +20 -0
  59. data/vendor/chef/apache2/recipes/mod_python.rb +22 -0
  60. data/vendor/chef/apache2/recipes/mod_rewrite.rb +20 -0
  61. data/vendor/chef/apache2/recipes/mod_setenvif.rb +20 -0
  62. data/vendor/chef/apache2/recipes/mod_ssl.rb +20 -0
  63. data/vendor/chef/apache2/recipes/mod_status.rb +20 -0
  64. data/vendor/chef/apache2/templates/default/a2dismod.erb +22 -0
  65. data/vendor/chef/apache2/templates/default/a2dissite.erb +29 -0
  66. data/vendor/chef/apache2/templates/default/a2enmod.erb +37 -0
  67. data/vendor/chef/apache2/templates/default/a2ensite.erb +38 -0
  68. data/vendor/chef/apache2/templates/default/apache2.conf.erb +630 -0
  69. data/vendor/chef/apache2/templates/default/default-site.erb +45 -0
  70. data/vendor/chef/apache2/templates/default/port_apache.erb +2 -0
  71. data/vendor/chef/apache2/templates/default/ports.conf.erb +6 -0
  72. data/vendor/chef/apache2/templates/default/web_app.conf.erb +43 -0
  73. data/vendor/gems/dslify/dslify.gemspec +2 -2
  74. data/vendor/gems/dslify/lib/dslify/version.rb +1 -1
  75. data/vendor/gems/suitcase/VERSION.yml +1 -1
  76. data/vendor/gems/suitcase/lib/suitcase/zipper.rb +23 -7
  77. data/vendor/gems/suitcase/suitcase.gemspec +5 -25
  78. data/vendor/gems/suitcase/test/suitcase_test.rb +13 -0
  79. metadata +61 -2
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: cgi
4
+ #
5
+ # Copyright 2008, 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 "cgi"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: dav
4
+ #
5
+ # Copyright 2008, 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 "dav"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: dav_svn
4
+ #
5
+ # Copyright 2008, 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 "dav_svn"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: deflate
4
+ #
5
+ # Copyright 2008, 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 "deflate"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: dir
4
+ #
5
+ # Copyright 2008, 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 "dir"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: env
4
+ #
5
+ # Copyright 2008, 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 "env"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: expires
4
+ #
5
+ # Copyright 2008, 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 "expires"
@@ -0,0 +1,35 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: fcgid
4
+ #
5
+ # Copyright 2008, 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
+ if platform?("debian", "ubuntu")
21
+ package "libapache2-mod-fcgid"
22
+ elsif platform?("centos", "redhat", "suse")
23
+ apache_lib_path = node[:architecture] == "i386" ? "/usr/lib/httpd" : "/usr/lib64/httpd"
24
+ package "httpd-devel"
25
+ bash "install-fcgid" do
26
+ code <<-EOH
27
+ (cd /tmp; wget http://superb-east.dl.sourceforge.net/sourceforge/mod-fcgid/mod_fcgid.2.2.tgz)
28
+ (cd /tmp; tar zxvf mod_fcgid.2.2.tgz)
29
+ (cd /tmp; perl -pi -e 's!/usr/local/apache2!#{apache_lib_path}!g' ./mod_fcgid.2.2/Makefile)
30
+ (cd /tmp/mod_fcgid.2.2; make install)
31
+ EOH
32
+ end
33
+ end
34
+
35
+ apache_module "fcgid"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: headers
4
+ #
5
+ # Copyright 2008, 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 "headers"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: ldap
4
+ #
5
+ # Copyright 2008, 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 "ldap"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: log_config
4
+ #
5
+ # Copyright 2008, 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 "log_config"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: mime
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: negotiation
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,27 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: php5
4
+ #
5
+ # Copyright 2008, 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]
21
+ when "debian", "ubuntu"
22
+ package "libapache2-mod-php5" do
23
+ action :install
24
+ end
25
+ end
26
+
27
+ apache_module "php5"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: proxy
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: proxy_http
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,22 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: python
4
+ #
5
+ # Copyright 2008, 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
+ package "libapache2-mod-python"
21
+
22
+ apache_module "python"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: rewrite
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: setenvif
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: ssl
4
+ #
5
+ # Copyright 2008, 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 "ssl"
@@ -0,0 +1,20 @@
1
+ #
2
+ # Cookbook Name:: apache2
3
+ # Recipe:: status
4
+ #
5
+ # Copyright 2008, 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"
@@ -0,0 +1,22 @@
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."
@@ -0,0 +1,29 @@
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 $@node[:apache][:dir]/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."
@@ -0,0 +1,37 @@
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 ]; 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."
@@ -0,0 +1,38 @@
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."