- install modules required
- puppetdb
- postgresql
- puppetboard
- python
- create new profiles to manage each item (puppetdb/puppetboard)
- added puppetdb role
- include the puppetdb::master::config in puppetmaster role
- re-organised the puppetfile
- moved python to be managed by the python module
- added postgresql to list of managed repos
34 lines
763 B
Puppet
34 lines
763 B
Puppet
# this is the base class, which will be used by all servers
|
|
class profiles::base (
|
|
Array $ntp_servers,
|
|
) {
|
|
class { 'chrony':
|
|
servers => $ntp_servers,
|
|
}
|
|
case $facts['os']['family'] {
|
|
'RedHat': {
|
|
include profiles::yum::global
|
|
}
|
|
'Debian': {
|
|
include profiles::apt::global
|
|
}
|
|
default: {
|
|
fail("Unsupported OS family ${facts['os']['family']}")
|
|
}
|
|
}
|
|
|
|
# include the base packages profile
|
|
class { 'profiles::base::packages':
|
|
packages => hiera('profiles::base::packages::common'),
|
|
ensure => 'installed',
|
|
}
|
|
|
|
# include the python class
|
|
class { 'python':
|
|
manage_python_package => true,
|
|
manage_venv_package => true,
|
|
manage_pip_package => true,
|
|
use_epel => false,
|
|
}
|
|
}
|