aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-28 15:32:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-28 15:32:58 -0300
commit66468a58e5250aa64fd08e63c738c4c8b54eab41 (patch)
treeae9edda645d87d8968bbe122a5a8054254152463
parent015ed988efe22d1c524ed39352edc19fc259ae27 (diff)
downloadpuppet-php-66468a58e5250aa64fd08e63c738c4c8b54eab41.tar.gz
puppet-php-66468a58e5250aa64fd08e63c738c4c8b54eab41.tar.bz2
PHP 5.6 alternative on xenial
-rw-r--r--manifests/packages/xenial.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/packages/xenial.pp b/manifests/packages/xenial.pp
index dbc213a..ef5cb63 100644
--- a/manifests/packages/xenial.pp
+++ b/manifests/packages/xenial.pp
@@ -44,4 +44,12 @@ class php::packages::xenial {
ensure => present,
require => Package['libapache2-mod-php5.6'],
}
+
+ # Default alternative
+ file { "/etc/alternatives/php":
+ ensure => "/usr/bin/php5.6",
+ owner => root,
+ group => root,
+ require => Package['php5'],
+ }
}