Bug #15867
openChanging puppet environment on the hostgroup page shows all puppet classes
Description
Steps to reproduce:
1. Create and publish two content views (View1 and View2) with two different sets of puppet modules
2. Create a Hostgroup and set it to one of the view's environments
3. Edit your Hostgroup and go to the Puppet Classes tab. Observe your view's puppet modules
4. Go back to Host Group tab and hit "Reset Puppet Environment to match selected Content View"
5. See the puppet classes and observe all puppet modules from BOTH content views
The problem is that we're not sending in hostgroup_id or environment_id so it creates a hostgroup without an environment here:
Updated by David Davis over 8 years ago
I think this should work with foreman only (no Katello):
1. Create two puppet environments with two different sets of puppet modules
2. Create a Hostgroup and set it to one of the environments
3. Edit your Hostgroup and go to the Puppet Classes tab. Observe your environment's puppet modules
4. Go back to Host Group tab and change the environment
5. See the puppet classes and observe all puppet modules from BOTH environments
Updated by David Davis over 8 years ago
- Project changed from Katello to Foreman
- Subject changed from Hitting "Reset Puppet Environment to match selected Content View" on the hostgroup page shows different set of puppet classes even if env is unchanged to Changing puppet environment on the hostgroup page shows all puppet classes
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to David Davis
- Pull request https://github.com/theforeman/foreman/pull/3680 added
Updated by Dominic Cleal over 7 years ago
- Category set to Puppet integration
- Status changed from Ready For Testing to New
- Assignee deleted (
David Davis) - Pull request deleted (
https://github.com/theforeman/foreman/pull/3680)