Open vchepkov opened 4 years ago
So node_group
is my code and pe_node_group
is Puppet's opinionated implementation of my module. I intentionally replaced environment_trumps
with override_environment
because the PE Console at the time read "Override Environment" so to fall inline with that, I decidedly replaced that.
https://github.com/WhatsARanjit/puppet-node_manager/blob/master/lib/puppet/provider/node_group/https.rb#L30
It seems there are some ramifications present from that now that usage is increased. What is your particular usecase @vchepkov ? Thanks.
I use it to create classification groups in the console. for example:
node_group { 'PE Primary Master Agent':
ensure => 'present',
classes => {
'puppet_enterprise::profile::agent' => {
'server_list' => ['primary.localdomain:8140']
}
},
parent => 'PE Infrastructure Agent',
rule => ['or', ['=', 'name', 'primary.localdomain']],
}
As a workaround for bug in PE, since if puppetserver is down on HA master and agent fails over to replica - "bad things happen"
I suppose to I can use pe_node_group instead, but then I would have to somehow supply PE code to my validation tool and I'd rather not do it. If these resources won't conflict with each other, I am fine with the way it is now, it was more of an FYI ticket.
Noticed this on PE2019.2.2. Attribute _overrideenvironment seems been renamed to _environmenttrumps, but more importantly, parents are not determined properly.
Here is partial diff between node_group and pe_node_group output: