]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
PHP 5.6 alternative on xenial
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 28 Jun 2016 18:32:58 +0000 (15:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 28 Jun 2016 18:32:58 +0000 (15:32 -0300)
manifests/packages/xenial.pp

index dbc213a4f872169d8387cb1a453bb0205b370445..ef5cb637eabffdb69a0e4fa27cd1bfd90e48d3f1 100644 (file)
@@ -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'],
+  }
 }