diff --git a/manifests/vhost.pp b/manifests/vhost.pp index 7414a6f16..8273469f7 100644 --- a/manifests/vhost.pp +++ b/manifests/vhost.pp @@ -2362,6 +2362,10 @@ if 'setenv' in $directory { include apache::mod::env } + + if 'expires_active' in $directory or 'expires_default' in $directory or 'expires_by_type' in $directory { + include apache::mod::expires + } } # Template uses: diff --git a/spec/defines/vhost_spec.rb b/spec/defines/vhost_spec.rb index f448b8ca5..fa3fed7c0 100644 --- a/spec/defines/vhost_spec.rb +++ b/spec/defines/vhost_spec.rb @@ -335,6 +335,10 @@ } } }, + { + 'path' => '/expires', + 'expires_active' => true, + }, ], 'error_log' => false, 'error_log_file' => 'httpd_error_log', @@ -593,6 +597,7 @@ it { is_expected.to contain_class('apache::mod::authz_groupfile') } it { is_expected.to contain_class('apache::mod::auth_gssapi') } it { is_expected.to contain_class('apache::mod::env') } + it { is_expected.to contain_class('apache::mod::expires') } it { is_expected.to contain_class('apache::mod::filter') } it { is_expected.to contain_class('apache::mod::headers') } it { is_expected.to contain_class('apache::mod::mime') }