Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure mod::expires is added when needed
  • Loading branch information
gcoxmoz committed Jun 26, 2025
commit 3b0b094e02a1c68caddbdcb7ff4d83554ecb35c9
4 changes: 4 additions & 0 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,10 @@
include apache::mod::dir
}

if 'expires_active' in $directory {
include apache::mod::expires
}

if 'gssapi' in $directory {
include apache::mod::auth_gssapi
}
Expand Down
17 changes: 17 additions & 0 deletions spec/defines/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,23 @@
it { is_expected.to compile }
it { is_expected.to contain_class('apache::mod::dir') }
end

context 'mod_expires is included when needed' do
let :params do
{
'docroot' => '/var/www/foo',
'directories' => [
{
'expires_active' => 'On',
},
]

}
end

it { is_expected.to compile }
it { is_expected.to contain_class('apache::mod::expires') }
end
end
end
end
Expand Down