File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
manifests/server/instance Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 86
86
}
87
87
88
88
postgresql::server::pg_hba_rule {
89
- ' local access as postgres user' :
89
+ " local access as postgres user for instance ${name} " :
90
90
type => ' local' ,
91
91
user => $user ,
92
92
auth_method => ' ident' ,
93
93
auth_option => $local_auth_option ,
94
94
order => 1;
95
95
96
- ' local access to database with same name' :
96
+ " local access to database with same name for instance ${name} " :
97
97
type => ' local' ,
98
98
auth_method => ' ident' ,
99
99
auth_option => $local_auth_option ,
100
100
order => 2;
101
101
102
- ' allow localhost TCP access to postgresql user' :
102
+ " allow localhost TCP access to postgresql user for instance ${name} " :
103
103
type => ' host' ,
104
104
user => $user ,
105
105
address => ' 127.0.0.1/32' ,
106
106
auth_method => ' md5' ,
107
107
order => 3;
108
108
109
- ' deny access to postgresql user' :
109
+ " deny access to postgresql user for instance ${name} " :
110
110
type => ' host' ,
111
111
user => $user ,
112
112
address => $ip_mask_deny_postgres_user ,
113
113
auth_method => ' reject' ,
114
114
order => 4;
115
115
116
- ' allow access to all users' :
116
+ " allow access to all users for instance ${name} " :
117
117
type => ' host' ,
118
118
address => $ip_mask_allow_all_users ,
119
119
auth_method => ' md5' ,
120
120
order => 100;
121
121
122
- ' allow access to ipv6 localhost' :
122
+ " allow access to ipv6 localhost for instance ${name} " :
123
123
type => ' host' ,
124
124
address => ' ::1/128' ,
125
125
auth_method => ' md5' ,
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class { 'postgresql::server':
173
173
end
174
174
175
175
it 'has hba rule default' do
176
- expect ( subject ) . to contain_postgresql__server__pg_hba_rule ( 'local access as postgres user' )
176
+ expect ( subject ) . to contain_postgresql__server__pg_hba_rule ( 'local access as postgres user for instance main ' )
177
177
end
178
178
179
179
it 'has hba rule ipv4acls' do
You can’t perform that action at this time.
0 commit comments