Move Apache+PHP to packages.pp
This commit is contained in:
parent
2ce1acdd88
commit
14b4ad08c1
2 changed files with 19 additions and 21 deletions
|
@ -271,7 +271,6 @@ class rhizo_base {
|
||||||
require => Vcsrepo['/var/rhizomatica'],
|
require => Vcsrepo['/var/rhizomatica'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#Python modules
|
#Python modules
|
||||||
class { 'python':
|
class { 'python':
|
||||||
version => 'system',
|
version => 'system',
|
||||||
|
@ -279,7 +278,6 @@ class rhizo_base {
|
||||||
dev => true,
|
dev => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
python::pip { 'riak':
|
python::pip { 'riak':
|
||||||
ensure => '2.0.3',
|
ensure => '2.0.3',
|
||||||
pkgname => 'riak',
|
pkgname => 'riak',
|
||||||
|
@ -297,23 +295,6 @@ class rhizo_base {
|
||||||
require => Class['python'],
|
require => Class['python'],
|
||||||
}
|
}
|
||||||
|
|
||||||
#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'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/apcupsd/apcupsd.conf':
|
file { '/etc/apcupsd/apcupsd.conf':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => 'puppet:///modules/rhizo_base/etc/apcupsd/apcupsd.conf',
|
source => 'puppet:///modules/rhizo_base/etc/apcupsd/apcupsd.conf',
|
||||||
|
@ -334,4 +315,4 @@ class rhizo_base {
|
||||||
ip => '10.23.0.11',
|
ip => '10.23.0.11',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,21 @@ class rhizo_base::packages {
|
||||||
ensure => '3.8.1-1puppetlabs1',
|
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'],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue