|
| 1 | +# Old Versions of Puppet Enterprise (pe) Administration (adm) Module |
| 2 | + |
| 3 | +Prior to the 1.0.0 release of peadm, the pp\_application and pp\_cluster trusted facts were used to identify peadm server roles and availability groups. In order to avoid conflict with customer use of these trusted facts, in 1.0.0 peadm switched to using its own custom OID trusted facts for the purpose instead. |
| 4 | + |
| 5 | +Puppet Enterprise systems deployed with peadm 1.0.0 will use the correct trusted facts, but any system deployed with peadm 0.5.x or older will still be relying on pp\_application and pp\_cluster. It is recommended that for these systems, you either A) continue to use an older version of peadm to perform upgrades; B) deploy new PE infrastructure using a 1.0.0 version of peadm or newer; or C) use the peadm::misc::upgrade\_trusted\_facts plan to re-issue certificates for each server to include the new custom OID trusted facts. |
| 6 | + |
| 7 | + |
| 8 | +Prepare to run the plan against all servers in the PE infrastructure, using a params.json file such as this one: |
| 9 | + |
| 10 | +```json |
| 11 | +{ |
| 12 | + "master_host": "pe-xl-core-0.lab1.puppet.vm", |
| 13 | + "targets": [ |
| 14 | + "pe-xl-core-0.lab1.puppet.vm", |
| 15 | + "pe-xl-core-1.lab1.puppet.vm", |
| 16 | + "pe-xl-core-2.lab1.puppet.vm", |
| 17 | + "pe-xl-core-3.lab1.puppet.vm", |
| 18 | + "pe-xl-compiler-0.lab1.puppet.vm", |
| 19 | + "pe-xl-compiler-1.lab1.puppet.vm" |
| 20 | + ], |
| 21 | +} |
| 22 | +``` |
| 23 | + |
| 24 | +Run the plan. Note that this cannot be done using the Orchestrator transport; it must be performed over ssh. |
| 25 | + |
| 26 | +``` |
| 27 | +bolt plan run peadm::misc::upgrade_trusted_facts --params @params.json |
| 28 | +``` |
| 29 | + |
| 30 | +To complete the conversion, the PE node groups in the console should be updated to use the new trusted fact OIDs, and not pp\_application or pp\_cluster anymore. This can be accomplished by re-applying the peadm::setup::node\_manager class to the master. |
| 31 | + |
| 32 | +Tip: use the `--noop` flag to validate that the changes which will be made are the changes expected before applying the configuration change. |
| 33 | + |
| 34 | +``` |
| 35 | +bolt apply --target pe-xl-core-0.lab1.puppet.vm -e <<EOF |
| 36 | +
|
| 37 | + file { 'node_manager.yaml': |
| 38 | + ensure => file, |
| 39 | + mode => '0644', |
| 40 | + path => Deferred('peadm::node_manager_yaml_location'), |
| 41 | + content => epp('peadm/node_manager.yaml.epp', { |
| 42 | + server => 'pe-xl-core-0.lab1.puppet.vm',, |
| 43 | + }), |
| 44 | + } |
| 45 | +
|
| 46 | + class { 'peadm::setup::node_manager': |
| 47 | + master_host => 'pe-xl-core-0.lab1.puppet.vm', |
| 48 | + master_replica_host => 'pe-xl-core-2.lab1.puppet.vm', |
| 49 | + puppetdb_database_host => 'pe-xl-core-1.lab1.puppet.vm', |
| 50 | + puppetdb_database_replica_host => 'pe-xl-core-3.lab1.puppet.vm', |
| 51 | + compiler_pool_address => 'puppet.lab1.puppet.vm', |
| 52 | + require => File['node_manager.yaml'], |
| 53 | + } |
| 54 | +
|
| 55 | +EOF |
| 56 | +``` |
0 commit comments