Skip to content

Commit

Permalink
make web::vhost::rpm compile on EL7 even if we don't use it there
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Dec 18, 2024
1 parent bf329e9 commit 913668d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion puppet/modules/web/manifests/vhost/rpm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
script_content => epp('web/deploy-rpmrepo.sh.epp', $deploy_rpmrepo_context),
}

include apache::mod::expires
# vhosts don't autorequire the expires module
# https://github.com/puppetlabs/puppetlabs-apache/pull/2559
# limit to not EL7 as there we use apache::default_mods
if $facts['os']['family'] != 'RedHat' or $facts['os']['release']['major'] != '7' {
include apache::mod::expires
}
include apache::mod::dir
include apache::mod::autoindex
include apache::mod::alias
Expand Down
7 changes: 6 additions & 1 deletion puppet/modules/web/manifests/vhost/stagingrpm.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
},
]

include apache::mod::expires
# vhosts don't autorequire the expires module
# https://github.com/puppetlabs/puppetlabs-apache/pull/2559
# limit to not EL7 as there we use apache::default_mods
if $facts['os']['family'] != 'RedHat' or $facts['os']['release']['major'] != '7' {
include apache::mod::expires
}
include apache::mod::dir
include apache::mod::autoindex
include apache::mod::alias
Expand Down

0 comments on commit 913668d

Please sign in to comment.