comparison modules/apache/manifests/mod/negotiation.pp @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +0100
parents b8d6ada284dd
children
comparison
equal deleted inserted replaced
477:21f6add30502 478:adf6fe9bbc17
18 ) { 18 ) {
19 include apache 19 include apache
20 20
21 ::apache::mod { 'negotiation': } 21 ::apache::mod { 'negotiation': }
22 # Template uses no variables 22 # Template uses no variables
23 $parameters = {
24 'language_priority' => $language_priority,
25 'force_language_priority' => $force_language_priority,
26 }
27
23 file { 'negotiation.conf': 28 file { 'negotiation.conf':
24 ensure => file, 29 ensure => file,
25 mode => $apache::file_mode, 30 mode => $apache::file_mode,
26 path => "${apache::mod_dir}/negotiation.conf", 31 path => "${apache::mod_dir}/negotiation.conf",
27 content => template('apache/mod/negotiation.conf.erb'), 32 content => epp('apache/mod/negotiation.conf.epp', $parameters),
28 require => Exec["mkdir ${apache::mod_dir}"], 33 require => Exec["mkdir ${apache::mod_dir}"],
29 before => File[$apache::mod_dir], 34 before => File[$apache::mod_dir],
30 notify => Class['apache::service'], 35 notify => Class['apache::service'],
31 } 36 }
32 } 37 }