agile_solo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE +20 -0
- data/README.md +90 -0
- data/Rakefile +1 -0
- data/agile_solo.gemspec +30 -0
- data/lib/agile_solo.rb +13 -0
- data/lib/agile_solo/application/solo.rb +20 -0
- data/lib/agile_solo/command.rb +17 -0
- data/lib/agile_solo/composite_command.rb +35 -0
- data/lib/agile_solo/config.rb +13 -0
- data/lib/agile_solo/consumer.rb +41 -0
- data/lib/agile_solo/server.rb +19 -0
- data/lib/agile_solo/version.rb +3 -0
- data/spec/agile_solo/command_spec.rb +15 -0
- data/spec/agile_solo/composite_command_spec.rb +31 -0
- data/spec/agile_solo/config_spec.rb +8 -0
- data/spec/agile_solo/consumer_spec.rb +52 -0
- data/spec/agile_solo/server_spec.rb +35 -0
- data/spec/chef_repo/.chef/knife.rb +6 -0
- data/spec/chef_repo/.gitignore +3 -0
- data/spec/chef_repo/.gitmodules +3 -0
- data/spec/chef_repo/.librarian/chef/config +3 -0
- data/spec/chef_repo/Cheffile +11 -0
- data/spec/chef_repo/Cheffile.lock +33 -0
- data/spec/chef_repo/README.md +92 -0
- data/spec/chef_repo/README_APP.md +23 -0
- data/spec/chef_repo/Rakefile +5 -0
- data/spec/chef_repo/chefignore +11 -0
- data/spec/chef_repo/cookbooks/apache/CHANGES.md +9 -0
- data/spec/chef_repo/cookbooks/apache/README.md +64 -0
- data/spec/chef_repo/cookbooks/apache/metadata.json +32 -0
- data/spec/chef_repo/cookbooks/apache/metadata.rb +11 -0
- data/spec/chef_repo/cookbooks/apache/providers/fastcgi.rb +116 -0
- data/spec/chef_repo/cookbooks/apache/recipes/default.rb +8 -0
- data/spec/chef_repo/cookbooks/apache/resources/fastcgi.rb +14 -0
- data/spec/chef_repo/cookbooks/apache/templates/default/fast-cgi-vhost.erb +41 -0
- data/spec/chef_repo/cookbooks/apache2/.gitignore +3 -0
- data/spec/chef_repo/cookbooks/apache2/CHANGELOG.md +158 -0
- data/spec/chef_repo/cookbooks/apache2/CONTRIBUTING.md +257 -0
- data/spec/chef_repo/cookbooks/apache2/Gemfile +10 -0
- data/spec/chef_repo/cookbooks/apache2/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/apache2/README.md +581 -0
- data/spec/chef_repo/cookbooks/apache2/attributes/default.rb +153 -0
- data/spec/chef_repo/cookbooks/apache2/attributes/mod_auth_cas.rb +2 -0
- data/spec/chef_repo/cookbooks/apache2/attributes/mod_auth_openid.rb +32 -0
- data/spec/chef_repo/cookbooks/apache2/attributes/mod_ssl.rb +19 -0
- data/spec/chef_repo/cookbooks/apache2/definitions/apache_conf.rb +26 -0
- data/spec/chef_repo/cookbooks/apache2/definitions/apache_module.rb +53 -0
- data/spec/chef_repo/cookbooks/apache2/definitions/apache_site.rb +43 -0
- data/spec/chef_repo/cookbooks/apache2/definitions/web_app.rb +50 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +41 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/default_test.rb +77 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/god_monitor_test.rb +34 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_apreq2_test.rb +19 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_auth_cas_test.rb +11 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb +37 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_cgi_test.rb +13 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_dav_svn_test.rb +14 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_fastcgi.rb +11 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_include_test.rb +15 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_perl_test.rb +18 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_php5_test.rb +13 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_python_test.rb +10 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/mod_ssl_test.rb +28 -0
- data/spec/chef_repo/cookbooks/apache2/files/default/tests/minitest/support/helpers.rb +65 -0
- data/spec/chef_repo/cookbooks/apache2/metadata.json +527 -0
- data/spec/chef_repo/cookbooks/apache2/metadata.rb +213 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/default.rb +223 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/god_monitor.rb +33 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/iptables.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/logrotate.rb +31 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_alias.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_apreq2.rb +54 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_auth_basic.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_auth_cas.rb +59 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_auth_digest.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_auth_openid.rb +125 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_authn_file.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_authnz_ldap.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_authz_default.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_authz_groupfile.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_authz_host.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_authz_user.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_autoindex.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_cgi.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_dav.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_dav_fs.rb +21 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_dav_svn.rb +41 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_deflate.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_dir.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_env.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_expires.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_fastcgi.rb +26 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_fcgid.rb +55 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_headers.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_include.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_ldap.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_log_config.rb +24 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_logio.rb +24 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_mime.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_negotiation.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_perl.rb +44 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_php5.rb +78 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_proxy.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_proxy_ajp.rb +21 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_proxy_balancer.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_proxy_connect.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_proxy_http.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_python.rb +37 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_rewrite.rb +20 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_setenvif.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_ssl.rb +46 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_status.rb +22 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_wsgi.rb +38 -0
- data/spec/chef_repo/cookbooks/apache2/recipes/mod_xsendfile.rb +38 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/a2dismod.erb +22 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/a2dissite.erb +29 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/a2enmod.erb +37 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/a2ensite.erb +38 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/apache2.conf.erb +238 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/apache2.god.erb +19 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/charset.erb +6 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/default-site.erb +57 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/etc-sysconfig-httpd.erb +31 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/README +2 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/alias.conf.erb +24 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/auth_cas.conf.erb +1 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/auth_cas.load.erb +1 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/authopenid.load.erb +1 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +101 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/deflate.conf.erb +16 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/dir.conf.erb +5 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/fastcgi.conf.erb +5 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +10 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/include.conf.erb +4 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/include.erb +4 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/mime.conf.erb +198 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +18 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/php5.conf.erb +16 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/proxy.conf.erb +19 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +28 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/ssl.conf.erb +77 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/mods/status.conf.erb +26 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/port_apache.erb +3 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/ports.conf.erb +6 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/security.erb +50 -0
- data/spec/chef_repo/cookbooks/apache2/templates/default/web_app.conf.erb +47 -0
- data/spec/chef_repo/cookbooks/apt/.gitignore +14 -0
- data/spec/chef_repo/cookbooks/apt/.kitchen.yml +33 -0
- data/spec/chef_repo/cookbooks/apt/Berksfile +8 -0
- data/spec/chef_repo/cookbooks/apt/CHANGELOG.md +79 -0
- data/spec/chef_repo/cookbooks/apt/CONTRIBUTING +29 -0
- data/spec/chef_repo/cookbooks/apt/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/apt/README.md +238 -0
- data/spec/chef_repo/cookbooks/apt/TESTING.md +25 -0
- data/spec/chef_repo/cookbooks/apt/attributes/default.rb +3 -0
- data/spec/chef_repo/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
- data/spec/chef_repo/cookbooks/apt/metadata.json +34 -0
- data/spec/chef_repo/cookbooks/apt/metadata.rb +14 -0
- data/spec/chef_repo/cookbooks/apt/providers/preference.rb +61 -0
- data/spec/chef_repo/cookbooks/apt/providers/repository.rb +138 -0
- data/spec/chef_repo/cookbooks/apt/recipes/cacher-client.rb +59 -0
- data/spec/chef_repo/cookbooks/apt/recipes/cacher-ng.rb +38 -0
- data/spec/chef_repo/cookbooks/apt/recipes/default.rb +68 -0
- data/spec/chef_repo/cookbooks/apt/resources/preference.rb +30 -0
- data/spec/chef_repo/cookbooks/apt/resources/repository.rb +40 -0
- data/spec/chef_repo/cookbooks/apt/templates/default/01proxy.erb +2 -0
- data/spec/chef_repo/cookbooks/apt/templates/default/acng.conf.erb +276 -0
- data/spec/chef_repo/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +270 -0
- data/spec/chef_repo/cookbooks/build-essential/.gitignore +4 -0
- data/spec/chef_repo/cookbooks/build-essential/.kitchen.yml +42 -0
- data/spec/chef_repo/cookbooks/build-essential/Berksfile +3 -0
- data/spec/chef_repo/cookbooks/build-essential/CHANGELOG.md +42 -0
- data/spec/chef_repo/cookbooks/build-essential/CONTRIBUTING +29 -0
- data/spec/chef_repo/cookbooks/build-essential/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/build-essential/README.md +139 -0
- data/spec/chef_repo/cookbooks/build-essential/TESTING.md +25 -0
- data/spec/chef_repo/cookbooks/build-essential/attributes/default.rb +33 -0
- data/spec/chef_repo/cookbooks/build-essential/metadata.json +44 -0
- data/spec/chef_repo/cookbooks/build-essential/metadata.rb +16 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/debian.rb +45 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/default.rb +24 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/fedora.rb +36 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/mac_os_x.rb +40 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/rhel.rb +43 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/smartos.rb +36 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/solaris2.rb +42 -0
- data/spec/chef_repo/cookbooks/build-essential/recipes/suse.rb +36 -0
- data/spec/chef_repo/cookbooks/install_from/README.md +51 -0
- data/spec/chef_repo/cookbooks/install_from/attributes/default.rb +2 -0
- data/spec/chef_repo/cookbooks/install_from/metadata.json +46 -0
- data/spec/chef_repo/cookbooks/install_from/metadata.rb +19 -0
- data/spec/chef_repo/cookbooks/install_from/providers/release.rb +143 -0
- data/spec/chef_repo/cookbooks/install_from/recipes/default.rb +26 -0
- data/spec/chef_repo/cookbooks/install_from/resources/release.rb +121 -0
- data/spec/chef_repo/cookbooks/metachef/.rspec +3 -0
- data/spec/chef_repo/cookbooks/metachef/.watchr +20 -0
- data/spec/chef_repo/cookbooks/metachef/Gemfile +15 -0
- data/spec/chef_repo/cookbooks/metachef/README.md +97 -0
- data/spec/chef_repo/cookbooks/metachef/attributes/default.rb +18 -0
- data/spec/chef_repo/cookbooks/metachef/definitions/daemon_user.rb +68 -0
- data/spec/chef_repo/cookbooks/metachef/definitions/kill_old_service.rb +35 -0
- data/spec/chef_repo/cookbooks/metachef/definitions/standard_dirs.rb +54 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/aspect.rb +125 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/aspects.rb +170 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/attr_struct.rb +160 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/component.rb +164 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/cookbook_utils.rb +69 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/discovery.rb +124 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/discovery_lol.rb +55 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/dump_aspects.rb +83 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/metachef.rb +18 -0
- data/spec/chef_repo/cookbooks/metachef/libraries/node_utils.rb +91 -0
- data/spec/chef_repo/cookbooks/metachef/metadata.json +102 -0
- data/spec/chef_repo/cookbooks/metachef/metadata.rb +39 -0
- data/spec/chef_repo/cookbooks/metachef/recipes/default.rb +22 -0
- data/spec/chef_repo/cookbooks/nginx/.gitignore +9 -0
- data/spec/chef_repo/cookbooks/nginx/.kitchen.yml +62 -0
- data/spec/chef_repo/cookbooks/nginx/Berksfile +7 -0
- data/spec/chef_repo/cookbooks/nginx/CHANGELOG.md +158 -0
- data/spec/chef_repo/cookbooks/nginx/CONTRIBUTING.md +257 -0
- data/spec/chef_repo/cookbooks/nginx/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/nginx/README.md +398 -0
- data/spec/chef_repo/cookbooks/nginx/TESTING.md +25 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/default.rb +89 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/echo.rb +10 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/geoip.rb +30 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/headers_more.rb +22 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/naxsi.rb +24 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/repo.rb +30 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/source.rb +41 -0
- data/spec/chef_repo/cookbooks/nginx/attributes/upload_progress.rb +23 -0
- data/spec/chef_repo/cookbooks/nginx/chefignore +96 -0
- data/spec/chef_repo/cookbooks/nginx/definitions/nginx_site.rb +41 -0
- data/spec/chef_repo/cookbooks/nginx/files/default/mime.types +74 -0
- data/spec/chef_repo/cookbooks/nginx/files/default/naxsi_core.rules +82 -0
- data/spec/chef_repo/cookbooks/nginx/files/default/tests/minitest/default_test.rb +12 -0
- data/spec/chef_repo/cookbooks/nginx/files/default/tests/minitest/source_test.rb +9 -0
- data/spec/chef_repo/cookbooks/nginx/files/default/tests/minitest/support/helpers.rb +7 -0
- data/spec/chef_repo/cookbooks/nginx/metadata.json +315 -0
- data/spec/chef_repo/cookbooks/nginx/metadata.rb +113 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/authorized_ips.rb +37 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/commons.rb +23 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/commons_conf.rb +40 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/commons_dir.rb +41 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/commons_script.rb +28 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/default.rb +46 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/headers_more_module.rb +54 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/http_echo_module.rb +46 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/http_geoip_module.rb +116 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/http_gzip_static_module.rb +23 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/http_realip_module.rb +42 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/http_ssl_module.rb +23 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/http_stub_status_module.rb +36 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/ipv6.rb +22 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/naxsi_module.rb +53 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/ohai_plugin.rb +39 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/passenger.rb +81 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/repo.rb +42 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/source.rb +204 -0
- data/spec/chef_repo/cookbooks/nginx/recipes/upload_progress_module.rb +46 -0
- data/spec/chef_repo/cookbooks/nginx/templates/debian/nginx.init.erb +97 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/default-site.erb +11 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/modules/authorized_ip.erb +6 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/modules/http_geoip.conf.erb +4 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/modules/http_realip.conf.erb +4 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/modules/nginx_status.erb +14 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/modules/passenger.conf.erb +10 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nginx-upstart.conf.erb +40 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nginx.conf.erb +69 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nginx.init.erb +111 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nginx.pill.erb +15 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nginx.sysconfig.erb +1 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nxdissite.erb +29 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/nxensite.erb +38 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/plugins/nginx.rb.erb +66 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/sv-nginx-log-run.erb +2 -0
- data/spec/chef_repo/cookbooks/nginx/templates/default/sv-nginx-run.erb +3 -0
- data/spec/chef_repo/cookbooks/nginx/templates/gentoo/nginx.init.erb +87 -0
- data/spec/chef_repo/cookbooks/nginx/templates/ubuntu/nginx.init.erb +97 -0
- data/spec/chef_repo/cookbooks/ohai/CHANGELOG.md +27 -0
- data/spec/chef_repo/cookbooks/ohai/CONTRIBUTING +29 -0
- data/spec/chef_repo/cookbooks/ohai/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/ohai/README.md +49 -0
- data/spec/chef_repo/cookbooks/ohai/attributes/default.rb +29 -0
- data/spec/chef_repo/cookbooks/ohai/files/default/plugins/README +1 -0
- data/spec/chef_repo/cookbooks/ohai/metadata.json +60 -0
- data/spec/chef_repo/cookbooks/ohai/metadata.rb +23 -0
- data/spec/chef_repo/cookbooks/ohai/recipes/default.rb +54 -0
- data/spec/chef_repo/cookbooks/redis/README.md +76 -0
- data/spec/chef_repo/cookbooks/redis/attributes/default.rb +51 -0
- data/spec/chef_repo/cookbooks/redis/metadata.json +304 -0
- data/spec/chef_repo/cookbooks/redis/metadata.rb +112 -0
- data/spec/chef_repo/cookbooks/redis/recipes/client.rb +23 -0
- data/spec/chef_repo/cookbooks/redis/recipes/default.rb +34 -0
- data/spec/chef_repo/cookbooks/redis/recipes/install_from_package.rb +26 -0
- data/spec/chef_repo/cookbooks/redis/recipes/install_from_release.rb +30 -0
- data/spec/chef_repo/cookbooks/redis/recipes/server.rb +42 -0
- data/spec/chef_repo/cookbooks/redis/templates/default/redis.conf.erb +136 -0
- data/spec/chef_repo/cookbooks/redis/templates/default/sv-redis_server-log-run.erb +2 -0
- data/spec/chef_repo/cookbooks/redis/templates/default/sv-redis_server-run.erb +6 -0
- data/spec/chef_repo/cookbooks/runit/.gitignore +17 -0
- data/spec/chef_repo/cookbooks/runit/.kitchen.yml +53 -0
- data/spec/chef_repo/cookbooks/runit/Berksfile +12 -0
- data/spec/chef_repo/cookbooks/runit/CHANGELOG.md +97 -0
- data/spec/chef_repo/cookbooks/runit/CONTRIBUTING.md +257 -0
- data/spec/chef_repo/cookbooks/runit/Gemfile +8 -0
- data/spec/chef_repo/cookbooks/runit/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/runit/README.md +448 -0
- data/spec/chef_repo/cookbooks/runit/Rakefile +17 -0
- data/spec/chef_repo/cookbooks/runit/attributes/default.rb +77 -0
- data/spec/chef_repo/cookbooks/runit/files/default/runit-2.1.1.tar.gz +0 -0
- data/spec/chef_repo/cookbooks/runit/files/default/runit.seed +1 -0
- data/spec/chef_repo/cookbooks/runit/files/default/runsvdir +0 -0
- data/spec/chef_repo/cookbooks/runit/files/ubuntu-6.10/runsvdir +6 -0
- data/spec/chef_repo/cookbooks/runit/files/ubuntu-7.04/runsvdir +7 -0
- data/spec/chef_repo/cookbooks/runit/files/ubuntu-7.10/runsvdir +7 -0
- data/spec/chef_repo/cookbooks/runit/files/ubuntu-8.04/runsvdir +7 -0
- data/spec/chef_repo/cookbooks/runit/libraries/default.rb +0 -0
- data/spec/chef_repo/cookbooks/runit/libraries/provider_runit_service.rb +428 -0
- data/spec/chef_repo/cookbooks/runit/libraries/resource_runit_service.rb +185 -0
- data/spec/chef_repo/cookbooks/runit/metadata.rb +16 -0
- data/spec/chef_repo/cookbooks/runit/recipes/default.rb +124 -0
- data/spec/chef_repo/cookbooks/runit/templates/debian/init.d.erb +66 -0
- data/spec/chef_repo/cookbooks/runit/templates/gentoo/runit-start.sh.erb +32 -0
- data/spec/chef_repo/cookbooks/yum/.gitignore +14 -0
- data/spec/chef_repo/cookbooks/yum/.kitchen.yml +22 -0
- data/spec/chef_repo/cookbooks/yum/Berksfile +7 -0
- data/spec/chef_repo/cookbooks/yum/CHANGELOG.md +97 -0
- data/spec/chef_repo/cookbooks/yum/CONTRIBUTING.md +257 -0
- data/spec/chef_repo/cookbooks/yum/LICENSE +201 -0
- data/spec/chef_repo/cookbooks/yum/README.md +270 -0
- data/spec/chef_repo/cookbooks/yum/attributes/default.rb +30 -0
- data/spec/chef_repo/cookbooks/yum/attributes/elrepo.rb +24 -0
- data/spec/chef_repo/cookbooks/yum/attributes/epel.rb +39 -0
- data/spec/chef_repo/cookbooks/yum/attributes/remi.rb +30 -0
- data/spec/chef_repo/cookbooks/yum/files/default/tests/minitest/default_test.rb +28 -0
- data/spec/chef_repo/cookbooks/yum/files/default/tests/minitest/support/helpers.rb +37 -0
- data/spec/chef_repo/cookbooks/yum/files/default/tests/minitest/test_test.rb +66 -0
- data/spec/chef_repo/cookbooks/yum/metadata.json +100 -0
- data/spec/chef_repo/cookbooks/yum/metadata.rb +37 -0
- data/spec/chef_repo/cookbooks/yum/providers/key.rb +79 -0
- data/spec/chef_repo/cookbooks/yum/providers/repository.rb +124 -0
- data/spec/chef_repo/cookbooks/yum/recipes/default.rb +18 -0
- data/spec/chef_repo/cookbooks/yum/recipes/elrepo.rb +31 -0
- data/spec/chef_repo/cookbooks/yum/recipes/epel.rb +35 -0
- data/spec/chef_repo/cookbooks/yum/recipes/ius.rb +42 -0
- data/spec/chef_repo/cookbooks/yum/recipes/remi.rb +35 -0
- data/spec/chef_repo/cookbooks/yum/recipes/repoforge.rb +41 -0
- data/spec/chef_repo/cookbooks/yum/recipes/test.rb +39 -0
- data/spec/chef_repo/cookbooks/yum/recipes/yum.rb +23 -0
- data/spec/chef_repo/cookbooks/yum/resources/key.rb +29 -0
- data/spec/chef_repo/cookbooks/yum/resources/repository.rb +41 -0
- data/spec/chef_repo/cookbooks/yum/templates/default/repo.erb +38 -0
- data/spec/chef_repo/cookbooks/yum/templates/default/yum-rhel5.conf.erb +33 -0
- data/spec/chef_repo/cookbooks/yum/templates/default/yum-rhel6.conf.erb +36 -0
- data/spec/chef_repo/data_bags/.gitkeep +0 -0
- data/spec/chef_repo/data_bags/sample/items.json +1 -0
- data/spec/chef_repo/roles/.gitkeep +0 -0
- data/spec/chef_repo/roles/dummy.json +14 -0
- data/spec/chef_repo/site-cookbooks/.gitkeep +0 -0
- data/spec/chef_repo/site-cookbooks/sample/CHANGELOG.md +12 -0
- data/spec/chef_repo/site-cookbooks/sample/README.md +68 -0
- data/spec/chef_repo/site-cookbooks/sample/metadata.rb +7 -0
- data/spec/chef_repo/site-cookbooks/sample/recipes/default.rb +18 -0
- data/spec/chef_repo/solo.rb +3 -0
- data/spec/fixtures/items.json +1 -0
- data/spec/spec_helper.rb +32 -0
- metadata +880 -0
@@ -0,0 +1,213 @@
|
|
1
|
+
name "apache2"
|
2
|
+
maintainer "Opscode, Inc."
|
3
|
+
maintainer_email "cookbooks@opscode.com"
|
4
|
+
license "Apache 2.0"
|
5
|
+
description "Installs and configures all aspects of apache2 using Debian style symlinks with helper definitions"
|
6
|
+
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
7
|
+
version "1.6.2"
|
8
|
+
recipe "apache2", "Main Apache configuration"
|
9
|
+
recipe "apache2::logrotate", "Rotate apache2 logs. Requires logrotate cookbook"
|
10
|
+
recipe "apache2::mod_alias", "Apache module 'alias' with config file"
|
11
|
+
recipe "apache2::mod_apreq2", "Apache module 'apreq'"
|
12
|
+
recipe "apache2::mod_auth_basic", "Apache module 'auth_basic'"
|
13
|
+
recipe "apache2::mod_auth_digest", "Apache module 'auth_digest'"
|
14
|
+
recipe "apache2::mod_auth_openid", "Apache module 'authopenid'"
|
15
|
+
recipe "apache2::mod_authn_file", "Apache module 'authn_file'"
|
16
|
+
recipe "apache2::mod_authnz_ldap", "Apache module 'authnz_ldap'"
|
17
|
+
recipe "apache2::mod_authz_default", "Apache module 'authz_default'"
|
18
|
+
recipe "apache2::mod_authz_groupfile", "Apache module 'authz_groupfile'"
|
19
|
+
recipe "apache2::mod_authz_host", "Apache module 'authz_host'"
|
20
|
+
recipe "apache2::mod_authz_user", "Apache module 'authz_user'"
|
21
|
+
recipe "apache2::mod_autoindex", "Apache module 'autoindex' with config file"
|
22
|
+
recipe "apache2::mod_cgi", "Apache module 'cgi'"
|
23
|
+
recipe "apache2::mod_dav", "Apache module 'dav'"
|
24
|
+
recipe "apache2::mod_dav_svn", "Apache module 'dav_svn'"
|
25
|
+
recipe "apache2::mod_deflate", "Apache module 'deflate' with config file"
|
26
|
+
recipe "apache2::mod_dir", "Apache module 'dir' with config file"
|
27
|
+
recipe "apache2::mod_env", "Apache module 'env'"
|
28
|
+
recipe "apache2::mod_expires", "Apache module 'expires'"
|
29
|
+
recipe "apache2::mod_fcgid", "Apache module 'fcgid', package on ubuntu/debian, rhel/centos, compile source on suse; with config file"
|
30
|
+
recipe "apache2::mod_headers", "Apache module 'headers'"
|
31
|
+
recipe "apache2::mod_include", "Apache module 'include'"
|
32
|
+
recipe "apache2::mod_ldap", "Apache module 'ldap'"
|
33
|
+
recipe "apache2::mod_log_config", "Apache module 'log_config'"
|
34
|
+
recipe "apache2::mod_mime", "Apache module 'mime' with config file"
|
35
|
+
recipe "apache2::mod_negotiation", "Apache module 'negotiation' with config file"
|
36
|
+
recipe "apache2::mod_perl", "Apache module 'perl'"
|
37
|
+
recipe "apache2::mod_php5", "Apache module 'php5'"
|
38
|
+
recipe "apache2::mod_proxy", "Apache module 'proxy' with config file"
|
39
|
+
recipe "apache2::mod_proxy_ajp", "Apache module 'proxy_ajp'"
|
40
|
+
recipe "apache2::mod_proxy_balancer", "Apache module 'proxy_balancer'"
|
41
|
+
recipe "apache2::mod_proxy_connect", "Apache module 'proxy_connect'"
|
42
|
+
recipe "apache2::mod_proxy_http", "Apache module 'proxy_http'"
|
43
|
+
recipe "apache2::mod_python", "Apache module 'python'"
|
44
|
+
recipe "apache2::mod_rewrite", "Apache module 'rewrite'"
|
45
|
+
recipe "apache2::mod_setenvif", "Apache module 'setenvif' with config file"
|
46
|
+
recipe "apache2::mod_ssl", "Apache module 'ssl' with config file, adds port 443 to listen_ports"
|
47
|
+
recipe "apache2::mod_status", "Apache module 'status' with config file"
|
48
|
+
recipe "apache2::mod_xsendfile", "Apache module 'xsendfile'"
|
49
|
+
|
50
|
+
%w{redhat centos scientific fedora debian ubuntu arch freebsd amazon}.each do |os|
|
51
|
+
supports os
|
52
|
+
end
|
53
|
+
|
54
|
+
attribute "apache",
|
55
|
+
:display_name => "Apache Hash",
|
56
|
+
:description => "Hash of Apache attributes",
|
57
|
+
:type => "hash"
|
58
|
+
|
59
|
+
attribute "apache/dir",
|
60
|
+
:display_name => "Apache Directory",
|
61
|
+
:description => "Location for Apache configuration",
|
62
|
+
:default => "/etc/apache2"
|
63
|
+
|
64
|
+
attribute "apache/log_dir",
|
65
|
+
:display_name => "Apache Log Directory",
|
66
|
+
:description => "Location for Apache logs",
|
67
|
+
:default => "/etc/apache2"
|
68
|
+
|
69
|
+
attribute "apache/user",
|
70
|
+
:display_name => "Apache User",
|
71
|
+
:description => "User Apache runs as",
|
72
|
+
:default => "www-data"
|
73
|
+
|
74
|
+
attribute "apache/binary",
|
75
|
+
:display_name => "Apache Binary",
|
76
|
+
:description => "Apache server daemon program",
|
77
|
+
:default => "/usr/sbin/apache2"
|
78
|
+
|
79
|
+
attribute "apache/icondir",
|
80
|
+
:display_name => "Apache Icondir",
|
81
|
+
:description => "Directory location for icons",
|
82
|
+
:default => "/usr/share/apache2/icons"
|
83
|
+
|
84
|
+
attribute "apache/listen_ports",
|
85
|
+
:display_name => "Apache Listen Ports",
|
86
|
+
:description => "Ports that Apache should listen on",
|
87
|
+
:type => "array",
|
88
|
+
:default => ["80", "443"]
|
89
|
+
|
90
|
+
attribute "apache/contact",
|
91
|
+
:display_name => "Apache Contact",
|
92
|
+
:description => "Email address of webmaster",
|
93
|
+
:default => "ops@example.com"
|
94
|
+
|
95
|
+
attribute "apache/timeout",
|
96
|
+
:display_name => "Apache Timeout",
|
97
|
+
:description => "Connection timeout value",
|
98
|
+
:default => "300"
|
99
|
+
|
100
|
+
attribute "apache/keepalive",
|
101
|
+
:display_name => "Apache Keepalive",
|
102
|
+
:description => "HTTP persistent connections",
|
103
|
+
:default => "On"
|
104
|
+
|
105
|
+
attribute "apache/keepaliverequests",
|
106
|
+
:display_name => "Apache Keepalive Requests",
|
107
|
+
:description => "Number of requests allowed on a persistent connection",
|
108
|
+
:default => "100"
|
109
|
+
|
110
|
+
attribute "apache/keepalivetimeout",
|
111
|
+
:display_name => "Apache Keepalive Timeout",
|
112
|
+
:description => "Time to wait for requests on persistent connection",
|
113
|
+
:default => "5"
|
114
|
+
|
115
|
+
attribute "apache/servertokens",
|
116
|
+
:display_name => "Apache Server Tokens",
|
117
|
+
:description => "Server response header",
|
118
|
+
:default => "Prod"
|
119
|
+
|
120
|
+
attribute "apache/serversignature",
|
121
|
+
:display_name => "Apache Server Signature",
|
122
|
+
:description => "Configure footer on server-generated documents",
|
123
|
+
:default => "On"
|
124
|
+
|
125
|
+
attribute "apache/traceenable",
|
126
|
+
:display_name => "Apache Trace Enable",
|
127
|
+
:description => "Determine behavior of TRACE requests",
|
128
|
+
:default => "On"
|
129
|
+
|
130
|
+
attribute "apache/allowed_openids",
|
131
|
+
:display_name => "Apache Allowed OpenIDs",
|
132
|
+
:description => "Array of OpenIDs allowed to authenticate",
|
133
|
+
:default => ""
|
134
|
+
|
135
|
+
attribute "apache/prefork",
|
136
|
+
:display_name => "Apache Prefork",
|
137
|
+
:description => "Hash of Apache prefork tuning attributes.",
|
138
|
+
:type => "hash"
|
139
|
+
|
140
|
+
attribute "apache/prefork/startservers",
|
141
|
+
:display_name => "Apache Prefork MPM StartServers",
|
142
|
+
:description => "Number of MPM servers to start",
|
143
|
+
:default => "16"
|
144
|
+
|
145
|
+
attribute "apache/prefork/minspareservers",
|
146
|
+
:display_name => "Apache Prefork MPM MinSpareServers",
|
147
|
+
:description => "Minimum number of spare server processes",
|
148
|
+
:default => "16"
|
149
|
+
|
150
|
+
attribute "apache/prefork/maxspareservers",
|
151
|
+
:display_name => "Apache Prefork MPM MaxSpareServers",
|
152
|
+
:description => "Maximum number of spare server processes",
|
153
|
+
:default => "32"
|
154
|
+
|
155
|
+
attribute "apache/prefork/serverlimit",
|
156
|
+
:display_name => "Apache Prefork MPM ServerLimit",
|
157
|
+
:description => "Upper limit on configurable server processes",
|
158
|
+
:default => "400"
|
159
|
+
|
160
|
+
attribute "apache/prefork/maxclients",
|
161
|
+
:display_name => "Apache Prefork MPM MaxClients",
|
162
|
+
:description => "Maximum number of simultaneous connections",
|
163
|
+
:default => "400"
|
164
|
+
|
165
|
+
attribute "apache/prefork/maxrequestsperchild",
|
166
|
+
:display_name => "Apache Prefork MPM MaxRequestsPerChild",
|
167
|
+
:description => "Maximum number of request a child process will handle",
|
168
|
+
:default => "10000"
|
169
|
+
|
170
|
+
attribute "apache/worker",
|
171
|
+
:display_name => "Apache Worker",
|
172
|
+
:description => "Hash of Apache prefork tuning attributes.",
|
173
|
+
:type => "hash"
|
174
|
+
|
175
|
+
attribute "apache/worker/startservers",
|
176
|
+
:display_name => "Apache Worker MPM StartServers",
|
177
|
+
:description => "Initial number of server processes to start",
|
178
|
+
:default => "4"
|
179
|
+
|
180
|
+
attribute "apache/worker/maxclients",
|
181
|
+
:display_name => "Apache Worker MPM MaxClients",
|
182
|
+
:description => "Maximum number of simultaneous connections",
|
183
|
+
:default => "1024"
|
184
|
+
|
185
|
+
attribute "apache/worker/minsparethreads",
|
186
|
+
:display_name => "Apache Worker MPM MinSpareThreads",
|
187
|
+
:description => "Minimum number of spare worker threads",
|
188
|
+
:default => "64"
|
189
|
+
|
190
|
+
attribute "apache/worker/maxsparethreads",
|
191
|
+
:display_name => "Apache Worker MPM MaxSpareThreads",
|
192
|
+
:description => "Maximum number of spare worker threads",
|
193
|
+
:default => "192"
|
194
|
+
|
195
|
+
attribute "apache/worker/threadsperchild",
|
196
|
+
:display_name => "Apache Worker MPM ThreadsPerChild",
|
197
|
+
:description => "Constant number of worker threads in each server process",
|
198
|
+
:default => "64"
|
199
|
+
|
200
|
+
attribute "apache/worker/maxrequestsperchild",
|
201
|
+
:display_name => "Apache Worker MPM MaxRequestsPerChild",
|
202
|
+
:description => "Maximum number of request a child process will handle",
|
203
|
+
:default => "0"
|
204
|
+
|
205
|
+
attribute "apache/default_modules",
|
206
|
+
:display_name => "Apache Default Modules",
|
207
|
+
:description => "Default modules to enable via recipes",
|
208
|
+
:default => "status alias auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex dir env mime negotiation setenvif"
|
209
|
+
|
210
|
+
attribute "apache/mod_ssl/cipher_suite",
|
211
|
+
:display_name => "Apache mod_ssl Cipher Suite",
|
212
|
+
:description => "String of SSL ciphers to use for SSLCipherSuite",
|
213
|
+
:default => "RC4-SHA:HIGH:!ADH"
|
@@ -0,0 +1,223 @@
|
|
1
|
+
#
|
2
|
+
# Cookbook Name:: apache2
|
3
|
+
# Recipe:: default
|
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
|
+
package "apache2" do
|
21
|
+
package_name node['apache']['package']
|
22
|
+
end
|
23
|
+
|
24
|
+
service "apache2" do
|
25
|
+
case node['platform_family']
|
26
|
+
when "rhel", "fedora", "suse"
|
27
|
+
service_name "httpd"
|
28
|
+
# If restarted/reloaded too quickly httpd has a habit of failing.
|
29
|
+
# This may happen with multiple recipes notifying apache to restart - like
|
30
|
+
# during the initial bootstrap.
|
31
|
+
restart_command "/sbin/service httpd restart && sleep 1"
|
32
|
+
reload_command "/sbin/service httpd reload && sleep 1"
|
33
|
+
when "debian"
|
34
|
+
service_name "apache2"
|
35
|
+
restart_command "/usr/sbin/invoke-rc.d apache2 restart && sleep 1"
|
36
|
+
reload_command "/usr/sbin/invoke-rc.d apache2 reload && sleep 1"
|
37
|
+
when "arch"
|
38
|
+
service_name "httpd"
|
39
|
+
when "freebsd"
|
40
|
+
service_name "apache22"
|
41
|
+
end
|
42
|
+
supports [:restart, :reload, :status]
|
43
|
+
action :enable
|
44
|
+
end
|
45
|
+
|
46
|
+
if platform_family?("rhel", "fedora", "arch", "suse", "freebsd")
|
47
|
+
directory node['apache']['log_dir'] do
|
48
|
+
mode 00755
|
49
|
+
end
|
50
|
+
|
51
|
+
package "perl"
|
52
|
+
|
53
|
+
cookbook_file "/usr/local/bin/apache2_module_conf_generate.pl" do
|
54
|
+
source "apache2_module_conf_generate.pl"
|
55
|
+
mode 00755
|
56
|
+
owner "root"
|
57
|
+
group node['apache']['root_group']
|
58
|
+
end
|
59
|
+
|
60
|
+
%w{sites-available sites-enabled mods-available mods-enabled}.each do |dir|
|
61
|
+
directory "#{node['apache']['dir']}/#{dir}" do
|
62
|
+
mode 00755
|
63
|
+
owner "root"
|
64
|
+
group node['apache']['root_group']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
execute "generate-module-list" do
|
69
|
+
command "/usr/local/bin/apache2_module_conf_generate.pl #{node['apache']['lib_dir']} #{node['apache']['dir']}/mods-available"
|
70
|
+
action :nothing
|
71
|
+
end
|
72
|
+
|
73
|
+
%w{a2ensite a2dissite a2enmod a2dismod}.each do |modscript|
|
74
|
+
template "/usr/sbin/#{modscript}" do
|
75
|
+
source "#{modscript}.erb"
|
76
|
+
mode 00700
|
77
|
+
owner "root"
|
78
|
+
group node['apache']['root_group']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# installed by default on centos/rhel, remove in favour of mods-enabled
|
83
|
+
%w{ proxy_ajp auth_pam authz_ldap webalizer ssl welcome }.each do |f|
|
84
|
+
file "#{node['apache']['dir']}/conf.d/#{f}.conf" do
|
85
|
+
action :delete
|
86
|
+
backup false
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# installed by default on centos/rhel, remove in favour of mods-enabled
|
91
|
+
file "#{node['apache']['dir']}/conf.d/README" do
|
92
|
+
action :delete
|
93
|
+
backup false
|
94
|
+
end
|
95
|
+
|
96
|
+
# enable mod_deflate for consistency across distributions
|
97
|
+
include_recipe "apache2::mod_deflate"
|
98
|
+
end
|
99
|
+
|
100
|
+
if platform_family?("freebsd")
|
101
|
+
|
102
|
+
file "#{node['apache']['dir']}/Includes/no-accf.conf" do
|
103
|
+
action :delete
|
104
|
+
backup false
|
105
|
+
end
|
106
|
+
|
107
|
+
directory "#{node['apache']['dir']}/Includes" do
|
108
|
+
action :delete
|
109
|
+
end
|
110
|
+
|
111
|
+
%w{
|
112
|
+
httpd-autoindex.conf httpd-dav.conf httpd-default.conf httpd-info.conf
|
113
|
+
httpd-languages.conf httpd-manual.conf httpd-mpm.conf
|
114
|
+
httpd-multilang-errordoc.conf httpd-ssl.conf httpd-userdir.conf
|
115
|
+
httpd-vhosts.conf
|
116
|
+
}.each do |f|
|
117
|
+
|
118
|
+
file "#{node['apache']['dir']}/extra/#{f}" do
|
119
|
+
action :delete
|
120
|
+
backup false
|
121
|
+
end
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
directory "#{node['apache']['dir']}/extra" do
|
126
|
+
action :delete
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
130
|
+
|
131
|
+
directory "#{node['apache']['dir']}/ssl" do
|
132
|
+
mode 00755
|
133
|
+
owner "root"
|
134
|
+
group node['apache']['root_group']
|
135
|
+
end
|
136
|
+
|
137
|
+
directory "#{node['apache']['dir']}/conf.d" do
|
138
|
+
mode 00755
|
139
|
+
owner "root"
|
140
|
+
group node['apache']['root_group']
|
141
|
+
end
|
142
|
+
|
143
|
+
directory node['apache']['cache_dir'] do
|
144
|
+
mode 00755
|
145
|
+
owner "root"
|
146
|
+
group node['apache']['root_group']
|
147
|
+
end
|
148
|
+
|
149
|
+
# Set the preferred execution binary - prefork or worker
|
150
|
+
template "/etc/sysconfig/httpd" do
|
151
|
+
source "etc-sysconfig-httpd.erb"
|
152
|
+
owner "root"
|
153
|
+
group node['apache']['root_group']
|
154
|
+
mode 00644
|
155
|
+
notifies :restart, "service[apache2]"
|
156
|
+
only_if { platform_family?("rhel", "fedora") }
|
157
|
+
end
|
158
|
+
|
159
|
+
template "apache2.conf" do
|
160
|
+
case node['platform_family']
|
161
|
+
when "rhel", "fedora", "arch"
|
162
|
+
path "#{node['apache']['dir']}/conf/httpd.conf"
|
163
|
+
when "debian"
|
164
|
+
path "#{node['apache']['dir']}/apache2.conf"
|
165
|
+
when "freebsd"
|
166
|
+
path "#{node['apache']['dir']}/httpd.conf"
|
167
|
+
end
|
168
|
+
source "apache2.conf.erb"
|
169
|
+
owner "root"
|
170
|
+
group node['apache']['root_group']
|
171
|
+
mode 00644
|
172
|
+
notifies :restart, "service[apache2]"
|
173
|
+
end
|
174
|
+
|
175
|
+
template "apache2-conf-security" do
|
176
|
+
path "#{node['apache']['dir']}/conf.d/security"
|
177
|
+
source "security.erb"
|
178
|
+
owner "root"
|
179
|
+
group node['apache']['root_group']
|
180
|
+
mode 00644
|
181
|
+
backup false
|
182
|
+
notifies :restart, "service[apache2]"
|
183
|
+
end
|
184
|
+
|
185
|
+
template "apache2-conf-charset" do
|
186
|
+
path "#{node['apache']['dir']}/conf.d/charset"
|
187
|
+
source "charset.erb"
|
188
|
+
owner "root"
|
189
|
+
group node['apache']['root_group']
|
190
|
+
mode 00644
|
191
|
+
backup false
|
192
|
+
notifies :restart, "service[apache2]"
|
193
|
+
end
|
194
|
+
|
195
|
+
template "#{node['apache']['dir']}/ports.conf" do
|
196
|
+
source "ports.conf.erb"
|
197
|
+
owner "root"
|
198
|
+
group node['apache']['root_group']
|
199
|
+
variables :apache_listen_ports => node['apache']['listen_ports'].map { |p| p.to_i }.uniq
|
200
|
+
mode 00644
|
201
|
+
notifies :restart, "service[apache2]"
|
202
|
+
end
|
203
|
+
|
204
|
+
template "#{node['apache']['dir']}/sites-available/default" do
|
205
|
+
source "default-site.erb"
|
206
|
+
owner "root"
|
207
|
+
group node['apache']['root_group']
|
208
|
+
mode 00644
|
209
|
+
notifies :restart, "service[apache2]"
|
210
|
+
end
|
211
|
+
|
212
|
+
node['apache']['default_modules'].each do |mod|
|
213
|
+
module_recipe_name = mod =~ /^mod_/ ? mod : "mod_#{mod}"
|
214
|
+
include_recipe "apache2::#{module_recipe_name}"
|
215
|
+
end
|
216
|
+
|
217
|
+
apache_site "default" do
|
218
|
+
enable !!node['apache']['default_site_enabled']
|
219
|
+
end
|
220
|
+
|
221
|
+
service "apache2" do
|
222
|
+
action :start
|
223
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#
|
2
|
+
# Cookbook Name:: apache2
|
3
|
+
# Recipe:: god_monitor
|
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_service = service "apache2" do
|
21
|
+
action :nothing
|
22
|
+
end
|
23
|
+
|
24
|
+
start_command = apache_service.start_command
|
25
|
+
stop_command = apache_service.stop_command
|
26
|
+
restart_command = apache_service.restart_command
|
27
|
+
|
28
|
+
god_monitor "apache2" do
|
29
|
+
config "apache2.god.erb"
|
30
|
+
start (start_command)?start_command : "/etc/init.d/#{apache_service.service_name} start"
|
31
|
+
restart (restart_command)?restart_command : "/etc/init.d/#{apache_service.service_name} restart"
|
32
|
+
stop (stop_command)?stop_command : "/etc/init.d/#{apache_service.service_name} stop"
|
33
|
+
end
|