aboutsummaryrefslogtreecommitdiff
path: root/manifests/packages/xenial.pp
blob: 5effcae82c70200cd7ec3336436a7964083809f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class php::packages::xenial {
  # The needed packages: we could also try libapache2-mod-php5.6filter
  package { 'php5':
    name => 'php5.6',
  }

  package { 'php5-cli':
    name => 'php5.6-cli',
  }

  package { [ 'php5.6-mysql', 'php5.6-sqlite', 'php5.6-curl', 'php5.6-gmp', 'libapache2-mod-php5.6' ]:
    ensure => installed,
  }

  # Optional packages
  package { [ "php5.6-gd", "php5.6-imagick" ]:
    ensure => installed,
  }

  # Not available anymore
  package { 'php5.6-suhosin':
    ensure => absent,
  }

  # The needed apache modules
  apache::module { 'php5.6':
    ensure  => present,
    require => Package['libapache2-mod-php5.6'],
  }
}