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