Feature #1616
closedAbility to add default class(es) to all systems
Description
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:
1) OS
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).
Files
Updated by Corey Osman over 12 years 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 over 11 years 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.
Updated by Ohad Levy about 10 years ago
- Description updated (diff)
- Status changed from New to Feedback
- Assignee deleted (
Ohad Levy)
Does the config groups solve this issue? granted you still need to assign at least one config group to your hosts, but it does not enforce you to inherit other values from hostgroup?
if the answer is no, does marking one config groups as default make sense?
Updated by Anonymous over 7 years ago
- Status changed from Feedback to Resolved
can be implemented by default host/config groups.