|
7 | 7 | # This class will be applied during master bootstrap using e.g.
|
8 | 8 | #
|
9 | 9 | # puppet apply \
|
10 |
| -# --exec 'class { "pe_xl::node_manager": |
| 10 | +# --exec 'class { "peadm::node_manager": |
11 | 11 | # environments => ["production", "staging", "development"],
|
12 | 12 | # }'
|
13 | 13 | #
|
14 |
| -class pe_xl::setup::node_manager ( |
| 14 | +class peadm::setup::node_manager ( |
15 | 15 | String[1] $master_host,
|
16 | 16 | String[1] $puppetdb_database_host,
|
17 | 17 | String[1] $compiler_pool_address,
|
|
43 | 43 | # We modify this group's rule such that all PE infrastructure nodes will be
|
44 | 44 | # members.
|
45 | 45 | node_group { 'PE Infrastructure Agent':
|
46 |
| - rule => ['and', ['~', ['trusted', 'extensions', 'pp_role'], '^pe_xl::']], |
| 46 | + rule => ['and', ['~', ['trusted', 'extensions', 'pp_role'], '^peadm::']], |
47 | 47 | }
|
48 | 48 |
|
49 | 49 | # We modify this group to add, as data, the compiler_pool_address only.
|
|
52 | 52 | node_group { 'PE Master':
|
53 | 53 | parent => 'PE Infrastructure',
|
54 | 54 | rule => ['or',
|
55 |
| - ['and', ['=', ['trusted', 'extensions', 'pp_role'], 'pe_xl::compiler']], |
| 55 | + ['and', ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::compiler']], |
56 | 56 | ['=', 'name', $master_host],
|
57 | 57 | ],
|
58 | 58 | data => {
|
|
71 | 71 | parent => 'PE Infrastructure',
|
72 | 72 | environment => 'production',
|
73 | 73 | override_environment => false,
|
74 |
| - rule => ['and', ['=', ['trusted', 'extensions', 'pp_role'], 'pe_xl::puppetdb_database']], |
| 74 | + rule => ['and', ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::puppetdb_database']], |
75 | 75 | classes => {
|
76 | 76 | 'puppet_enterprise::profile::database' => { },
|
77 | 77 | },
|
|
84 | 84 | ensure => present,
|
85 | 85 | parent => 'PE Infrastructure',
|
86 | 86 | rule => ['and',
|
87 |
| - ['=', ['trusted', 'extensions', 'pp_role'], 'pe_xl::master'], |
| 87 | + ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::master'], |
88 | 88 | ['=', ['trusted', 'extensions', 'pp_cluster'], 'A'],
|
89 | 89 | ],
|
90 | 90 | data => {
|
|
103 | 103 | ensure => 'present',
|
104 | 104 | parent => 'PE Master',
|
105 | 105 | rule => ['and',
|
106 |
| - ['=', ['trusted', 'extensions', 'pp_role'], 'pe_xl::compiler'], |
| 106 | + ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::compiler'], |
107 | 107 | ['=', ['trusted', 'extensions', 'pp_cluster'], 'A'],
|
108 | 108 | ],
|
109 | 109 | classes => {
|
|
131 | 131 | classes => {
|
132 | 132 | 'puppet_enterprise::profile::primary_master_replica' => { }
|
133 | 133 | },
|
134 |
| - variables => { 'pe_xl_replica' => true }, |
| 134 | + variables => { 'peadm_replica' => true }, |
135 | 135 | }
|
136 | 136 |
|
137 | 137 | node_group { 'PE Master B':
|
138 | 138 | ensure => present,
|
139 | 139 | parent => 'PE Infrastructure',
|
140 | 140 | rule => ['and',
|
141 |
| - ['=', ['trusted', 'extensions', 'pp_role'], 'pe_xl::master'], |
| 141 | + ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::master'], |
142 | 142 | ['=', ['trusted', 'extensions', 'pp_cluster'], 'B'],
|
143 | 143 | ],
|
144 | 144 | data => {
|
|
155 | 155 | ensure => 'present',
|
156 | 156 | parent => 'PE Master',
|
157 | 157 | rule => ['and',
|
158 |
| - ['=', ['trusted', 'extensions', 'pp_role'], 'pe_xl::compiler'], |
| 158 | + ['=', ['trusted', 'extensions', 'pp_role'], 'peadm::compiler'], |
159 | 159 | ['=', ['trusted', 'extensions', 'pp_cluster'], 'B'],
|
160 | 160 | ],
|
161 | 161 | classes => {
|
|
0 commit comments