Multi-OS Version

This commit is contained in:
Wile E. Coyote 2017-01-24 21:12:53 +00:00
parent 15630ec66a
commit b353f4410b
19 changed files with 3077 additions and 49 deletions

View file

@ -10,12 +10,26 @@
#
# Sample Usage:
#
class rhizo_base::postgresql {
include "rhizo_base::postgresql::$operatingsystem"
}
class rhizo_base::postgresql::common {
$pgsql_db = $rhizo_base::pgsql_db
$pgsql_user = $rhizo_base::pgsql_user
$pgsql_pwd = $rhizo_base::pgsql_pwd
$pgsql_host = $rhizo_base::pgsql_host
postgresql::server::db { $pgsql_db:
user => $pgsql_user,
password => postgresql_password($pgsql_user, $pgsql_pwd),
}
}
class rhizo_base::postgresql::ubuntu inherits rhizo_base::postgresql::common {
class { 'postgresql::globals':
manage_package_repo => true,
@ -24,8 +38,15 @@ class rhizo_base::postgresql {
class { 'postgresql::server':
}
postgresql::server::db { $pgsql_db:
user => $pgsql_user,
password => postgresql_password($pgsql_user, $pgsql_pwd),
}
class rhizo_base::postgresql::debian inherits rhizo_base::postgresql::common {
class { 'postgresql::globals':
manage_package_repo => true,
version => '9.4',
}->
class { 'postgresql::server':
}
}
}