## postgresql_cd::params.pp # Module name: postgresql_cd # Author: Arne Teuke (arne_teuke@confdroid.com) # @param [string] pl_server_fqdn the fqdn of the postgresql server. Any other # system will be configured as client # @param [string] reqpackages_server the packages for the server # @param [string] reqpackages_client the packages for the client # @param [string] pkg_ensure which version of the packages to install, i.e. # 'latest', 'present' '13.20', # @param [string] pl_fw_rule_order the prefix for the firewall rule # @param [string] pl_fw_port the port to use for service and firewall # @param [string] pl_source_range the source range for allowed clients # @param [boolean] pl_enable_fw whether to enable the firewall # @param [string] pl_listen_address which address should the service listen on # @summary Class contains all parameters for the postgresql_cd module. ############################################################################## class postgresql_cd::params ( String $pl_server_fqdn = undef, # installation String $reqpackages_server = 'postgresql-server', String $reqpackages_client = 'postgresql', String $pkg_ensure = 'latest', # firewall String $pl_fw_rule_order = '50', String $pl_fw_port = '5432', String $pl_source_range = '0.0.0.0/0', Boolean $pl_enable_fw = true, # main config String $pl_listen_address = '*', ) { $fqdn = $facts['networking']['fqdn'] $domain = $facts['networking']['domain'] $os_name = $facts['os']['name'] $os_release = $facts['os']['release']['major'] # Service $pl_service = 'postgresql' # Directories $pl_data_dir = '/var/lib/pgsql/data/' # includes must be last include postgresql_cd::main::config }