Project

General

Profile

Actions

Feature #20572

closed

Add macro for detecting compute provider

Added by Tomáš Strachota over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Provisioning templates should enable detecting provider (compute resource type) a host is being provisioned on in order to enable platform detection and conditional installation of support software.

Templates can either provide a macro that returns provider name (eg. libvirt, vmware, baremetal...) or enable method 'provider' on compute resource objects in Jail.

Actions #1

Updated by Tomáš Strachota over 6 years ago

  • Subject changed from Add macro for detecting compute provider to Add macro for detecting compute provider
  • Category changed from TFTP to Templates
  • Target version set to 115
Actions #2

Updated by Dominik Matoulek over 2 years ago

  • Status changed from New to Closed
  • Triaged set to No

Closing this issue because there is a provider method at Host::Managed that fits to this issue perfectly. This class contains that method since existence of class (https://github.com/theforeman/foreman/blob/d7611b242760bffdd801a63dd4d3e63533ccfa52/app/models/host/managed.rb#L55).

Actions

Also available in: Atom PDF