Skip to content

Commit

Permalink
Merge pull request #1041 from mhaskel/fixup_880
Browse files Browse the repository at this point in the history
Fixes #880 - (MODULES-1391) Correct Ubuntu Trusty mod_prefork package name
  • Loading branch information
Morgan Haskel committed Feb 26, 2015
2 parents 29a6cbc + d5329d6 commit ad46f85
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
$logroot_mode = undef
$lib_path = '/usr/lib/apache2/modules'
$mpm_module = 'worker'
$dev_packages = ['libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev']
$default_ssl_cert = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
$default_ssl_key = '/etc/ssl/private/ssl-cert-snakeoil.key'
$ssl_certs_dir = '/etc/ssl/certs'
Expand Down Expand Up @@ -234,6 +233,11 @@
'base_rules/modsecurity_crs_60_correlation.conf'
]
$error_documents_path = '/usr/share/apache2/error'
if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '13.10') >= 0) {
$dev_packages = ['libaprutil1-dev', 'libapr1-dev', 'apache2-dev']
} else {
$dev_packages = ['libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev']
}

#
# Passenger-specific settings
Expand Down
13 changes: 13 additions & 0 deletions spec/classes/dev_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
it { is_expected.to contain_package("libapr1-dev") }
it { is_expected.to contain_package("apache2-prefork-dev") }
end
context "on an Ubuntu 14 OS" do
let :facts do
{
:lsbdistrelease => '14.04',
:lsbdistcodename => 'trusty',
:osfamily => 'Debian',
:operatingsystem => 'Ubuntu',
:operatingsystemrelease => '14.04',
:is_pe => false,
}
end
it { is_expected.to contain_package("apache2-dev") }
end
context "on a RedHat OS" do
let :facts do
{
Expand Down

0 comments on commit ad46f85

Please sign in to comment.