|
69 | 69 | order => '004', |
70 | 70 | } |
71 | 71 |
|
72 | | - # ipv4acls are passed as an array of rule strings, here we transform |
73 | | - # them into a resources hash, and pass the result to create_resources |
74 | | - $ipv4acl_resources = postgresql_acls_to_resources_hash($ipv4acls, |
75 | | - 'ipv4acls', 10) |
76 | | - create_resources('postgresql::server::pg_hba_rule', $ipv4acl_resources) |
77 | | - |
78 | 72 | postgresql::server::pg_hba_rule { 'allow access to all users': |
79 | 73 | type => 'host', |
80 | 74 | address => $ip_mask_allow_all_users, |
|
87 | 81 | auth_method => 'md5', |
88 | 82 | order => '101', |
89 | 83 | } |
90 | | - |
91 | | - # ipv6acls are passed as an array of rule strings, here we transform |
92 | | - # them into a resources hash, and pass the result to create_resources |
93 | | - $ipv6acl_resources = postgresql_acls_to_resources_hash($ipv6acls, |
94 | | - 'ipv6acls', 102) |
95 | | - create_resources('postgresql::server::pg_hba_rule', $ipv6acl_resources) |
96 | 84 | } |
| 85 | + |
| 86 | + # ipv4acls are passed as an array of rule strings, here we transform |
| 87 | + # them into a resources hash, and pass the result to create_resources |
| 88 | + $ipv4acl_resources = postgresql_acls_to_resources_hash($ipv4acls, |
| 89 | + 'ipv4acls', 10) |
| 90 | + create_resources('postgresql::server::pg_hba_rule', $ipv4acl_resources) |
| 91 | + |
| 92 | + |
| 93 | + # ipv6acls are passed as an array of rule strings, here we transform |
| 94 | + # them into a resources hash, and pass the result to create_resources |
| 95 | + $ipv6acl_resources = postgresql_acls_to_resources_hash($ipv6acls, |
| 96 | + 'ipv6acls', 102) |
| 97 | + create_resources('postgresql::server::pg_hba_rule', $ipv6acl_resources) |
97 | 98 | } |
98 | 99 |
|
99 | 100 | # We must set a "listen_addresses" line in the postgresql.conf if we |
|
0 commit comments