Multi-OS Version
This commit is contained in:
parent
15630ec66a
commit
b353f4410b
19 changed files with 3077 additions and 49 deletions
|
@ -11,6 +11,11 @@
|
|||
# Sample Usage:
|
||||
#
|
||||
class rhizo_base::packages {
|
||||
include "rhizo_base::packages::$operatingsystem"
|
||||
}
|
||||
|
||||
|
||||
class rhizo_base::packages::common {
|
||||
|
||||
package { ['mosh', 'git', 'openvpn', 'lm-sensors', 'runit', 'sqlite3',
|
||||
'libffi-dev', 'apcupsd', 'expect', 'gawk']:
|
||||
|
@ -18,6 +23,16 @@ class rhizo_base::packages {
|
|||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
|
||||
file { '/etc/php5/apache2/php.ini':
|
||||
ensure => present,
|
||||
source => "puppet:///modules/rhizo_base/etc/php5/apache2/php.ini.$operatingsystem"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
class rhizo_base::packages::ubuntu inherits rhizo_base::packages::common {
|
||||
|
||||
package { ['puppet', 'puppet-common']:
|
||||
ensure => '3.8.1-1puppetlabs1',
|
||||
}
|
||||
|
@ -33,10 +48,17 @@ class rhizo_base::packages {
|
|||
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.6'],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class rhizo_base::packages::debian inherits rhizo_base::packages::common {
|
||||
package { ['apache2','libapache2-mod-php5',
|
||||
'rrdtool', 'python-psycopg2',
|
||||
'python-pysqlite2', 'php5', 'php5-pgsql',
|
||||
'php5-curl', 'php5-cli', 'php5-gd',
|
||||
'python-yaml', 'python-formencode', 'python-unidecode',
|
||||
'python-dateutil', 'sudo', 'apt-transport-https']:
|
||||
ensure => installed,
|
||||
require => Class['rhizo_base::apt'],
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue