-# so do things by hand for now
- ensure_packages ( "postgresql", { ensure => 'installed' })
- # create role, create db owned by role, add extension
+ include postgres::backup_source
+
+ $pg_config_options = {
+ 'track_counts' => 'yes',
+ 'archive_mode' => 'yes',
+ 'wal_level' => 'archive',
+ 'max_wal_senders' => '3',
+ 'archive_timeout' => '1h',
+ 'archive_command' => '/usr/local/bin/pg-backup-file main WAL %p',
+ 'ssl' => 'on',
+ 'ssl_cert_file' => '/etc/ssl/debian/certs/thishost-server.crt',
+ 'ssl_key_file' => '/etc/ssl/private/thishost-server.key',
+ }
+ $pg_config_options.each |String $key, String $value| {
+ postgresql_conf { $key:
+ value => $value,
+ target => $postgresql::params::postgresql_conf_path,
+ notify => Service['postgresqld'],
+ }
+ }