Ability to add default class(es) to all systems
|Assigned to:||Ohad Levy||% Done:||
It seems to me that most people have a class or a set of classes that they like to have applied to all of their systems. I think it would be great if foreman could provide a way to have this.
For me personally I just need to have the ability to apply 1 class to all systems, but I could see having additional functionality being advantageous. What I mean is maybe adding a default class based on:
2) Some fact value
Adding logic could make it more difficult to implement, so I would say for now just a way to assign a collection of classes to all systems would be great.
Previously to support this functionality I was defining those classes in my site.pp, but it would be better to have the ability for the ENC to be a single source if used. Currently I'm 'hacking' this functionality with the attached patch (based on 0.4).
Updated by Corey Osman about 1 year ago
I would really like to see a setting in foreman for default group.
Once a user setups up a default group they can say any node not belonging to this group will be assigned automatically.
The user can opt to make every host automatically get assigned to a default group in which the user would setup the group themselves and assign puppet classes to that group.
Then when puppet uses ENC script to get the YAML code a default group would be assigned containing important first time puppet classes.
Updated by David Schmitt 3 months ago
Steve Traylen wrote:
Duplicate of #1527.
Doesn't look like that to me. This case is concerned with adding a hostgroup for nodes which do not have any host group set. This here is very nice if nodes pop up "unannounced" e.g. when being kickstarted from satellite, but still need a basic configuration.