Project

General

Profile

Actions

Refactor #9546

closed

Discovery should provide a convinient method to convert discovered host into managed host (aka provision)

Added by Marek Hulán about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Urgent
Category:
Discovery plugin
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

There's no reusable way to transform discovered host into managed host provided by Discovery, which leads to custom code copied from discovery controller like this Unfortunately this leads to problems when the "official" provision code changes, like someone adds deletion of discovered host facts. I know that there's already perform_auto_provision which is shared among controllers using concern, but it does not belong to controller. I see it as a Host::Discovered responsibility or if not directly this class, then some new HostConverter, not controller.


Related issues 1 (0 open1 closed)

Related to Discovery - Bug #9488: Unable delete the discovered hosts from foremanClosedOri Rabin02/20/2015Actions
Actions

Also available in: Atom PDF