21 lines
628 B
Puppet
21 lines
628 B
Puppet
## confdroid_postgresql::server::initdb.pp
|
|
# Module name: confdroid_postgresql
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class initiates the database
|
|
###############################################################################
|
|
class confdroid_postgresql::server::initdb (
|
|
|
|
) inherits confdroid_postgresql::params {
|
|
if $fqdn == $pl_server_fqdn {
|
|
require confdroid_postgresql::main::install
|
|
|
|
exec { 'init_pgsql_db':
|
|
command => 'postgresql-setup --initdb',
|
|
creates => "${pl_data_dir}/PG_VERSION",
|
|
path => ['/sbin','/usr/bin'],
|
|
}
|
|
}
|
|
|
|
include confdroid_postgresql::main::files
|
|
}
|