Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 8 additions & 0 deletions manifests/apache.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@
configure_firewall => false,
override => 'All',
}

if $::osfamily == 'Debian' {
file { 'default-vhost':
ensure => absent,
path => '/etc/apache2/sites-enabled/000-default',
notify => Service['httpd'],
}
}
}
6 changes: 6 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
end
it { should include_class('observium')}

it do
should contain_file('default-vhost').with({
'ensure' => 'absent',
})
end

end
end