Mercurial > repos > other > Puppet
comparison modules/apache/manifests/mod/dav_svn.pp @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | 675c1cc61eaf |
children | b8d6ada284dd |
comparison
equal
deleted
inserted
replaced
274:b2571c28fc27 | 275:d9352a684e62 |
---|---|
1 # @summary | |
2 # Installs and configures `mod_dav_svn`. | |
3 # | |
4 # @param authz_svn_enabled | |
5 # Specifies whether to install Apache mod_authz_svn | |
6 # | |
7 # @see https://httpd.apache.org/docs/current/mod/mod_dav_svn.html for additional documentation. | |
8 # | |
1 class apache::mod::dav_svn ( | 9 class apache::mod::dav_svn ( |
2 $authz_svn_enabled = false, | 10 $authz_svn_enabled = false, |
3 ) { | 11 ) { |
4 Class['::apache::mod::dav'] -> Class['::apache::mod::dav_svn'] | 12 Class['::apache::mod::dav'] -> Class['::apache::mod::dav_svn'] |
5 include ::apache | 13 include ::apache |
11 } | 19 } |
12 } | 20 } |
13 | 21 |
14 ::apache::mod { 'dav_svn': } | 22 ::apache::mod { 'dav_svn': } |
15 | 23 |
16 if $::osfamily == 'Debian' and ($::operatingsystemmajrelease != '6' and $::operatingsystemmajrelease != '10.04' and $::operatingsystemrelease != '10.04' and $::operatingsystemmajrelease != '16.04') { | 24 if $::osfamily == 'Debian' and ! ($::operatingsystemmajrelease in ['6', '9', '16.04', '18.04']) { |
17 $loadfile_name = undef | 25 $loadfile_name = undef |
18 } else { | 26 } else { |
19 $loadfile_name = 'dav_svn_authz_svn.load' | 27 $loadfile_name = 'dav_svn_authz_svn.load' |
20 } | 28 } |
21 | 29 |