You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -468,6 +475,8 @@ This value defaults to `false`. Many distros ship with a fairly restrictive fire
468
475
####`manage_pg_hba_conf`
469
476
This value defaults to `true`. Whether or not manage the pg_hba.conf. If set to `true`, puppet will overwrite this file. If set to `false`, puppet will not modify the file.
470
477
478
+
####`manage_pg_ident_conf`
479
+
This value defaults to `true`. Whether or not manage the pg_ident.conf. If set to `true`, puppet will overwrite this file. If set to `false`, puppet will not modify the file.
471
480
472
481
###Class: postgresql::client
473
482
@@ -667,6 +676,24 @@ This would create a ruleset in `pg_hba.conf` similar to:
667
676
# Order: 150
668
677
host app app 200.1.2.0/24 md5
669
678
679
+
###Resource: postgresql::server::pg\_ident\_rule
680
+
This defined type allows you to create user name maps for `pg_ident.conf`. For more details see the [PostgreSQL documentation](http://www.postgresql.org/docs/9.4/static/auth-username-maps.html).
681
+
682
+
For example:
683
+
684
+
postgresql::server::pg_ident_rule{ 'Map the SSL certificate of the backup server as a replication user':
685
+
map_name => 'sslrepli',
686
+
system_username => 'repli1.example.com',
687
+
database_username => 'replication',
688
+
}
689
+
690
+
This would create a user name map in `pg_ident.conf` similar to:
691
+
692
+
# Rule Name: Map the SSL certificate of the backup server as a replication user
693
+
# Description: none
694
+
# Order: 150
695
+
sslrepli repli1.example.com replication
696
+
670
697
####`namevar`
671
698
A unique identifier or short description for this rule. The namevar doesn't provide any functional usage, but it is stored in the comments of the produced `pg_hba.conf` so the originating resource can be identified.
fail('postgresql::server::manage_pg_ident_conf has been disabled, so this resource is now unused and redundant, either enable that option or remove this resource from your manifests')
0 commit comments