Project

General

Profile

Refactor #31059

Tracker #30160: Extract Puppet ENC to a plugin

Tracker #30173: Extract Puppet Environments to a plugin

Extract Environments models

Added by Ondřej Ezr over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

  • Environment model and tests
  • EnvironmentClass model and tests
Notions from the other models:
  • HostCommon
  • Operatingsystem
  • PuppetHostExtensions -> Facet in the plugin
  • Host::Managed -> Facet
  • Hostgroup -> Hostgroup Facet
  • Nic::Managed
  • Puppetclass - temporarily
  • Report
  • Taxonomy
  • User #visible_environments
Notions in logic:
  • app/controller/application_controller.rb#included_associations `environments` need to be moved, thus added from monkey patch

Related issues

Blocked by Foreman - Feature #31084: Nested attributes for Hostgroup facetsNew

Associated revisions

Revision 6363d0f3 (diff)
Added by Ondřej Ezr almost 2 years ago

Refs #31059 - drop environments Host extensions

Removes uses of environment from Host

Revision 1ee9fd12 (diff)
Added by Ondřej Ezr almost 2 years ago

Refs #31059 - drop environment hostgroup extension

Remove uses of environment from Hostgroup.

Revision b79fb6d3 (diff)
Added by Ondřej Ezr almost 2 years ago

Refs #31059 - drop environments from nic

Removes uses of Environment from Nic::Managed model

Revision d04e8ef5 (diff)
Added by Ondřej Ezr almost 2 years ago

Refs #31059 - drop environment from PuppetFactParser

Removes uses of Environment in PuppetFactParser and implement plugin
guard to import plugin Envrionment if plugin is installed.

Revision 5286b211 (diff)
Added by Ondřej Ezr almost 2 years ago

Refs #31059 - cleanup Environment from tests

Removes Environment related notes from tests, mostly just Host being
uselessly provided an environment.

Revision 145c76a5 (diff)
Added by Ondřej Ezr almost 2 years ago

Refs #31059 - guard for Environment in setting

We need to introduce a guard for Environment being present in settings,
as we are about to drop Environment.
Reimplementation and movement of the Puppet settings is separate commit.

Revision 51dc65d8 (diff)
Added by Ondřej Ezr almost 2 years ago

Fixes #31059 - drop Environment models

Revision bb991bd4 (diff)
Added by Ondřej Ezr almost 2 years ago

Fixes #31059 - regenerate snapshots without environment

History

#1 Updated by Ondřej Ezr over 2 years ago

  • Description updated (diff)

#2 Updated by Ondřej Ezr over 2 years ago

  • Blocked by Feature #31084: Nested attributes for Hostgroup facets added

#3 Updated by Ondřej Ezr over 2 years ago

  • Description updated (diff)

ProvisioningTemplate should be part of TemplateCombinations

#4 Updated by Ondřej Ezr over 2 years ago

  • Description updated (diff)

#5 Updated by Ondřej Ezr about 2 years ago

  • Status changed from New to Assigned

#6 Updated by Ondřej Ezr almost 2 years ago

  • Status changed from Assigned to Closed

Also available in: Atom PDF