puppet/modules/rhizo_base/manifests/packages.pp
Wile E. Coyote b144dd44e1 Add scheduling
Dramatically reduce the puppet run time and use of resources
by not running everything on every run.
This will probably need tuning over time...
2018-11-17 09:07:16 +00:00

81 lines
No EOL
2.1 KiB
Puppet

# Class: rhizo_base::packages
#
# This module manages the packages not included in other modules
#
# Parameters: none
#
# Actions:
#
# Requires: see Modulefile
#
# Sample Usage:
#
class rhizo_base::packages {
include "rhizo_base::packages::$operatingsystem"
}
class rhizo_base::packages::common {
package { ['python-python-smpplib']:
ensure => purged,
require => Class['rhizo_base::apt'],
}
package { ['mosh', 'git', 'openvpn', 'lm-sensors', 'runit', 'sqlite3',
'libffi-dev', 'apcupsd', 'expect', 'gawk', 'swig', 'g++',
'python-smpplib', 'libcdk5', 'websocketd', 'osmo-meas' ]:
schedule => 'weekly',
ensure => installed,
require => Class['rhizo_base::apt'],
}
}
class rhizo_base::packages::ubuntu inherits rhizo_base::packages::common {
package { ['puppet', 'puppet-common']:
ensure => '3.8.1-1puppetlabs1',
}
#Apache2 + PHP + Python
package { ['apache2','libapache2-mod-php5.6',
'rrdtool', 'python-twisted-web', 'python-psycopg2',
'python-pysqlite2', 'php5.6', 'php5.6-pgsql',
'php5.6-curl', 'php5.6-cli', 'php5.6-gd', 'python-corepost', 'php5.6-xml',
'python-yaml', 'python-formencode', 'python-unidecode',
'python-dateutil']:
schedule => 'weekly',
ensure => installed,
require => Class['rhizo_base::apt'],
}
file { '/etc/php/5.6/apache2/php.ini':
ensure => present,
source => "puppet:///modules/rhizo_base/etc/php5/apache2/php.ini.$operatingsystem"
}
}
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',
'sngrep' ]:
schedule => 'weekly',
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.$operatingsystem"
}
}