freighthop 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Puppetfile +4 -3
- data/Puppetfile.lock +14 -2
- data/Vagrantfile +5 -1
- data/data/common.json +4 -3
- data/freighthop.gemspec +1 -1
- data/lib/freighthop/cli/checks.rb +12 -0
- data/lib/freighthop/cli/help.rb +7 -0
- data/lib/freighthop/cli/init.rb +35 -0
- data/lib/freighthop/cli/ssh.rb +1 -0
- data/lib/freighthop/cli/vagrant.rb +1 -0
- data/lib/freighthop/cli.rb +5 -17
- data/lib/freighthop/config.rb +5 -1
- data/lib/freighthop/version.rb +1 -1
- data/lib/freighthop.rb +6 -1
- data/local_modules/freighthop/manifests/database/mysql/grant.pp +11 -0
- data/local_modules/freighthop/manifests/database/mysql.pp +5 -15
- data/local_modules/freighthop/manifests/database/postgres.pp +2 -2
- data/local_modules/freighthop/manifests/database.pp +3 -3
- data/local_modules/freighthop/manifests/init.pp +6 -23
- data/local_modules/freighthop/manifests/language/ruby.pp +5 -25
- data/local_modules/freighthop/manifests/language.pp +1 -4
- data/local_modules/freighthop/manifests/packages.pp +2 -12
- data/local_modules/freighthop/manifests/params.pp +19 -11
- data/local_modules/freighthop/manifests/web/apache.pp +60 -0
- data/local_modules/freighthop/manifests/web/nginx.pp +22 -0
- data/local_modules/freighthop/manifests/web/ssl.pp +13 -0
- data/local_modules/freighthop/manifests/web.pp +25 -21
- data/local_modules/freighthop/templates/apache/passenger.conf.erb +18 -0
- data/local_modules/freighthop/templates/nginx/vagrant-rails.conf.erb +5 -3
- data/modules/apache/CHANGELOG.md +172 -0
- data/modules/apache/CONTRIBUTING.md +234 -0
- data/modules/apache/Gemfile +25 -0
- data/modules/apache/LICENSE +15 -0
- data/modules/apache/Modulefile +12 -0
- data/modules/apache/README.md +1515 -0
- data/modules/apache/README.passenger.md +93 -0
- data/modules/apache/Rakefile +1 -0
- data/modules/apache/files/httpd +24 -0
- data/modules/apache/lib/puppet/provider/a2mod/a2mod.rb +35 -0
- data/modules/apache/lib/puppet/provider/a2mod/gentoo.rb +116 -0
- data/modules/apache/lib/puppet/provider/a2mod/modfix.rb +12 -0
- data/modules/apache/lib/puppet/provider/a2mod/redhat.rb +60 -0
- data/modules/apache/lib/puppet/provider/a2mod.rb +34 -0
- data/modules/apache/lib/puppet/type/a2mod.rb +30 -0
- data/modules/apache/manifests/balancer.pp +80 -0
- data/modules/apache/manifests/balancermember.pp +52 -0
- data/modules/apache/manifests/confd/no_accf.pp +10 -0
- data/modules/apache/manifests/default_confd_files.pp +12 -0
- data/modules/apache/manifests/default_mods/load.pp +8 -0
- data/modules/apache/manifests/default_mods.pp +108 -0
- data/modules/apache/manifests/dev.pp +11 -0
- data/modules/apache/manifests/init.pp +329 -0
- data/modules/apache/manifests/listen.pp +9 -0
- data/modules/apache/manifests/mod/alias.pp +17 -0
- data/modules/apache/manifests/mod/auth_basic.pp +3 -0
- data/modules/apache/manifests/mod/auth_kerb.pp +5 -0
- data/modules/apache/manifests/mod/authnz_ldap.pp +19 -0
- data/modules/apache/manifests/mod/autoindex.pp +12 -0
- data/modules/apache/manifests/mod/cache.pp +3 -0
- data/modules/apache/manifests/mod/cgi.pp +4 -0
- data/modules/apache/manifests/mod/cgid.pp +23 -0
- data/modules/apache/manifests/mod/dav.pp +3 -0
- data/modules/apache/manifests/mod/dav_fs.pp +20 -0
- data/modules/apache/manifests/mod/dav_svn.pp +5 -0
- data/modules/apache/manifests/mod/deflate.pp +12 -0
- data/modules/apache/manifests/mod/dev.pp +5 -0
- data/modules/apache/manifests/mod/dir.pp +21 -0
- data/modules/apache/manifests/mod/disk_cache.pp +24 -0
- data/modules/apache/manifests/mod/event.pp +54 -0
- data/modules/apache/manifests/mod/expires.pp +3 -0
- data/modules/apache/manifests/mod/fastcgi.pp +24 -0
- data/modules/apache/manifests/mod/fcgid.pp +3 -0
- data/modules/apache/manifests/mod/headers.pp +3 -0
- data/modules/apache/manifests/mod/include.pp +3 -0
- data/modules/apache/manifests/mod/info.pp +14 -0
- data/modules/apache/manifests/mod/itk.pp +64 -0
- data/modules/apache/manifests/mod/ldap.pp +12 -0
- data/modules/apache/manifests/mod/mime.pp +21 -0
- data/modules/apache/manifests/mod/mime_magic.pp +14 -0
- data/modules/apache/manifests/mod/negotiation.pp +12 -0
- data/modules/apache/manifests/mod/nss.pp +25 -0
- data/modules/apache/manifests/mod/passenger.pp +38 -0
- data/modules/apache/manifests/mod/perl.pp +3 -0
- data/modules/apache/manifests/mod/peruser.pp +73 -0
- data/modules/apache/manifests/mod/php.pp +26 -0
- data/modules/apache/manifests/mod/prefork.pp +74 -0
- data/modules/apache/manifests/mod/proxy.pp +15 -0
- data/modules/apache/manifests/mod/proxy_ajp.pp +4 -0
- data/modules/apache/manifests/mod/proxy_balancer.pp +10 -0
- data/modules/apache/manifests/mod/proxy_html.pp +28 -0
- data/modules/apache/manifests/mod/proxy_http.pp +4 -0
- data/modules/apache/manifests/mod/python.pp +5 -0
- data/modules/apache/manifests/mod/reqtimeout.pp +12 -0
- data/modules/apache/manifests/mod/rewrite.pp +4 -0
- data/modules/apache/manifests/mod/rpaf.pp +20 -0
- data/modules/apache/manifests/mod/setenvif.pp +12 -0
- data/modules/apache/manifests/mod/ssl.pp +26 -0
- data/modules/apache/manifests/mod/status.pp +42 -0
- data/modules/apache/manifests/mod/suphp.pp +14 -0
- data/modules/apache/manifests/mod/userdir.pp +17 -0
- data/modules/apache/manifests/mod/vhost_alias.pp +3 -0
- data/modules/apache/manifests/mod/worker.pp +75 -0
- data/modules/apache/manifests/mod/wsgi.pp +21 -0
- data/modules/apache/manifests/mod/xsendfile.pp +4 -0
- data/modules/apache/manifests/mod.pp +120 -0
- data/modules/apache/manifests/namevirtualhost.pp +9 -0
- data/modules/apache/manifests/package.pp +48 -0
- data/modules/apache/manifests/params.pp +207 -0
- data/modules/apache/manifests/peruser/multiplexer.pp +17 -0
- data/modules/apache/manifests/peruser/processor.pp +17 -0
- data/modules/apache/manifests/php.pp +18 -0
- data/modules/apache/manifests/proxy.pp +15 -0
- data/modules/apache/manifests/python.pp +18 -0
- data/modules/apache/manifests/service.pp +35 -0
- data/modules/apache/manifests/ssl.pp +18 -0
- data/modules/apache/manifests/vhost.pp +516 -0
- data/modules/apache/spec/acceptance/basic_spec.rb +12 -0
- data/modules/apache/spec/acceptance/class_spec.rb +58 -0
- data/modules/apache/spec/acceptance/default_mods_spec.rb +97 -0
- data/modules/apache/spec/acceptance/itk_spec.rb +35 -0
- data/modules/apache/spec/acceptance/mod_php_spec.rb +52 -0
- data/modules/apache/spec/acceptance/mod_suphp_spec.rb +44 -0
- data/modules/apache/spec/acceptance/nodesets/centos-64-x64.yml +8 -0
- data/modules/apache/spec/acceptance/nodesets/default.yml +8 -0
- data/modules/apache/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml +8 -0
- data/modules/apache/spec/acceptance/nodesets/vagrant.key +27 -0
- data/modules/apache/spec/acceptance/prefork_worker_spec.rb +81 -0
- data/modules/apache/spec/acceptance/service_spec.rb +19 -0
- data/modules/apache/spec/acceptance/vhost_spec.rb +290 -0
- data/modules/apache/spec/classes/apache_spec.rb +464 -0
- data/modules/apache/spec/classes/dev_spec.rb +38 -0
- data/modules/apache/spec/classes/mod/auth_kerb_spec.rb +41 -0
- data/modules/apache/spec/classes/mod/authnz_ldap_spec.rb +65 -0
- data/modules/apache/spec/classes/mod/dav_svn_spec.rb +41 -0
- data/modules/apache/spec/classes/mod/dev_spec.rb +23 -0
- data/modules/apache/spec/classes/mod/dir_spec.rb +88 -0
- data/modules/apache/spec/classes/mod/event_spec.rb +17 -0
- data/modules/apache/spec/classes/mod/fastcgi_spec.rb +32 -0
- data/modules/apache/spec/classes/mod/fcgid_spec.rb +41 -0
- data/modules/apache/spec/classes/mod/info_spec.rb +99 -0
- data/modules/apache/spec/classes/mod/itk_spec.rb +31 -0
- data/modules/apache/spec/classes/mod/mime_magic_spec.rb +93 -0
- data/modules/apache/spec/classes/mod/passenger_spec.rb +112 -0
- data/modules/apache/spec/classes/mod/perl_spec.rb +41 -0
- data/modules/apache/spec/classes/mod/peruser_spec.rb +17 -0
- data/modules/apache/spec/classes/mod/php_spec.rb +99 -0
- data/modules/apache/spec/classes/mod/prefork_spec.rb +47 -0
- data/modules/apache/spec/classes/mod/proxy_html_spec.rb +45 -0
- data/modules/apache/spec/classes/mod/python_spec.rb +41 -0
- data/modules/apache/spec/classes/mod/rpaf_spec.rb +77 -0
- data/modules/apache/spec/classes/mod/ssl_spec.rb +53 -0
- data/modules/apache/spec/classes/mod/status_spec.rb +166 -0
- data/modules/apache/spec/classes/mod/suphp_spec.rb +27 -0
- data/modules/apache/spec/classes/mod/worker_spec.rb +44 -0
- data/modules/apache/spec/classes/mod/wsgi_spec.rb +54 -0
- data/modules/apache/spec/classes/params_spec.rb +21 -0
- data/modules/apache/spec/classes/service_spec.rb +109 -0
- data/modules/apache/spec/defines/mod_spec.rb +105 -0
- data/modules/apache/spec/defines/vhost_spec.rb +1152 -0
- data/modules/apache/spec/fixtures/modules/site_apache/templates/fake.conf.erb +1 -0
- data/modules/apache/spec/spec.opts +4 -0
- data/modules/apache/spec/spec_helper.rb +1 -0
- data/modules/apache/spec/spec_helper_acceptance.rb +27 -0
- data/modules/apache/spec/unit/provider/a2mod/gentoo_spec.rb +184 -0
- data/modules/apache/templates/confd/no-accf.conf.erb +4 -0
- data/modules/apache/templates/httpd.conf.erb +92 -0
- data/modules/apache/templates/listen.erb +6 -0
- data/modules/apache/templates/mod/alias.conf.erb +9 -0
- data/modules/apache/templates/mod/authnz_ldap.conf.erb +5 -0
- data/modules/apache/templates/mod/autoindex.conf.erb +56 -0
- data/modules/apache/templates/mod/cgid.conf.erb +1 -0
- data/modules/apache/templates/mod/dav_fs.conf.erb +1 -0
- data/modules/apache/templates/mod/deflate.conf.erb +4 -0
- data/modules/apache/templates/mod/dir.conf.erb +1 -0
- data/modules/apache/templates/mod/disk_cache.conf.erb +8 -0
- data/modules/apache/templates/mod/event.conf.erb +9 -0
- data/modules/apache/templates/mod/fastcgi.conf.erb +6 -0
- data/modules/apache/templates/mod/info.conf.erb +6 -0
- data/modules/apache/templates/mod/itk.conf.erb +8 -0
- data/modules/apache/templates/mod/ldap.conf.erb +7 -0
- data/modules/apache/templates/mod/mime.conf.erb +36 -0
- data/modules/apache/templates/mod/mime_magic.conf.erb +1 -0
- data/modules/apache/templates/mod/mpm_event.conf.erb +9 -0
- data/modules/apache/templates/mod/negotiation.conf.erb +2 -0
- data/modules/apache/templates/mod/nss.conf.erb +228 -0
- data/modules/apache/templates/mod/passenger.conf.erb +30 -0
- data/modules/apache/templates/mod/peruser.conf.erb +12 -0
- data/modules/apache/templates/mod/php5.conf.erb +30 -0
- data/modules/apache/templates/mod/prefork.conf.erb +8 -0
- data/modules/apache/templates/mod/proxy.conf.erb +23 -0
- data/modules/apache/templates/mod/proxy_html.conf.erb +24 -0
- data/modules/apache/templates/mod/reqtimeout.conf.erb +2 -0
- data/modules/apache/templates/mod/rpaf.conf.erb +15 -0
- data/modules/apache/templates/mod/setenvif.conf.erb +34 -0
- data/modules/apache/templates/mod/ssl.conf.erb +24 -0
- data/modules/apache/templates/mod/status.conf.erb +12 -0
- data/modules/apache/templates/mod/suphp.conf.erb +19 -0
- data/modules/apache/templates/mod/userdir.conf.erb +19 -0
- data/modules/apache/templates/mod/worker.conf.erb +9 -0
- data/modules/apache/templates/mod/wsgi.conf.erb +13 -0
- data/modules/apache/templates/namevirtualhost.erb +8 -0
- data/modules/apache/templates/ports_header.erb +5 -0
- data/modules/apache/templates/vhost/_aliases.erb +12 -0
- data/modules/apache/templates/vhost/_block.erb +10 -0
- data/modules/apache/templates/vhost/_custom_fragment.erb +5 -0
- data/modules/apache/templates/vhost/_directories.erb +143 -0
- data/modules/apache/templates/vhost/_error_document.erb +7 -0
- data/modules/apache/templates/vhost/_fastcgi.erb +18 -0
- data/modules/apache/templates/vhost/_itk.erb +28 -0
- data/modules/apache/templates/vhost/_php_admin.erb +12 -0
- data/modules/apache/templates/vhost/_proxy.erb +20 -0
- data/modules/apache/templates/vhost/_rack.erb +7 -0
- data/modules/apache/templates/vhost/_redirect.erb +12 -0
- data/modules/apache/templates/vhost/_requestheader.erb +10 -0
- data/modules/apache/templates/vhost/_rewrite.erb +40 -0
- data/modules/apache/templates/vhost/_scriptalias.erb +24 -0
- data/modules/apache/templates/vhost/_serveralias.erb +7 -0
- data/modules/apache/templates/vhost/_setenv.erb +12 -0
- data/modules/apache/templates/vhost/_ssl.erb +41 -0
- data/modules/apache/templates/vhost/_suphp.erb +11 -0
- data/modules/apache/templates/vhost/_wsgi.erb +15 -0
- data/modules/apache/templates/vhost.conf.erb +63 -0
- data/modules/apache/tests/apache.pp +6 -0
- data/modules/apache/tests/dev.pp +1 -0
- data/modules/apache/tests/init.pp +1 -0
- data/modules/apache/tests/mod_load_params.pp +11 -0
- data/modules/apache/tests/mods.pp +9 -0
- data/modules/apache/tests/mods_custom.pp +16 -0
- data/modules/apache/tests/php.pp +4 -0
- data/modules/apache/tests/vhost.pp +237 -0
- data/modules/apache/tests/vhost_directories.pp +30 -0
- data/modules/apache/tests/vhost_ip_based.pp +25 -0
- data/modules/apache/tests/vhost_ssl.pp +23 -0
- data/modules/apache/tests/vhosts_without_listen.pp +53 -0
- data/modules/freighthop/manifests/database/mysql/grant.pp +11 -0
- data/modules/freighthop/manifests/database/mysql.pp +5 -15
- data/modules/freighthop/manifests/database/postgres.pp +2 -2
- data/modules/freighthop/manifests/database.pp +3 -3
- data/modules/freighthop/manifests/init.pp +6 -23
- data/modules/freighthop/manifests/language/ruby.pp +5 -25
- data/modules/freighthop/manifests/language.pp +1 -4
- data/modules/freighthop/manifests/packages.pp +2 -12
- data/modules/freighthop/manifests/params.pp +19 -11
- data/modules/freighthop/manifests/web/apache.pp +60 -0
- data/modules/freighthop/manifests/web/nginx.pp +22 -0
- data/modules/freighthop/manifests/web/ssl.pp +13 -0
- data/modules/freighthop/manifests/web.pp +25 -21
- data/modules/freighthop/templates/apache/passenger.conf.erb +18 -0
- data/modules/freighthop/templates/nginx/vagrant-rails.conf.erb +5 -3
- data/modules/rbenv/AUTHORS +11 -0
- data/modules/rbenv/CHANGELOG.md +70 -0
- data/modules/rbenv/Gemfile +5 -10
- data/modules/rbenv/Gemfile.lock +16 -58
- data/modules/rbenv/Modulefile +7 -7
- data/modules/rbenv/README.md +156 -20
- data/modules/rbenv/Rakefile +18 -24
- data/modules/rbenv/TODO +10 -0
- data/modules/rbenv/bin/autospec +16 -0
- data/modules/rbenv/bin/facter +16 -0
- data/modules/rbenv/bin/filebucket +16 -0
- data/modules/rbenv/bin/hiera +16 -0
- data/modules/rbenv/bin/htmldiff +16 -0
- data/modules/rbenv/bin/ldiff +16 -0
- data/modules/rbenv/bin/pi +16 -0
- data/modules/rbenv/bin/puppet +16 -0
- data/modules/rbenv/bin/puppet-lint +16 -0
- data/modules/rbenv/bin/puppet-module +16 -0
- data/modules/rbenv/bin/puppetca +16 -0
- data/modules/rbenv/bin/puppetd +16 -0
- data/modules/rbenv/bin/puppetdoc +16 -0
- data/modules/rbenv/bin/puppetmasterd +16 -0
- data/modules/rbenv/bin/puppetqd +16 -0
- data/modules/rbenv/bin/puppetrun +16 -0
- data/modules/rbenv/bin/rake +16 -0
- data/modules/rbenv/bin/ralsh +16 -0
- data/modules/rbenv/bin/rspec +16 -0
- data/modules/rbenv/bin/rspec-puppet-init +16 -0
- data/modules/rbenv/lib/puppet/provider/rbenvgem/default.rb +50 -0
- data/modules/rbenv/lib/puppet/type/rbenvgem.rb +62 -0
- data/modules/rbenv/manifests/bundle.pp +36 -0
- data/modules/rbenv/manifests/client.pp +48 -0
- data/modules/rbenv/manifests/compile.pp +102 -0
- data/modules/rbenv/manifests/definition.pp +31 -0
- data/modules/rbenv/manifests/dependencies/centos.pp +25 -0
- data/modules/rbenv/manifests/dependencies/suse.pp +28 -0
- data/modules/rbenv/manifests/dependencies/ubuntu.pp +17 -0
- data/modules/rbenv/manifests/dependencies.pp +8 -0
- data/modules/rbenv/manifests/gem.pp +29 -0
- data/modules/rbenv/manifests/install.pp +55 -0
- data/modules/rbenv/manifests/plugin/rbenvvars.pp +16 -0
- data/modules/rbenv/manifests/plugin/rubybuild.pp +16 -0
- data/modules/rbenv/manifests/plugin.pp +40 -0
- data/modules/rbenv/metadata.json +99 -31
- data/modules/rbenv/spec/classes/dependencies_spec.rb +20 -0
- data/modules/rbenv/spec/defines/rbenv__compile_spec.rb +34 -0
- data/modules/rbenv/spec/defines/rbenv__definition_spec.rb +40 -0
- data/modules/rbenv/spec/defines/rbenv__install_spec.rb +24 -0
- data/modules/rbenv/spec/defines/rbenv__plugin__rbenvvars_spec.rb +14 -0
- data/modules/rbenv/spec/defines/rbenv__plugin__rubybuild_spec.rb +14 -0
- data/modules/rbenv/spec/defines/rbenv__plugin_spec.rb +31 -0
- data/modules/rbenv/spec/fixtures/manifests/site.pp +0 -0
- data/modules/rbenv/spec/spec_helper.rb +6 -1
- data/modules/rbenv/templates/Gemfile.erb +5 -0
- data/modules/rbenv/templates/dot.rbenvrc.erb +8 -0
- metadata +271 -23
- data/modules/rbenv/CHANGELOG +0 -33
- data/modules/rbenv/LICENSE +0 -20
- data/modules/rbenv/manifests/alias.pp +0 -32
- data/modules/rbenv/manifests/global.pp +0 -22
- data/modules/rbenv/manifests/init.pp +0 -30
- data/modules/rbenv/manifests/params.pp +0 -16
- data/modules/rbenv/manifests/rehash.pp +0 -28
- data/modules/rbenv/manifests/version.pp +0 -63
- data/modules/rbenv/spec/classes/rbenv__global_spec.rb +0 -31
- data/modules/rbenv/spec/classes/rbenv_spec.rb +0 -30
- data/modules/rbenv/spec/defines/rbenv__alias_spec.rb +0 -22
- data/modules/rbenv/spec/defines/rbenv__rehash_spec.rb +0 -22
- data/modules/rbenv/spec/defines/rbenv__version_spec.rb +0 -60
- data/modules/rbenv/spec/spec_helper_system.rb +0 -16
- data/modules/rbenv/spec/system/basic_spec.rb +0 -13
- data/modules/rbenv/templates/etc/profile.d/rbenv.sh.erb +0 -2
- data/modules/rbenv/tests/init.pp +0 -12
@@ -0,0 +1,143 @@
|
|
1
|
+
<% if @_directories and ! @_directories.empty? -%>
|
2
|
+
<%- [@_directories].flatten.compact.each do |directory| -%>
|
3
|
+
<%- if directory['path'] and directory['path'] != '' -%>
|
4
|
+
<%- if directory['provider'] and [ 'directory', 'location', 'files' ].include?(directory['provider']) -%>
|
5
|
+
<%- provider = directory['provider'].capitalize -%>
|
6
|
+
<%- else -%>
|
7
|
+
<%- provider = 'Directory' -%>
|
8
|
+
<%- end -%>
|
9
|
+
|
10
|
+
<<%= provider + ' ' + directory['path'] %>>
|
11
|
+
<%- if directory['headers'] -%>
|
12
|
+
<%- Array(directory['headers']).each do |header| -%>
|
13
|
+
Header <%= header %>
|
14
|
+
<%- end -%>
|
15
|
+
<%- end -%>
|
16
|
+
<%- if directory['options'] -%>
|
17
|
+
Options <%= Array(directory['options']).join(' ') %>
|
18
|
+
<%- end -%>
|
19
|
+
<%- if provider == 'Directory' -%>
|
20
|
+
<%- if directory['index_options'] -%>
|
21
|
+
IndexOptions <%= Array(directory['index_options']).join(' ') %>
|
22
|
+
<%- end -%>
|
23
|
+
<%- if directory['index_order_default'] -%>
|
24
|
+
IndexOrderDefault <%= Array(directory['index_order_default']).join(' ') %>
|
25
|
+
<%- end -%>
|
26
|
+
<%- if directory['allow_override'] -%>
|
27
|
+
AllowOverride <%= Array(directory['allow_override']).join(' ') %>
|
28
|
+
<%- elsif provider == 'Directory' -%>
|
29
|
+
AllowOverride None
|
30
|
+
<%- end -%>
|
31
|
+
<%- end -%>
|
32
|
+
<%- if directory['order'] and directory['order'] != '' -%>
|
33
|
+
Order <%= Array(directory['order']).join(',') %>
|
34
|
+
<%- else -%>
|
35
|
+
Order allow,deny
|
36
|
+
<%- end -%>
|
37
|
+
<%- if directory['deny'] and directory['deny'] != '' -%>
|
38
|
+
Deny <%= directory['deny'] %>
|
39
|
+
<%- end -%>
|
40
|
+
<%- if directory['allow'] and ! [ false, 'false', '' ].include?(directory['allow']) -%>
|
41
|
+
Allow <%= directory['allow'] %>
|
42
|
+
<%- elsif [ 'from all', 'from All' ].include?(directory['deny']) -%>
|
43
|
+
<%- elsif ! directory['deny'] and [ false, 'false', '' ].include?(directory['allow']) -%>
|
44
|
+
Deny from all
|
45
|
+
<%- else -%>
|
46
|
+
Allow from all
|
47
|
+
<%- end -%>
|
48
|
+
<%- if directory['addhandlers'] and ! directory['addhandlers'].empty? -%>
|
49
|
+
<%- [directory['addhandlers']].flatten.compact.each do |addhandler| -%>
|
50
|
+
AddHandler <%= addhandler['handler'] %> <%= Array(addhandler['extensions']).join(' ') %>
|
51
|
+
<%- end -%>
|
52
|
+
<%- end -%>
|
53
|
+
<%- if directory['passenger_enabled'] and directory['passenger_enabled'] != '' -%>
|
54
|
+
PassengerEnabled <%= directory['passenger_enabled'] %>
|
55
|
+
<%- end -%>
|
56
|
+
<%- if directory['php_admin_flags'] and ! directory['php_admin_flags'].empty? -%>
|
57
|
+
<%- directory['php_admin_flags'].each do |flag,value| -%>
|
58
|
+
<%- value = if value =~ /true|yes|on|1/i then 'on' else 'off' end -%>
|
59
|
+
php_admin_flag <%= "#{flag} #{value}" %>
|
60
|
+
<%- end -%>
|
61
|
+
<%- end -%>
|
62
|
+
<%- if directory['php_admin_values'] and ! directory['php_admin_values'].empty? -%>
|
63
|
+
<%- directory['php_admin_values'].each do |key,value| -%>
|
64
|
+
php_admin_value <%= "#{key} #{value}" %>
|
65
|
+
<%- end -%>
|
66
|
+
<%- end -%>
|
67
|
+
<%- if directory['directoryindex'] and directory['directoryindex'] != '' -%>
|
68
|
+
DirectoryIndex <%= directory['directoryindex'] %>
|
69
|
+
<%- end -%>
|
70
|
+
<%- if directory['error_documents'] and ! directory['error_documents'].empty? -%>
|
71
|
+
<%- [directory['error_documents']].flatten.compact.each do |error_document| -%>
|
72
|
+
ErrorDocument <%= error_document['error_code'] %> <%= error_document['document'] %>
|
73
|
+
<%- end -%>
|
74
|
+
<%- end -%>
|
75
|
+
<%- if directory['auth_type'] -%>
|
76
|
+
AuthType <%= directory['auth_type'] %>
|
77
|
+
<%- end -%>
|
78
|
+
<%- if directory['auth_name'] -%>
|
79
|
+
AuthName "<%= directory['auth_name'] %>"
|
80
|
+
<%- end -%>
|
81
|
+
<%- if directory['auth_digest_algorithm'] -%>
|
82
|
+
AuthDigestAlgorithm <%= directory['auth_digest_algorithm'] %>
|
83
|
+
<%- end -%>
|
84
|
+
<%- if directory['auth_digest_domain'] -%>
|
85
|
+
AuthDigestDomain <%= Array(directory['auth_digest_domain']).join(' ') %>
|
86
|
+
<%- end -%>
|
87
|
+
<%- if directory['auth_digest_nonce_lifetime'] -%>
|
88
|
+
AuthDigestNonceLifetime <%= directory['auth_digest_nonce_lifetime'] %>
|
89
|
+
<%- end -%>
|
90
|
+
<%- if directory['auth_digest_provider'] -%>
|
91
|
+
AuthDigestProvider <%= directory['auth_digest_provider'] %>
|
92
|
+
<%- end -%>
|
93
|
+
<%- if directory['auth_digest_qop'] -%>
|
94
|
+
AuthDigestQop <%= directory['auth_digest_qop'] %>
|
95
|
+
<%- end -%>
|
96
|
+
<%- if directory['auth_digest_shmem_size'] -%>
|
97
|
+
AuthDigestShmemSize <%= directory['auth_digest_shmem_size'] %>
|
98
|
+
<%- end -%>
|
99
|
+
<%- if directory['auth_basic_authoritative'] -%>
|
100
|
+
AuthBasicAuthoritative <%= directory['auth_basic_authoritative'] %>
|
101
|
+
<%- end -%>
|
102
|
+
<%- if directory['auth_basic_fake'] -%>
|
103
|
+
AuthBasicFake <%= directory['auth_basic_fake'] %>
|
104
|
+
<%- end -%>
|
105
|
+
<%- if directory['auth_basic_provider'] -%>
|
106
|
+
AuthBasicProvider <%= directory['auth_basic_provider'] %>
|
107
|
+
<%- end -%>
|
108
|
+
<%- if directory['auth_user_file'] -%>
|
109
|
+
AuthUserFile <%= directory['auth_user_file'] %>
|
110
|
+
<%- end -%>
|
111
|
+
<%- if directory['auth_require'] -%>
|
112
|
+
Require <%= directory['auth_require'] %>
|
113
|
+
<%- end -%>
|
114
|
+
<%- if directory['fallbackresource'] -%>
|
115
|
+
FallbackResource <%= directory['fallbackresource'] %>
|
116
|
+
<%- end -%>
|
117
|
+
<%- if directory['expires_active'] -%>
|
118
|
+
ExpiresActive <%= directory['expires_active'] %>
|
119
|
+
<%- end -%>
|
120
|
+
<%- if directory['expires_default'] -%>
|
121
|
+
ExpiresDefault <%= directory['expires_default'] %>
|
122
|
+
<%- end -%>
|
123
|
+
<%- if directory['expires_by_type'] -%>
|
124
|
+
<%- Array(directory['expires_by_type']).each do |rule| -%>
|
125
|
+
ExpiresByType <%= rule %>
|
126
|
+
<%- end -%>
|
127
|
+
<%- end -%>
|
128
|
+
<%- if directory['force_type'] -%>
|
129
|
+
ForceType <%= directory['force_type'] %>
|
130
|
+
<%- end -%>
|
131
|
+
<%- if directory['ssl_options'] -%>
|
132
|
+
SSLOptions <%= Array(directory['ssl_options']).join(' ') %>
|
133
|
+
<%- end -%>
|
134
|
+
<%- if directory['suphp'] and @suphp_engine == 'on' -%>
|
135
|
+
suPHP_UserGroup <%= directory['suphp']['user'] %> <%= directory['suphp']['group'] %>
|
136
|
+
<%- end -%>
|
137
|
+
<%- if directory['custom_fragment'] -%>
|
138
|
+
<%= directory['custom_fragment'] %>
|
139
|
+
<%- end -%>
|
140
|
+
</<%= provider %>>
|
141
|
+
<%- end -%>
|
142
|
+
<%- end -%>
|
143
|
+
<% end -%>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<% if @error_documents and ! @error_documents.empty? -%>
|
2
|
+
<%- [@error_documents].flatten.compact.each do |error_document| -%>
|
3
|
+
<%- if error_document["error_code"] != '' and error_document["document"] != '' -%>
|
4
|
+
ErrorDocument <%= error_document["error_code"] %> <%= error_document["document"] %>
|
5
|
+
<%- end -%>
|
6
|
+
<%- end -%>
|
7
|
+
<% end -%>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% if @fastcgi_server -%>
|
2
|
+
|
3
|
+
FastCgiExternalServer <%= @fastcgi_server %> -socket <%= @fastcgi_socket %>
|
4
|
+
<% end -%>
|
5
|
+
<% if @fastcgi_dir -%>
|
6
|
+
|
7
|
+
<Directory <%= @fastcgi_dir %>>
|
8
|
+
Options +ExecCGI
|
9
|
+
AllowOverride All
|
10
|
+
SetHandler fastcgi-script
|
11
|
+
Order allow,deny
|
12
|
+
Allow from all
|
13
|
+
AuthBasicAuthoritative Off
|
14
|
+
</Directory>
|
15
|
+
|
16
|
+
AllowEncodedSlashes On
|
17
|
+
ServerSignature Off
|
18
|
+
<% end -%>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<% if @itk and ! @itk.empty? -%>
|
2
|
+
## ITK statement
|
3
|
+
<IfModule mpm_itk_module>
|
4
|
+
<%- if @itk["user"] and @itk["group"] -%>
|
5
|
+
AssignUserId <%= @itk["user"] %> <%= @itk["group"] %>
|
6
|
+
<%- end -%>
|
7
|
+
<%- if @itk["assignuieridexpr"] -%>
|
8
|
+
AssignUserIdExpr <%= @itk["assignuieridexpr"] %>
|
9
|
+
<%- end -%>
|
10
|
+
<%- if @itk["assignuiergroupexpr"] -%>
|
11
|
+
AssignGroupIdExpr <%= @itk["assignuiergroupexpr"] %>
|
12
|
+
<%- end -%>
|
13
|
+
<%- if @itk["maxclientvhost"] -%>
|
14
|
+
MaxClientsVHost <%= @itk["maxclientvhost"] %>
|
15
|
+
<%- end -%>
|
16
|
+
<%- if @itk["nice"] -%>
|
17
|
+
NiceValue <%= @itk["nice"] %>
|
18
|
+
<%- end -%>
|
19
|
+
<%- if @kernelversion >= '3.5.0' -%>
|
20
|
+
<%- if @itk["limituidrange"] -%>
|
21
|
+
LimitUIDRange <%= @itk["limituidrange"] %>
|
22
|
+
<%- end -%>
|
23
|
+
<%- if @itk["limitgidrange"] -%>
|
24
|
+
LimitGIDRange <%= @itk["limitgidrange"] %>
|
25
|
+
<%- end -%>
|
26
|
+
<%- end -%>
|
27
|
+
</IfModule>
|
28
|
+
<% end -%>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% if @php_admin_values and not @php_admin_values.empty? -%>
|
2
|
+
<% @php_admin_values.each do |key,value| -%>
|
3
|
+
php_admin_value <%= key %> <%= value %>
|
4
|
+
<% end -%>
|
5
|
+
<% end -%>
|
6
|
+
<% if @php_admin_flags and not @php_admin_flags.empty? -%>
|
7
|
+
<% @php_admin_flags.each do |key,flag| -%>
|
8
|
+
<%# normalize flag -%>
|
9
|
+
<% if flag =~ /true|yes|on|1/i then flag = 'on' else flag = 'off' end -%>
|
10
|
+
php_admin_flag <%= key %> <%= flag %>
|
11
|
+
<% end -%>
|
12
|
+
<% end -%>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<% if @proxy_dest or @proxy_pass -%>
|
2
|
+
|
3
|
+
## Proxy rules
|
4
|
+
ProxyRequests Off
|
5
|
+
<%- end -%>
|
6
|
+
<% [@proxy_pass].flatten.compact.each do |proxy| %>
|
7
|
+
ProxyPass <%= proxy['path'] %> <%= proxy['url'] %>
|
8
|
+
<Location <%= proxy['path']%>>
|
9
|
+
ProxyPassReverse /
|
10
|
+
</Location>
|
11
|
+
<% end %>
|
12
|
+
<% if @proxy_dest -%>
|
13
|
+
<% Array(@no_proxy_uris).each do |uri| %>
|
14
|
+
ProxyPass <%= uri %> !
|
15
|
+
<% end %>
|
16
|
+
ProxyPass / <%= @proxy_dest %>/
|
17
|
+
<Location />
|
18
|
+
ProxyPassReverse /
|
19
|
+
</Location>
|
20
|
+
<% end -%>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% if @redirect_source and @redirect_dest -%>
|
2
|
+
<% @redirect_dest_a = Array(@redirect_dest) -%>
|
3
|
+
<% @redirect_source_a = Array(@redirect_source) -%>
|
4
|
+
<% @redirect_status_a = Array(@redirect_status) -%>
|
5
|
+
|
6
|
+
## Redirect rules
|
7
|
+
<% @redirect_source_a.each_with_index do |source, i| -%>
|
8
|
+
<% @redirect_dest_a[i] ||= @redirect_dest_a[0] -%>
|
9
|
+
<% @redirect_status_a[i] ||= @redirect_status_a[0] -%>
|
10
|
+
Redirect <%= "#{@redirect_status_a[i]} " %><%= source %> <%= @redirect_dest_a[i] %>
|
11
|
+
<% end -%>
|
12
|
+
<% end -%>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<% if @request_headers and ! @request_headers.empty? -%>
|
2
|
+
|
3
|
+
## Request header rules
|
4
|
+
## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#requestheader
|
5
|
+
<%- Array(@request_headers).each do |request_statement| -%>
|
6
|
+
<%- if request_statement != '' -%>
|
7
|
+
RequestHeader <%= request_statement %>
|
8
|
+
<%- end -%>
|
9
|
+
<%- end -%>
|
10
|
+
<% end -%>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<% if @rewrites -%>
|
2
|
+
## Rewrite rules
|
3
|
+
RewriteEngine On
|
4
|
+
<% if @rewrite_base -%>
|
5
|
+
RewriteBase <%= @rewrite_base %>
|
6
|
+
<% end -%>
|
7
|
+
|
8
|
+
<% [@rewrites].flatten.compact.each do |rewrite_details| -%>
|
9
|
+
<% if rewrite_details['comment'] -%>
|
10
|
+
#<%= rewrite_details['comment'] %>
|
11
|
+
<% end -%>
|
12
|
+
<% if rewrite_details['rewrite_cond'] -%>
|
13
|
+
<%- Array(rewrite_details['rewrite_cond']).each do |commands| -%>
|
14
|
+
<%- Array(commands).each do |command| -%>
|
15
|
+
RewriteCond <%= command %>
|
16
|
+
<%- end -%>
|
17
|
+
<% end -%>
|
18
|
+
<% end -%>
|
19
|
+
<%- Array(rewrite_details['rewrite_rule']).each do |commands| -%>
|
20
|
+
<%- Array(commands).each do |command| -%>
|
21
|
+
RewriteRule <%= command %>
|
22
|
+
<%- end -%>
|
23
|
+
|
24
|
+
<% end -%>
|
25
|
+
<% end -%>
|
26
|
+
<%- end -%>
|
27
|
+
<%# reverse compatibility %>
|
28
|
+
<% if @rewrite_rule and !@rewrites -%>
|
29
|
+
## Rewrite rules
|
30
|
+
RewriteEngine On
|
31
|
+
<% if @rewrite_base -%>
|
32
|
+
RewriteBase <%= @rewrite_base %>
|
33
|
+
<% end -%>
|
34
|
+
<% if @rewrite_cond -%>
|
35
|
+
<% Array(@rewrite_cond).each do |cond| -%>
|
36
|
+
RewriteCond <%= cond %>
|
37
|
+
<% end -%>
|
38
|
+
<% end -%>
|
39
|
+
RewriteRule <%= @rewrite_rule %>
|
40
|
+
<%- end -%>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%- if @scriptaliases.is_a?(Array) -%>
|
2
|
+
<%- aliases = @scriptaliases -%>
|
3
|
+
<%- elsif @scriptaliases.is_a?(Hash) -%>
|
4
|
+
<%- aliases = [@scriptaliases] -%>
|
5
|
+
<%- else -%>
|
6
|
+
<%- # Nothing to do with any other data type -%>
|
7
|
+
<%- aliases = [] -%>
|
8
|
+
<%- end -%>
|
9
|
+
<%- if @scriptalias or !aliases.empty? -%>
|
10
|
+
## Script alias directives
|
11
|
+
<%# Combine scriptalais and scriptaliases into a single data structure -%>
|
12
|
+
<%# for backward compatibility and ease of implementation -%>
|
13
|
+
<%- aliases << { 'alias' => '/cgi-bin/', 'path' => @scriptalias } if @scriptalias -%>
|
14
|
+
<%- aliases.flatten.compact! -%>
|
15
|
+
<%- aliases.each do |salias| -%>
|
16
|
+
<%- if salias["path"] != '' -%>
|
17
|
+
<%- if salias["alias"] and salias["alias"] != '' -%>
|
18
|
+
ScriptAlias <%= salias['alias'] %> <%= salias['path'] %>
|
19
|
+
<%- elsif salias["aliasmatch"] and salias["aliasmatch"] != '' -%>
|
20
|
+
ScriptAliasMatch <%= salias['aliasmatch'] %> <%= salias['path'] %>
|
21
|
+
<%- end -%>
|
22
|
+
<%- end -%>
|
23
|
+
<%- end -%>
|
24
|
+
<%- end -%>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% if @setenv and ! @setenv.empty? -%>
|
2
|
+
|
3
|
+
## SetEnv/SetEnvIf for environment variables
|
4
|
+
<% Array(@setenv).each do |envvar| -%>
|
5
|
+
SetEnv <%= envvar %>
|
6
|
+
<% end -%>
|
7
|
+
<% end -%>
|
8
|
+
<% if @setenvif and ! @setenvif.empty? -%>
|
9
|
+
<% Array(@setenvif).each do |envifvar| -%>
|
10
|
+
SetEnvIf <%= envifvar %>
|
11
|
+
<% end -%>
|
12
|
+
<% end -%>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<% if @ssl -%>
|
2
|
+
|
3
|
+
## SSL directives
|
4
|
+
SSLEngine on
|
5
|
+
SSLCertificateFile <%= @ssl_cert %>
|
6
|
+
SSLCertificateKeyFile <%= @ssl_key %>
|
7
|
+
<% if @ssl_chain -%>
|
8
|
+
SSLCertificateChainFile <%= @ssl_chain %>
|
9
|
+
<% end -%>
|
10
|
+
SSLCACertificatePath <%= @ssl_certs_dir %>
|
11
|
+
<% if @ssl_ca -%>
|
12
|
+
SSLCACertificateFile <%= @ssl_ca %>
|
13
|
+
<% end -%>
|
14
|
+
<% if @ssl_crl_path -%>
|
15
|
+
SSLCARevocationPath <%= @ssl_crl_path %>
|
16
|
+
<% end -%>
|
17
|
+
<% if @ssl_crl -%>
|
18
|
+
SSLCARevocationFile <%= @ssl_crl %>
|
19
|
+
<% end -%>
|
20
|
+
<% if @ssl_proxyengine -%>
|
21
|
+
SSLProxyEngine On
|
22
|
+
<% end -%>
|
23
|
+
<% if @ssl_protocol -%>
|
24
|
+
SSLProtocol <%= @ssl_protocol %>
|
25
|
+
<% end -%>
|
26
|
+
<% if @ssl_cipher -%>
|
27
|
+
SSLCipherSuite <%= @ssl_cipher %>
|
28
|
+
<% end -%>
|
29
|
+
<% if @ssl_honorcipherorder -%>
|
30
|
+
SSLHonorCipherOrder <%= @ssl_honorcipherorder %>
|
31
|
+
<% end -%>
|
32
|
+
<% if @ssl_verify_client -%>
|
33
|
+
SSLVerifyClient <%= @ssl_verify_client %>
|
34
|
+
<% end -%>
|
35
|
+
<% if @ssl_verify_depth -%>
|
36
|
+
SSLVerifyDepth <%= @ssl_verify_depth %>
|
37
|
+
<% end -%>
|
38
|
+
<% if @ssl_options -%>
|
39
|
+
SSLOptions <%= Array(@ssl_options).join(' ') %>
|
40
|
+
<% end -%>
|
41
|
+
<% end -%>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<% if @suphp_engine == 'on' -%>
|
2
|
+
<% if @suphp_addhandler -%>
|
3
|
+
suPHP_AddHandler <%= @suphp_addhandler %>
|
4
|
+
<% end -%>
|
5
|
+
<% if @suphp_engine -%>
|
6
|
+
suPHP_Engine <%= @suphp_engine %>
|
7
|
+
<% end -%>
|
8
|
+
<% if @suphp_configpath -%>
|
9
|
+
suPHP_ConfigPath <%= @suphp_configpath %>
|
10
|
+
<% end -%>
|
11
|
+
<% end -%>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% if @wsgi_daemon_process and @wsgi_daemon_process_options -%>
|
2
|
+
WSGIDaemonProcess <%= @wsgi_daemon_process %> <%= @wsgi_daemon_process_options.collect { |k,v| "#{k}=#{v}"}.sort.join(' ') %>
|
3
|
+
<% elsif @wsgi_daemon_process and !@wsgi_daemon_process_options -%>
|
4
|
+
WSGIDaemonProcess <%= @wsgi_daemon_process %>
|
5
|
+
<% end -%>
|
6
|
+
<% if @wsgi_process_group -%>
|
7
|
+
WSGIProcessGroup <%= @wsgi_process_group %>
|
8
|
+
<% end -%>
|
9
|
+
<% if @wsgi_script_aliases and ! @wsgi_script_aliases.empty? -%>
|
10
|
+
<%- @wsgi_script_aliases.each do |a, p| -%>
|
11
|
+
<%- if a != '' and p != ''-%>
|
12
|
+
WSGIScriptAlias <%= a %> <%= p %>
|
13
|
+
<%- end -%>
|
14
|
+
<%- end -%>
|
15
|
+
<% end -%>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# ************************************
|
2
|
+
# Vhost template in module puppetlabs-apache
|
3
|
+
# Managed by Puppet
|
4
|
+
# ************************************
|
5
|
+
|
6
|
+
<VirtualHost <%= @nvh_addr_port %>>
|
7
|
+
ServerName <%= @servername %>
|
8
|
+
<% if @serveradmin -%>
|
9
|
+
ServerAdmin <%= @serveradmin %>
|
10
|
+
<% end -%>
|
11
|
+
|
12
|
+
## Vhost docroot
|
13
|
+
<% if @virtual_docroot -%>
|
14
|
+
VirtualDocumentRoot <%= @virtual_docroot %>
|
15
|
+
<% else -%>
|
16
|
+
DocumentRoot <%= @docroot %>
|
17
|
+
<% end -%>
|
18
|
+
<%= scope.function_template(['apache/vhost/_aliases.erb']) -%>
|
19
|
+
|
20
|
+
<%= scope.function_template(['apache/vhost/_itk.erb']) -%>
|
21
|
+
|
22
|
+
<% if @fallbackresource -%>
|
23
|
+
FallbackResource <%= @fallbackresource %>
|
24
|
+
<% end -%>
|
25
|
+
|
26
|
+
## Directories, there should at least be a declaration for <%= @docroot %>
|
27
|
+
<%= scope.function_template(['apache/vhost/_directories.erb']) -%>
|
28
|
+
|
29
|
+
## Load additional static includes
|
30
|
+
<% Array(@additional_includes).each do |include| %>
|
31
|
+
Include <%= include %>
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
## Logging
|
35
|
+
<% if @error_log -%>
|
36
|
+
ErrorLog <%= @error_log_destination %>
|
37
|
+
<% end -%>
|
38
|
+
<% if @log_level -%>
|
39
|
+
LogLevel <%= @log_level %>
|
40
|
+
<% end -%>
|
41
|
+
ServerSignature Off
|
42
|
+
<% if @access_log and @_access_log_env_var -%>
|
43
|
+
CustomLog <%= @access_log_destination %> <%= @_access_log_format %> <%= @_access_log_env_var %>
|
44
|
+
<% elsif @access_log -%>
|
45
|
+
CustomLog <%= @access_log_destination %> <%= @_access_log_format %>
|
46
|
+
<% end -%>
|
47
|
+
<%= scope.function_template(['apache/vhost/_block.erb']) -%>
|
48
|
+
<%= scope.function_template(['apache/vhost/_error_document.erb']) -%>
|
49
|
+
<%= scope.function_template(['apache/vhost/_proxy.erb']) -%>
|
50
|
+
<%= scope.function_template(['apache/vhost/_rack.erb']) -%>
|
51
|
+
<%= scope.function_template(['apache/vhost/_redirect.erb']) -%>
|
52
|
+
<%= scope.function_template(['apache/vhost/_rewrite.erb']) -%>
|
53
|
+
<%= scope.function_template(['apache/vhost/_scriptalias.erb']) -%>
|
54
|
+
<%= scope.function_template(['apache/vhost/_serveralias.erb']) -%>
|
55
|
+
<%= scope.function_template(['apache/vhost/_setenv.erb']) -%>
|
56
|
+
<%= scope.function_template(['apache/vhost/_ssl.erb']) -%>
|
57
|
+
<%= scope.function_template(['apache/vhost/_suphp.erb']) -%>
|
58
|
+
<%= scope.function_template(['apache/vhost/_php_admin.erb']) -%>
|
59
|
+
<%= scope.function_template(['apache/vhost/_requestheader.erb']) -%>
|
60
|
+
<%= scope.function_template(['apache/vhost/_wsgi.erb']) -%>
|
61
|
+
<%= scope.function_template(['apache/vhost/_custom_fragment.erb']) -%>
|
62
|
+
<%= scope.function_template(['apache/vhost/_fastcgi.erb']) -%>
|
63
|
+
</VirtualHost>
|
@@ -0,0 +1 @@
|
|
1
|
+
include apache::dev
|
@@ -0,0 +1 @@
|
|
1
|
+
include apache
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Tests the path and identifier parameters for the apache::mod class
|
2
|
+
|
3
|
+
# Base class for clarity:
|
4
|
+
class { 'apache': }
|
5
|
+
|
6
|
+
|
7
|
+
# Exaple parameter usage:
|
8
|
+
apache::mod { 'testmod':
|
9
|
+
path => '/usr/some/path/mod_testmod.so',
|
10
|
+
id => 'testmod_custom_name',
|
11
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
## custom mods
|
2
|
+
|
3
|
+
# Base class. Declares default vhost on port 80 and default ssl
|
4
|
+
# vhost on port 443 listening on all interfaces and serving
|
5
|
+
# $apache::docroot, and declaring a custom set of modules.
|
6
|
+
class { 'apache':
|
7
|
+
default_mods => [
|
8
|
+
'info',
|
9
|
+
'alias',
|
10
|
+
'mime',
|
11
|
+
'env',
|
12
|
+
'setenv',
|
13
|
+
'expires',
|
14
|
+
],
|
15
|
+
}
|
16
|
+
|