Changes to puppetmaster field in hostgroup not propagating to hosts
Was trying to get puppetrun via mcollective to work and realized that we had not populated the puppetmaster field for any of our hosts. All our hosts belong to host groups so I thought it would be a quick fix just to set the puppetmaster parameter in the relevant hostgroups, but this has no effect on the hosts belonging to the group.
Is this a bug or expected behaviour?
#2 Updated by Dominic Cleal almost 6 years ago
- Status changed from New to Duplicate
It's expected behaviour, somewhat unfortunately. Host groups act as templates of sorts for new hosts, so most attributes (with the exception of Puppet class associations) are copied to the host.
#2436 and other linked issues relate to this. As a workaround, you may want to use the hammer CLI to update hosts individually (you can do a
hammer host list --search "hostgroup = foo" too).