diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-22 21:18:55 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-22 21:18:55 +0200 |
commit | 0958ccf39a52491adb43a08545351df2bf5a4abd (patch) | |
tree | f248d2b0593606693179e4ecbc645d702b37aaca /modules | |
parent | e89e896f4eb648d69fae2cfaa9c40c9944711556 (diff) | |
download | Puppet-0958ccf39a52491adb43a08545351df2bf5a4abd.tar.gz Puppet-0958ccf39a52491adb43a08545351df2bf5a4abd.tar.zst Puppet-0958ccf39a52491adb43a08545351df2bf5a4abd.zip |
Add replication for cryptoportfolio postgresql
Diffstat (limited to 'modules')
-rw-r--r-- | modules/role/manifests/cryptoportfolio/postgresql.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/role/manifests/cryptoportfolio/postgresql.pp b/modules/role/manifests/cryptoportfolio/postgresql.pp index cc4d2a9..38661a8 100644 --- a/modules/role/manifests/cryptoportfolio/postgresql.pp +++ b/modules/role/manifests/cryptoportfolio/postgresql.pp | |||
@@ -104,13 +104,22 @@ class role::cryptoportfolio::postgresql inherits role::cryptoportfolio { | |||
104 | order => "05-01", | 104 | order => "05-01", |
105 | } | 105 | } |
106 | 106 | ||
107 | postgresql::server::pg_hba_rule { 'allow TCP access to replication user from immae.eu for replication': | ||
108 | type => 'hostssl', | ||
109 | database => 'replication', | ||
110 | user => $pg_user_replication, | ||
111 | address => 'immae.eu', | ||
112 | auth_method => 'md5', | ||
113 | order => "05-01", | ||
114 | } | ||
115 | |||
107 | postgresql::server::pg_hba_rule { 'allow TCP access to replication user from immae.eu': | 116 | postgresql::server::pg_hba_rule { 'allow TCP access to replication user from immae.eu': |
108 | type => 'hostssl', | 117 | type => 'hostssl', |
109 | database => $pg_db, | 118 | database => $pg_db, |
110 | user => $pg_user_replication, | 119 | user => $pg_user_replication, |
111 | address => 'immae.eu', | 120 | address => 'immae.eu', |
112 | auth_method => 'md5', | 121 | auth_method => 'md5', |
113 | order => "05-01", | 122 | order => "05-02", |
114 | } | 123 | } |
115 | 124 | ||
116 | } | 125 | } |