|
| 1 | +# |
| 2 | +# @param node_group_environment environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production |
| 3 | +# |
1 | 4 | plan peadm::add_database( |
2 | 5 | Peadm::SingleTargetSpec $targets, |
3 | 6 | Peadm::SingleTargetSpec $primary_host, |
|
10 | 13 | 'cleanup-db', |
11 | 14 | 'finalize']] $begin_at_step = undef, |
12 | 15 | Optional[Boolean] $is_migration = false, |
| 16 | + String[1] $node_group_environment = peadm::get_node_group_environment($primary_host), |
13 | 17 | ) { |
14 | 18 | $primary_target = peadm::get_targets($primary_host, 1) |
15 | 19 | $postgresql_target = peadm::get_targets($targets, 1) |
|
98 | 102 | run_plan('peadm::subplans::component_install', $postgresql_target, |
99 | 103 | primary_host => $primary_target, |
100 | 104 | avail_group_letter => $avail_group_letter, |
101 | | - role => 'puppet/puppetdb-database' |
| 105 | + role => 'puppet/puppetdb-database', |
102 | 106 | ) |
103 | 107 | } |
104 | 108 |
|
|
137 | 141 | run_plan('peadm::util::update_classification', $primary_target, |
138 | 142 | postgresql_a_host => $host, |
139 | 143 | postgresql_b_host => $host, |
140 | | - peadm_config => $peadm_config |
| 144 | + peadm_config => $peadm_config, |
| 145 | + node_group_environment => $node_group_environment, |
141 | 146 | ) |
142 | 147 | } else { |
143 | 148 | run_plan('peadm::util::update_classification', $primary_target, |
144 | 149 | postgresql_a_host => $avail_group_letter ? { 'A' => $postgresql_host, default => undef }, |
145 | 150 | postgresql_b_host => $avail_group_letter ? { 'B' => $postgresql_host, default => undef }, |
146 | | - peadm_config => $peadm_config |
| 151 | + peadm_config => $peadm_config, |
| 152 | + node_group_environment => $node_group_environment, |
147 | 153 | ) |
148 | 154 | } |
149 | 155 | } |
|
0 commit comments