Feature #21565

Add a setting that allows the user to enable orchestration when puppet facts are uploaded.

Added by Fabian von Feilitzsch 7 months ago. Updated 6 months ago.

Status:Closed
Priority:Normal
Assigned To:Fabian von Feilitzsch
Category:Orchestration
Target version:-
Difficulty:easy Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4976
Story points-
Velocity based estimate-
Release1.17.0Release relationshipAuto

Description

Motivation:
I have a small cluster managed by foreman, where foreman is managing DNS for the domain but not DHCP.
If an IP address for one of my host changes, the DNS goes out of sync (pointing to the old IP) until
I manually rebuild config, even though foreman sees the updated IP (from puppet reports) and changes
the host entry to match.

Desired outcome:
I would like the IP/hostname in my DNS to match the IP/hostname in Foreman, even if the IP was changed
by a fact upload.

Proposed change:
Add a setting called `enable_unattended_orchestration`, which enables orchestration even when
SETTINGS[:unattended] is true. Add a check of that setting to this line:
https://github.com/theforeman/foreman/blob/1f6a9b2c84ae629dda55330b7a4d8f9ed4e948dc/app/models/host/managed.rb#L297

I plan on submitting this change personally.

Associated revisions

Revision bd33211d
Added by Fabian von Feilitzsch 6 months ago

Fixes #21565 - Orchestration on fact import

This adds the enable_orchestration_on_fact_import setting, which allows
a user to make Foreman perform host orchestration operations when a
host is updated from puppet fact upload

History

#1 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4976 added

#2 Updated by Lukas Zapletal 6 months ago

  • Release set to 1.17.0

#3 Updated by Fabian von Feilitzsch 6 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF