Skip to content

Commit

Permalink
Merge pull request #2 from luckyraul/fix_php_ver_debian
Browse files Browse the repository at this point in the history
fix php versions for debian systems
  • Loading branch information
dgolja committed Jan 24, 2015
2 parents a4b0e3a + 0e9fa7b commit db07fad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
$service_provider = undef
} elsif $::osfamily == 'Debian' {
$service_name = 'apache2'
$php_version = '5.3'
case $::operatingsystemmajrelease {
8: { $php_version = '5.6'}
7: { $php_version = '5.4'}
6: { $php_version = '5.3'}
default: { $php_version = '5.4' }
}
$php_conf_dir = '/etc/php5/conf.d'
if $::operatingsystem == 'Ubuntu' {
$service_provider = 'upstart'
Expand All @@ -32,4 +37,4 @@
}

$ioncube_loader_base = 'ioncube_loader_lin'
}
}
2 changes: 1 addition & 1 deletion spec/classes/ioncubeloader_init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
it { should compile }
it { should contain_exec('retrieve_ioncubeloader') }
it { should contain_file('/etc/php5/conf.d/ioncube.ini').with('ensure' => 'present') }
it { should contain_file('/etc/php5/conf.d/ioncube.ini').with_content(/zend_extension=\/usr\/local\/ioncube\/ioncube_loader_lin_5.3_ts.so/) }
it { should contain_file('/etc/php5/conf.d/ioncube.ini').with_content(/zend_extension=\/usr\/local\/ioncube\/ioncube_loader_lin_5.4_ts.so/) }

context "with custom params" do
let (:params) do
Expand Down

0 comments on commit db07fad

Please sign in to comment.