## confdroid_postgresql::server::initdb.pp # Module name: confdroid_postgresql # Author: Arne Teuke (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 }