aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp26
1 files changed, 7 insertions, 19 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b2fb4ba..0cf39ed 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,25 +17,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class php {
- # The needed packages: we could also try libapache2-mod-php5filter
- package { [ 'php5', 'php5-mysql', 'php5-sqlite', 'php5-cli', 'php5-curl', 'php5-gmp', 'libapache2-mod-php5' ]:
- ensure => installed,
- }
-
- # Optional packages
- package { [ "php5-gd", "php5-imagick" ]:
- ensure => installed,
- }
-
- # Not available anymore
- package { 'php5-suhosin':
- ensure => absent,
- }
-
- # The needed apache modules
- apache::module { 'php5':
- ensure => present,
- require => Package['libapache2-mod-php5'],
+ case $::lsbdistcodename {
+ 'xenial': {
+ include php::packages::xenial
+ }
+ default: {
+ include php::packages::default
+ }
}
file { '/etc/php5/cli/php.ini':