|
77 | 77 | parent => 'PE Infrastructure', |
78 | 78 | data => $compiler_pool_address_data, |
79 | 79 | variables => { 'pe_master' => true }, |
| 80 | + rule => ['or', |
| 81 | + ['=', ['trusted', 'extensions', 'pp_auth_role'], 'legacy_compiler'], |
| 82 | + ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
| 83 | + ], |
80 | 84 | } |
81 | 85 |
|
82 | 86 | # PE Compiler group comes from default PE and already has the pe compiler role |
83 | 87 | node_group { 'PE Compiler': |
84 | 88 | parent => 'PE Master', |
85 | | - rule => ['and', ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'false']], |
| 89 | + rule => ['and', ['=', ['trusted', 'extensions', peadm::oid('pp_auth_role')], 'pe_compiler']], |
86 | 90 | } |
87 | 91 |
|
88 | 92 | # This group should pin the primary, and also map to any pe-postgresql nodes |
|
121 | 125 | rule => ['and', |
122 | 126 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
123 | 127 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'A'], |
124 | | - ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'false'], |
125 | 128 | ], |
126 | 129 | classes => { |
127 | 130 | 'puppet_enterprise::profile::puppetdb' => { |
|
180 | 183 | rule => ['and', |
181 | 184 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
182 | 185 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'B'], |
183 | | - ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'false'], |
184 | 186 | ], |
185 | 187 | classes => { |
186 | 188 | 'puppet_enterprise::profile::puppetdb' => { |
|
203 | 205 |
|
204 | 206 | node_group { 'PE Legacy Compiler': |
205 | 207 | parent => 'PE Master', |
206 | | - rule => ['and', |
207 | | - ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
208 | | - ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
209 | | - ], |
| 208 | + rule => ['=', ['trusted', 'extensions', 'pp_auth_role'], 'legacy_compiler'], |
210 | 209 | classes => { |
211 | 210 | 'puppet_enterprise::profile::master' => { |
212 | 211 | 'puppetdb_host' => [$internal_compiler_a_pool_address, $internal_compiler_b_pool_address].filter |$_| { $_ }, |
|
221 | 220 | ensure => 'present', |
222 | 221 | parent => 'PE Legacy Compiler', |
223 | 222 | rule => ['and', |
224 | | - ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
| 223 | + ['=', ['trusted', 'extensions', 'pp_auth_role'], 'legacy_compiler'], |
225 | 224 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'A'], |
226 | | - ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
227 | 225 | ], |
228 | 226 | classes => { |
229 | 227 | 'puppet_enterprise::profile::master' => { |
|
245 | 243 | ensure => 'present', |
246 | 244 | parent => 'PE Legacy Compiler', |
247 | 245 | rule => ['and', |
248 | | - ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
| 246 | + ['=', ['trusted', 'extensions', 'pp_auth_role'], 'legacy_compiler'], |
249 | 247 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'B'], |
250 | | - ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
251 | 248 | ], |
252 | 249 | classes => { |
253 | 250 | 'puppet_enterprise::profile::master' => { |
|
0 commit comments