|
121 | 121 | rule => ['and', |
122 | 122 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
123 | 123 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'A'], |
| 124 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'false'], |
124 | 125 | ], |
125 | 126 | classes => { |
126 | 127 | 'puppet_enterprise::profile::puppetdb' => { |
|
179 | 180 | rule => ['and', |
180 | 181 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
181 | 182 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'B'], |
| 183 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'false'], |
182 | 184 | ], |
183 | 185 | classes => { |
184 | 186 | 'puppet_enterprise::profile::puppetdb' => { |
|
216 | 218 | 'pe_master' => true, |
217 | 219 | }, |
218 | 220 | } |
| 221 | + |
| 222 | + # Configure the A pool for legacy compilers. There are up to two pools for DR, each |
| 223 | + # having an affinity for one "availability zone" or the other. |
| 224 | + node_group { 'PE Legacy Compiler Group A': |
| 225 | + ensure => 'present', |
| 226 | + parent => 'PE Legacy Compiler', |
| 227 | + rule => ['and', |
| 228 | + ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
| 229 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'A'], |
| 230 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
| 231 | + ], |
| 232 | + } |
| 233 | + |
| 234 | + # Configure the B pool for legacy compilers. There are up to two pools for DR, each |
| 235 | + # having an affinity for one "availability zone" or the other. |
| 236 | + node_group { 'PE Legacy Compiler Group B': |
| 237 | + ensure => 'present', |
| 238 | + parent => 'PE Legacy Compiler', |
| 239 | + rule => ['and', |
| 240 | + ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
| 241 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'B'], |
| 242 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
| 243 | + ], |
| 244 | + } |
219 | 245 | } |
0 commit comments