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,64 @@
|
|
1
|
+
class apache::mod::itk (
|
2
|
+
$startservers = '8',
|
3
|
+
$minspareservers = '5',
|
4
|
+
$maxspareservers = '20',
|
5
|
+
$serverlimit = '256',
|
6
|
+
$maxclients = '256',
|
7
|
+
$maxrequestsperchild = '4000',
|
8
|
+
) {
|
9
|
+
if defined(Class['apache::mod::event']) {
|
10
|
+
fail('May not include both apache::mod::itk and apache::mod::event on the same node')
|
11
|
+
}
|
12
|
+
if defined(Class['apache::mod::peruser']) {
|
13
|
+
fail('May not include both apache::mod::itk and apache::mod::peruser on the same node')
|
14
|
+
}
|
15
|
+
if defined(Class['apache::mod::prefork']) {
|
16
|
+
fail('May not include both apache::mod::itk and apache::mod::prefork on the same node')
|
17
|
+
}
|
18
|
+
if defined(Class['apache::mod::worker']) {
|
19
|
+
fail('May not include both apache::mod::itk and apache::mod::worker on the same node')
|
20
|
+
}
|
21
|
+
File {
|
22
|
+
owner => 'root',
|
23
|
+
group => $apache::params::root_group,
|
24
|
+
mode => '0644',
|
25
|
+
}
|
26
|
+
|
27
|
+
# Template uses:
|
28
|
+
# - $startservers
|
29
|
+
# - $minspareservers
|
30
|
+
# - $maxspareservers
|
31
|
+
# - $serverlimit
|
32
|
+
# - $maxclients
|
33
|
+
# - $maxrequestsperchild
|
34
|
+
file { "${apache::mod_dir}/itk.conf":
|
35
|
+
ensure => file,
|
36
|
+
content => template('apache/mod/itk.conf.erb'),
|
37
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
38
|
+
before => File[$apache::mod_dir],
|
39
|
+
notify => Service['httpd'],
|
40
|
+
}
|
41
|
+
|
42
|
+
case $::osfamily {
|
43
|
+
'debian' : {
|
44
|
+
file { "${apache::mod_enable_dir}/itk.conf":
|
45
|
+
ensure => link,
|
46
|
+
target => "${apache::mod_dir}/itk.conf",
|
47
|
+
require => Exec["mkdir ${apache::mod_enable_dir}"],
|
48
|
+
before => File[$apache::mod_enable_dir],
|
49
|
+
notify => Service['httpd'],
|
50
|
+
}
|
51
|
+
package { 'apache2-mpm-itk':
|
52
|
+
ensure => present,
|
53
|
+
}
|
54
|
+
}
|
55
|
+
'freebsd' : {
|
56
|
+
class { 'apache::package':
|
57
|
+
mpm_module => 'itk'
|
58
|
+
}
|
59
|
+
}
|
60
|
+
default: {
|
61
|
+
fail("Unsupported osfamily ${::osfamily}")
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class apache::mod::ldap {
|
2
|
+
apache::mod { 'ldap': }
|
3
|
+
# Template uses no variables
|
4
|
+
file { 'ldap.conf':
|
5
|
+
ensure => file,
|
6
|
+
path => "${apache::mod_dir}/ldap.conf",
|
7
|
+
content => template('apache/mod/ldap.conf.erb'),
|
8
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
9
|
+
before => File[$apache::mod_dir],
|
10
|
+
notify => Service['httpd'],
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class apache::mod::mime (
|
2
|
+
$mime_support_package = $apache::params::mime_support_package,
|
3
|
+
$mime_types_config = $apache::params::mime_types_config,
|
4
|
+
) {
|
5
|
+
apache::mod { 'mime': }
|
6
|
+
# Template uses $mime_types_config
|
7
|
+
file { 'mime.conf':
|
8
|
+
ensure => file,
|
9
|
+
path => "${apache::mod_dir}/mime.conf",
|
10
|
+
content => template('apache/mod/mime.conf.erb'),
|
11
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
12
|
+
before => File[$apache::mod_dir],
|
13
|
+
notify => Service['httpd'],
|
14
|
+
}
|
15
|
+
if $mime_support_package {
|
16
|
+
package { $mime_support_package:
|
17
|
+
ensure => 'installed',
|
18
|
+
before => File["${apache::mod_dir}/mime.conf"],
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class apache::mod::mime_magic (
|
2
|
+
$magic_file = "${apache::params::conf_dir}/magic"
|
3
|
+
) {
|
4
|
+
apache::mod { 'mime_magic': }
|
5
|
+
# Template uses $magic_file
|
6
|
+
file { 'mime_magic.conf':
|
7
|
+
ensure => file,
|
8
|
+
path => "${apache::mod_dir}/mime_magic.conf",
|
9
|
+
content => template('apache/mod/mime_magic.conf.erb'),
|
10
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
11
|
+
before => File[$apache::mod_dir],
|
12
|
+
notify => Service['httpd'],
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class apache::mod::negotiation {
|
2
|
+
apache::mod { 'negotiation': }
|
3
|
+
# Template uses no variables
|
4
|
+
file { 'negotiation.conf':
|
5
|
+
ensure => file,
|
6
|
+
path => "${apache::mod_dir}/negotiation.conf",
|
7
|
+
content => template('apache/mod/negotiation.conf.erb'),
|
8
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
9
|
+
before => File[$apache::mod_dir],
|
10
|
+
notify => Service['httpd'],
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class apache::mod::nss (
|
2
|
+
$transfer_log = "${::apache::params::logroot}/access.log",
|
3
|
+
$error_log = "${::apache::params::logroot}/error.log",
|
4
|
+
$passwd_file = undef
|
5
|
+
) {
|
6
|
+
include apache::mod::mime
|
7
|
+
|
8
|
+
apache::mod { 'nss': }
|
9
|
+
|
10
|
+
$httpd_dir = $apache::httpd_dir
|
11
|
+
|
12
|
+
# Template uses:
|
13
|
+
# $transfer_log
|
14
|
+
# $error_log
|
15
|
+
# $http_dir
|
16
|
+
# passwd_file
|
17
|
+
file { 'nss.conf':
|
18
|
+
ensure => file,
|
19
|
+
path => "${apache::mod_dir}/nss.conf",
|
20
|
+
content => template('apache/mod/nss.conf.erb'),
|
21
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
22
|
+
before => File[$apache::mod_dir],
|
23
|
+
notify => Service['httpd'],
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class apache::mod::passenger (
|
2
|
+
$passenger_high_performance = undef,
|
3
|
+
$passenger_pool_idle_time = undef,
|
4
|
+
$passenger_max_requests = undef,
|
5
|
+
$passenger_stat_throttle_rate = undef,
|
6
|
+
$rack_autodetect = undef,
|
7
|
+
$rails_autodetect = undef,
|
8
|
+
$passenger_root = $apache::params::passenger_root,
|
9
|
+
$passenger_ruby = $apache::params::passenger_ruby,
|
10
|
+
$passenger_max_pool_size = undef,
|
11
|
+
$passenger_use_global_queue = undef,
|
12
|
+
) {
|
13
|
+
if $::osfamily == 'FreeBSD' {
|
14
|
+
apache::mod { 'passenger':
|
15
|
+
lib_path => "${passenger_root}/buildout/apache2"
|
16
|
+
}
|
17
|
+
} else {
|
18
|
+
apache::mod { 'passenger': }
|
19
|
+
}
|
20
|
+
# Template uses:
|
21
|
+
# - $passenger_root
|
22
|
+
# - $passenger_ruby
|
23
|
+
# - $passenger_max_pool_size
|
24
|
+
# - $passenger_high_performance
|
25
|
+
# - $passenger_max_requests
|
26
|
+
# - $passenger_stat_throttle_rate
|
27
|
+
# - $passenger_use_global_queue
|
28
|
+
# - $rack_autodetect
|
29
|
+
# - $rails_autodetect
|
30
|
+
file { 'passenger.conf':
|
31
|
+
ensure => file,
|
32
|
+
path => "${apache::mod_dir}/passenger.conf",
|
33
|
+
content => template('apache/mod/passenger.conf.erb'),
|
34
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
35
|
+
before => File[$apache::mod_dir],
|
36
|
+
notify => Service['httpd'],
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
class apache::mod::peruser (
|
2
|
+
$minspareprocessors = '2',
|
3
|
+
$minprocessors = '2',
|
4
|
+
$maxprocessors = '10',
|
5
|
+
$maxclients = '150',
|
6
|
+
$maxrequestsperchild = '1000',
|
7
|
+
$idletimeout = '120',
|
8
|
+
$expiretimeout = '120',
|
9
|
+
$keepalive = 'Off',
|
10
|
+
) {
|
11
|
+
if defined(Class['apache::mod::event']) {
|
12
|
+
fail('May not include both apache::mod::peruser and apache::mod::event on the same node')
|
13
|
+
}
|
14
|
+
if defined(Class['apache::mod::itk']) {
|
15
|
+
fail('May not include both apache::mod::peruser and apache::mod::itk on the same node')
|
16
|
+
}
|
17
|
+
if defined(Class['apache::mod::prefork']) {
|
18
|
+
fail('May not include both apache::mod::peruser and apache::mod::prefork on the same node')
|
19
|
+
}
|
20
|
+
if defined(Class['apache::mod::worker']) {
|
21
|
+
fail('May not include both apache::mod::peruser and apache::mod::worker on the same node')
|
22
|
+
}
|
23
|
+
File {
|
24
|
+
owner => 'root',
|
25
|
+
group => $apache::params::root_group,
|
26
|
+
mode => '0644',
|
27
|
+
}
|
28
|
+
|
29
|
+
$mod_dir = $apache::mod_dir
|
30
|
+
|
31
|
+
# Template uses:
|
32
|
+
# - $minspareprocessors
|
33
|
+
# - $minprocessors
|
34
|
+
# - $maxprocessors
|
35
|
+
# - $maxclients
|
36
|
+
# - $maxrequestsperchild
|
37
|
+
# - $idletimeout
|
38
|
+
# - $expiretimeout
|
39
|
+
# - $keepalive
|
40
|
+
# - $mod_dir
|
41
|
+
file { "${apache::mod_dir}/peruser.conf":
|
42
|
+
ensure => file,
|
43
|
+
content => template('apache/mod/peruser.conf.erb'),
|
44
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
45
|
+
before => File[$apache::mod_dir],
|
46
|
+
notify => Service['httpd'],
|
47
|
+
}
|
48
|
+
file { "${apache::mod_dir}/peruser":
|
49
|
+
ensure => directory,
|
50
|
+
require => File[$apache::mod_dir],
|
51
|
+
}
|
52
|
+
file { "${apache::mod_dir}/peruser/multiplexers":
|
53
|
+
ensure => directory,
|
54
|
+
require => File["${apache::mod_dir}/peruser"],
|
55
|
+
}
|
56
|
+
file { "${apache::mod_dir}/peruser/processors":
|
57
|
+
ensure => directory,
|
58
|
+
require => File["${apache::mod_dir}/peruser"],
|
59
|
+
}
|
60
|
+
|
61
|
+
apache::peruser::multiplexer { '01-default': }
|
62
|
+
|
63
|
+
case $::osfamily {
|
64
|
+
'freebsd' : {
|
65
|
+
class { 'apache::package':
|
66
|
+
mpm_module => 'peruser'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
default: {
|
70
|
+
fail("Unsupported osfamily ${::osfamily}")
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class apache::mod::php (
|
2
|
+
$package_ensure = 'present',
|
3
|
+
) {
|
4
|
+
if ! defined(Class['apache::mod::prefork']) {
|
5
|
+
fail('apache::mod::php requires apache::mod::prefork; please enable mpm_module => \'prefork\' on Class[\'apache\']')
|
6
|
+
}
|
7
|
+
apache::mod { 'php5':
|
8
|
+
package_ensure => $package_ensure,
|
9
|
+
}
|
10
|
+
|
11
|
+
include apache::mod::mime
|
12
|
+
include apache::mod::dir
|
13
|
+
Class['apache::mod::mime'] -> Class['apache::mod::dir'] -> Class['apache::mod::php']
|
14
|
+
|
15
|
+
file { 'php5.conf':
|
16
|
+
ensure => file,
|
17
|
+
path => "${apache::mod_dir}/php5.conf",
|
18
|
+
content => template('apache/mod/php5.conf.erb'),
|
19
|
+
require => [
|
20
|
+
Class['apache::mod::prefork'],
|
21
|
+
Exec["mkdir ${apache::mod_dir}"],
|
22
|
+
],
|
23
|
+
before => File[$apache::mod_dir],
|
24
|
+
notify => Service['httpd'],
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
class apache::mod::prefork (
|
2
|
+
$startservers = '8',
|
3
|
+
$minspareservers = '5',
|
4
|
+
$maxspareservers = '20',
|
5
|
+
$serverlimit = '256',
|
6
|
+
$maxclients = '256',
|
7
|
+
$maxrequestsperchild = '4000',
|
8
|
+
) {
|
9
|
+
if defined(Class['apache::mod::event']) {
|
10
|
+
fail('May not include both apache::mod::prefork and apache::mod::event on the same node')
|
11
|
+
}
|
12
|
+
if defined(Class['apache::mod::itk']) {
|
13
|
+
fail('May not include both apache::mod::prefork and apache::mod::itk on the same node')
|
14
|
+
}
|
15
|
+
if defined(Class['apache::mod::peruser']) {
|
16
|
+
fail('May not include both apache::mod::prefork and apache::mod::peruser on the same node')
|
17
|
+
}
|
18
|
+
if defined(Class['apache::mod::worker']) {
|
19
|
+
fail('May not include both apache::mod::prefork and apache::mod::worker on the same node')
|
20
|
+
}
|
21
|
+
File {
|
22
|
+
owner => 'root',
|
23
|
+
group => $apache::params::root_group,
|
24
|
+
mode => '0644',
|
25
|
+
}
|
26
|
+
|
27
|
+
# Template uses:
|
28
|
+
# - $startservers
|
29
|
+
# - $minspareservers
|
30
|
+
# - $maxspareservers
|
31
|
+
# - $serverlimit
|
32
|
+
# - $maxclients
|
33
|
+
# - $maxrequestsperchild
|
34
|
+
file { "${apache::mod_dir}/prefork.conf":
|
35
|
+
ensure => file,
|
36
|
+
content => template('apache/mod/prefork.conf.erb'),
|
37
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
38
|
+
before => File[$apache::mod_dir],
|
39
|
+
notify => Service['httpd'],
|
40
|
+
}
|
41
|
+
|
42
|
+
case $::osfamily {
|
43
|
+
'redhat': {
|
44
|
+
file_line { '/etc/sysconfig/httpd prefork enable':
|
45
|
+
ensure => present,
|
46
|
+
path => '/etc/sysconfig/httpd',
|
47
|
+
line => '#HTTPD=/usr/sbin/httpd.worker',
|
48
|
+
match => '#?HTTPD=/usr/sbin/httpd.worker',
|
49
|
+
require => Package['httpd'],
|
50
|
+
notify => Service['httpd'],
|
51
|
+
}
|
52
|
+
}
|
53
|
+
'debian': {
|
54
|
+
file { "${apache::mod_enable_dir}/prefork.conf":
|
55
|
+
ensure => link,
|
56
|
+
target => "${apache::mod_dir}/prefork.conf",
|
57
|
+
require => Exec["mkdir ${apache::mod_enable_dir}"],
|
58
|
+
before => File[$apache::mod_enable_dir],
|
59
|
+
notify => Service['httpd'],
|
60
|
+
}
|
61
|
+
package { 'apache2-mpm-prefork':
|
62
|
+
ensure => present,
|
63
|
+
}
|
64
|
+
}
|
65
|
+
'freebsd' : {
|
66
|
+
class { 'apache::package':
|
67
|
+
mpm_module => 'prefork'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
default: {
|
71
|
+
fail("Unsupported osfamily ${::osfamily}")
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class apache::mod::proxy (
|
2
|
+
$proxy_requests = 'Off',
|
3
|
+
$allow_from = undef,
|
4
|
+
) {
|
5
|
+
apache::mod { 'proxy': }
|
6
|
+
# Template uses $proxy_requests
|
7
|
+
file { 'proxy.conf':
|
8
|
+
ensure => file,
|
9
|
+
path => "${apache::mod_dir}/proxy.conf",
|
10
|
+
content => template('apache/mod/proxy.conf.erb'),
|
11
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
12
|
+
before => File[$apache::mod_dir],
|
13
|
+
notify => Service['httpd'],
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class apache::mod::proxy_balancer {
|
2
|
+
|
3
|
+
include apache::mod::proxy
|
4
|
+
include apache::mod::proxy_http
|
5
|
+
|
6
|
+
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_balancer']
|
7
|
+
Class['apache::mod::proxy_http'] -> Class['apache::mod::proxy_balancer']
|
8
|
+
apache::mod { 'proxy_balancer': }
|
9
|
+
|
10
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class apache::mod::proxy_html {
|
2
|
+
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_html']
|
3
|
+
Class['apache::mod::proxy_http'] -> Class['apache::mod::proxy_html']
|
4
|
+
apache::mod { 'proxy_html': }
|
5
|
+
case $::osfamily {
|
6
|
+
'RedHat': {
|
7
|
+
apache::mod { 'xml2enc': }
|
8
|
+
}
|
9
|
+
'Debian': {
|
10
|
+
$proxy_html_loadfiles = $apache::params::distrelease ? {
|
11
|
+
'6' => '/usr/lib/libxml2.so.2',
|
12
|
+
default => "/usr/lib/${::hardwaremodel}-linux-gnu/libxml2.so.2",
|
13
|
+
}
|
14
|
+
}
|
15
|
+
'FreeBSD': {
|
16
|
+
apache::mod { 'xml2enc': }
|
17
|
+
}
|
18
|
+
}
|
19
|
+
# Template uses $icons_path
|
20
|
+
file { 'proxy_html.conf':
|
21
|
+
ensure => file,
|
22
|
+
path => "${apache::mod_dir}/proxy_html.conf",
|
23
|
+
content => template('apache/mod/proxy_html.conf.erb'),
|
24
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
25
|
+
before => File[$apache::mod_dir],
|
26
|
+
notify => Service['httpd'],
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class apache::mod::reqtimeout {
|
2
|
+
apache::mod { 'reqtimeout': }
|
3
|
+
# Template uses no variables
|
4
|
+
file { 'reqtimeout.conf':
|
5
|
+
ensure => file,
|
6
|
+
path => "${apache::mod_dir}/reqtimeout.conf",
|
7
|
+
content => template('apache/mod/reqtimeout.conf.erb'),
|
8
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
9
|
+
before => File[$apache::mod_dir],
|
10
|
+
notify => Service['httpd'],
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class apache::mod::rpaf (
|
2
|
+
$sethostname = true,
|
3
|
+
$proxy_ips = [ '127.0.0.1' ],
|
4
|
+
$header = 'X-Forwarded-For'
|
5
|
+
) {
|
6
|
+
apache::mod { 'rpaf': }
|
7
|
+
|
8
|
+
# Template uses:
|
9
|
+
# - $sethostname
|
10
|
+
# - $proxy_ips
|
11
|
+
# - $header
|
12
|
+
file { 'rpaf.conf':
|
13
|
+
ensure => file,
|
14
|
+
path => "${apache::mod_dir}/rpaf.conf",
|
15
|
+
content => template('apache/mod/rpaf.conf.erb'),
|
16
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
17
|
+
before => File[$apache::mod_dir],
|
18
|
+
notify => Service['httpd'],
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class apache::mod::setenvif {
|
2
|
+
apache::mod { 'setenvif': }
|
3
|
+
# Template uses no variables
|
4
|
+
file { 'setenvif.conf':
|
5
|
+
ensure => file,
|
6
|
+
path => "${apache::mod_dir}/setenvif.conf",
|
7
|
+
content => template('apache/mod/setenvif.conf.erb'),
|
8
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
9
|
+
before => File[$apache::mod_dir],
|
10
|
+
notify => Service['httpd'],
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class apache::mod::ssl (
|
2
|
+
$ssl_compression = false,
|
3
|
+
$ssl_options = [ 'StdEnvVars' ],
|
4
|
+
) {
|
5
|
+
$session_cache = $::osfamily ? {
|
6
|
+
'debian' => '${APACHE_RUN_DIR}/ssl_scache(512000)',
|
7
|
+
'redhat' => '/var/cache/mod_ssl/scache(512000)',
|
8
|
+
'freebsd' => '/var/run/ssl_scache(512000)',
|
9
|
+
}
|
10
|
+
$ssl_mutex = $::osfamily ? {
|
11
|
+
'debian' => 'file:${APACHE_RUN_DIR}/ssl_mutex',
|
12
|
+
'redhat' => 'default',
|
13
|
+
'freebsd' => 'default',
|
14
|
+
}
|
15
|
+
apache::mod { 'ssl': }
|
16
|
+
|
17
|
+
# Template uses $ssl_compression, $ssl_options, $session_cache, $ssl_mutex
|
18
|
+
file { 'ssl.conf':
|
19
|
+
ensure => file,
|
20
|
+
path => "${apache::mod_dir}/ssl.conf",
|
21
|
+
content => template('apache/mod/ssl.conf.erb'),
|
22
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
23
|
+
before => File[$apache::mod_dir],
|
24
|
+
notify => Service['httpd'],
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Class: apache::mod::status
|
2
|
+
#
|
3
|
+
# This class enables and configures Apache mod_status
|
4
|
+
# See: http://httpd.apache.org/docs/current/mod/mod_status.html
|
5
|
+
#
|
6
|
+
# Parameters:
|
7
|
+
# - $allow_from is an array of hosts, ip addresses, partial network numbers
|
8
|
+
# or networks in CIDR notation specifying what hosts can view the special
|
9
|
+
# /server-status URL. Defaults to ['127.0.0.1', '::1'].
|
10
|
+
# - $extended_status track and display extended status information. Valid
|
11
|
+
# values are 'On' or 'Off'. Defaults to 'On'.
|
12
|
+
#
|
13
|
+
# Actions:
|
14
|
+
# - Enable and configure Apache mod_status
|
15
|
+
#
|
16
|
+
# Requires:
|
17
|
+
# - The apache class
|
18
|
+
#
|
19
|
+
# Sample Usage:
|
20
|
+
#
|
21
|
+
# # Simple usage allowing access from localhost and a private subnet
|
22
|
+
# class { 'apache::mod::status':
|
23
|
+
# $allow_from => ['127.0.0.1', '10.10.10.10/24'],
|
24
|
+
# }
|
25
|
+
#
|
26
|
+
class apache::mod::status (
|
27
|
+
$allow_from = ['127.0.0.1','::1'],
|
28
|
+
$extended_status = 'On',
|
29
|
+
){
|
30
|
+
validate_array($allow_from)
|
31
|
+
validate_re(downcase($extended_status), '^(on|off)$', "${extended_status} is not supported for extended_status. Allowed values are 'On' and 'Off'.")
|
32
|
+
apache::mod { 'status': }
|
33
|
+
# Template uses $allow_from, $extended_status
|
34
|
+
file { 'status.conf':
|
35
|
+
ensure => file,
|
36
|
+
path => "${apache::mod_dir}/status.conf",
|
37
|
+
content => template('apache/mod/status.conf.erb'),
|
38
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
39
|
+
before => File[$apache::mod_dir],
|
40
|
+
notify => Service['httpd'],
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class apache::mod::suphp (
|
2
|
+
){
|
3
|
+
apache::mod { 'suphp': }
|
4
|
+
|
5
|
+
file {'suphp.conf':
|
6
|
+
ensure => file,
|
7
|
+
path => "${apache::mod_dir}/suphp.conf",
|
8
|
+
content => template('apache/mod/suphp.conf.erb'),
|
9
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
10
|
+
before => File[$apache::mod_dir],
|
11
|
+
notify => Service['httpd']
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class apache::mod::userdir (
|
2
|
+
$home = '/home',
|
3
|
+
$dir = 'public_html',
|
4
|
+
$disable_root = true,
|
5
|
+
) {
|
6
|
+
apache::mod { 'userdir': }
|
7
|
+
|
8
|
+
# Template uses $home, $dir, $disable_root
|
9
|
+
file { 'userdir.conf':
|
10
|
+
ensure => file,
|
11
|
+
path => "${apache::mod_dir}/userdir.conf",
|
12
|
+
content => template('apache/mod/userdir.conf.erb'),
|
13
|
+
require => Exec["mkdir ${apache::mod_dir}"],
|
14
|
+
before => File[$apache::mod_dir],
|
15
|
+
notify => Service['httpd'],
|
16
|
+
}
|
17
|
+
}
|