Puppet Class: confdroid_postgresql::server::initdb

Inherits:
confdroid_postgresql::params
Defined in:
manifests/server/initdb.pp

Summary

Class initiates the database

Overview

confdroid_postgresql::server::initdb.pp Module name: confdroid_postgresql Author: 12ww1160 (12ww1160@confdroid.com)



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/server/initdb.pp', line 6

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
}