Puppet Class: phppgadmin::params

Inherited by:
phppgadmin
Defined in:
manifests/params.pp

Overview

Class: phppgadmin::params

Variables

Module variables

db_host

PostgreSQL database host - configured in /etc/phpPgAdmin/config.inc.php

db_port

PostgreSQL database port - configured in /etc/phpPgAdmin/config.inc.php

Authors

Shantanu Pavgi <knowshantanu@gmail.com>

Copyright 2013 Shantanu Pavgi.



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'manifests/params.pp', line 21

class phppgadmin::params {

  # Supported OS
  $supported_os = ['^CentOS$']
  validate_re($operatingsystem,$supported_os)

  $install_apache     = false
  $db_host            = ''
  $db_port            = '5432'

  $phppgadmin_package = $operatingsystem ? {
    CentOS  => 'phpPgAdmin',
    default => undef,
  }

  $phppgadmin_conf_file = $operatingsystem ? {
    CentOS  => '/etc/phpPgAdmin/config.inc.php',
    default => undef,
  }

  $http_conf_file = $operatingsystem ? {
    CentOS  => '/etc/httpd/conf.d/phpPgAdmin.conf',
    default => undef,
  }
}