52 lines
No EOL
1 KiB
Puppet
52 lines
No EOL
1 KiB
Puppet
# Class: rhizo_base::postgresql
|
|
#
|
|
# This module manages the PostgreSQL database
|
|
#
|
|
# Parameters: none
|
|
#
|
|
# Actions:
|
|
#
|
|
# Requires: see Modulefile
|
|
#
|
|
# 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,
|
|
version => '9.3',
|
|
}->
|
|
class { 'postgresql::server':
|
|
}
|
|
|
|
}
|
|
|
|
class rhizo_base::postgresql::debian inherits rhizo_base::postgresql::common {
|
|
|
|
class { 'postgresql::globals':
|
|
manage_package_repo => true,
|
|
version => '9.4',
|
|
}->
|
|
class { 'postgresql::server':
|
|
}
|
|
|
|
} |