Move Apache+PHP to packages.pp

This commit is contained in:
Keith 2017-01-14 15:45:27 +01:00
parent 2ce1acdd88
commit 14b4ad08c1
2 changed files with 19 additions and 21 deletions

View file

@ -22,4 +22,21 @@ class rhizo_base::packages {
ensure => '3.8.1-1puppetlabs1',
}
}
#Apache2 + PHP + Python
package { ['apache2','libapache2-mod-php5',
'rrdtool', 'python-twisted-web', 'python-psycopg2',
'python-pysqlite2', 'php5', 'php5-pgsql',
'php5-curl', 'php5-cli', 'php5-gd', 'python-corepost',
'python-yaml', 'python-formencode', 'python-unidecode',
'python-dateutil']:
ensure => installed,
require => Class['rhizo_base::apt'],
}
file { '/etc/php5/apache2/php.ini':
ensure => present,
source => 'puppet:///modules/rhizo_base/etc/php5/apache2/php.ini',
require => Package['libapache2-mod-php5'],
}
}