Bug #3551
closed
Foreman removes all puppet classes from a hostgroup when the environment is changed.
Added by Jim Bailey about 11 years ago.
Updated over 6 years ago.
Category:
Puppet integration
|
Description
When changing the environment for a hostgroup, puppet removes all classes.
- Category set to Puppet integration
- Bugzilla link set to 1158991
The circumstances under which this occurs are when a class are not available in the environment the `HostGroup` will be changed to.
If the target environment does have the class available it will be kept. This does not happen instantly (anymore) but requires the form to be submitted.
Since Foreman does not create classes in puppet, but only reflect what is in puppet, keeping the classes in host groups as they are could lead to confusion, if they are not actually in the current environment. Keeping them, and marking them as "unavailable" if the environment does not include it and allow to remove them manually.
A simpler approach would be to simple warn in case classes are not available and will be purged on submit.
Thoughts on which route would be the more feasible way to go?
I prefer warning about purging on submit.
- Assignee set to Sebastian Gräßl
- Target version set to 1.4.4
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4048 added
- Target version deleted (
1.4.4)
- Target version set to 1.15.5
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 209
- Related to Bug #18045: Puppet classes don't show up without hostgroups added
- Target version changed from 1.15.5 to 169
- Related to Bug #18427: Hostgroups don't have any puppet classes (or are removed upon editing a hostgroup) added
- Target version deleted (
169)
- Target version set to 1.11.0
Also available in: Atom
PDF