File tree Expand file tree Collapse file tree 5 files changed +8
-0
lines changed Expand file tree Collapse file tree 5 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 77#
88# @see https://www.puppet.com/docs/pe/latest/upgrade_pe#update_environment
99#
10+ # @author Tim Meusel <tim@bastelfreak.de>
11+ #
1012function peadm::get_node_group_environment(Peadm::SingleTargetSpec $primary ) {
1113 $peconf = peadm::get_pe_conf(get_target($primary ))
1214 # if both are set, they need to be set to the same value
Original file line number Diff line number Diff line change 33 String[1] $primary_host,
44 Optional[String] $internal_compiler_a_pool_address = undef ,
55 Optional[String] $internal_compiler_b_pool_address = undef ,
6+ String[1] $node_group_environment = ' production' ,
67) {
78 Node_group {
89 purge_behavior => none,
10+ environment => $node_group_environment ,
911 }
1012
1113 node_group { 'PE Legacy Compiler' :
Original file line number Diff line number Diff line change 33 Peadm::SingleTargetSpec $primary_host ,
44 TargetSpec $legacy_hosts ,
55 Optional[Boolean] $remove_pdb = true ,
6+ String[1] $node_group_environment = peadm::get_node_group_environment($primary_host ),
67) {
78 $primary_target = peadm::get_targets($primary_host , 1)
89 $convert_legacy_compiler_targets = peadm::get_targets($legacy_hosts )
3435 },
3536 internal_compiler_a_pool_address => getvar(' cluster.params.internal_compiler_a_pool_address' ),
3637 internal_compiler_b_pool_address => getvar(' cluster.params.internal_compiler_b_pool_address' ),
38+ node_group_environment => $node_group_environment ,
3739 require => Class[' peadm::setup::node_manager_yaml' ],
3840 }
3941 }
Original file line number Diff line number Diff line change 8585 ' legacy_compilers' => $legacy_compilers ,
8686 ' primary_postgresql_host' => $primary_postgresql_host ,
8787 ' replica_postgresql_host' => $replica_postgresql_host ,
88+ ' node_group_environment' => $node_group_environment ,
8889 ' version' => $version ,
8990 })
9091
Original file line number Diff line number Diff line change 7171 ' compiler_hosts' => $compiler_hosts ,
7272 ' primary_postgresql_host' => $primary_postgresql_host ,
7373 ' replica_postgresql_host' => $replica_postgresql_host ,
74+ ' node_group_environment' => $node_group_environment ,
7475 ' version' => $version ,
7576 })
7677
You can’t perform that action at this time.
0 commit comments