We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b3d48 commit 3b0b094Copy full SHA for 3b0b094
2 files changed
manifests/vhost.pp
@@ -2340,6 +2340,10 @@
2340
include apache::mod::dir
2341
}
2342
2343
+ if 'expires_active' in $directory {
2344
+ include apache::mod::expires
2345
+ }
2346
+
2347
if 'gssapi' in $directory {
2348
include apache::mod::auth_gssapi
2349
spec/defines/vhost_spec.rb
@@ -2205,6 +2205,23 @@
2205
it { is_expected.to compile }
2206
it { is_expected.to contain_class('apache::mod::dir') }
2207
end
2208
2209
+ context 'mod_expires is included when needed' do
2210
+ let :params do
2211
+ {
2212
+ 'docroot' => '/var/www/foo',
2213
+ 'directories' => [
2214
2215
+ 'expires_active' => 'On',
2216
+ },
2217
+ ]
2218
2219
2220
+ end
2221
2222
+ it { is_expected.to compile }
2223
+ it { is_expected.to contain_class('apache::mod::expires') }
2224
2225
2226
2227
0 commit comments