Project

General

Profile

Actions

Feature #7910

closed

Implement razor-like automated provisioning

Added by Lukas Zapletal about 10 years ago. Updated about 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In Foreman, we can easily implement automated discovery by creating new model called DiscoveryRule with:

- name: name a the rule
- query: scoped_search expression
- host group: associated host group
- hostname: safemode expression to generate hostname (e.g. "node#{facts[:mac]}.example.com")
- max count: maximum allocation for this rule
- priority: integer giving rule priorities
- enabled: temporary disable a rule

For each discovered node, our plugin would execute query for each rule sorted by given priority. If a rule matches, host group is associated, host created and node rebooted for provisioning. Counter for each rule is increased and if it hits maximum count, query is no longer active. To speed up queries, we will add "and hostname = 'discovered_host_name'" to each query.

In the UI, we will need to create:

- rules CRUD
- re-apply automated provisioning button on the Discovered Hosts

Foreman core integration require to decrease counter when a host is deleted. For fluent user experience, we may want to add new button Delete and Reboot so users are able to return machines back to pool easily.


Related issues 1 (0 open1 closed)

Has duplicate Discovery - Feature #3860: Implement fully automated provisioningClosedLukas Zapletal12/12/2013Actions
Actions #1

Updated by Lukas Zapletal about 10 years ago

  • Is duplicate of Feature #3860: Implement fully automated provisioning added
Actions #2

Updated by Greg Sutcliffe about 10 years ago

  • Is duplicate of deleted (Feature #3860: Implement fully automated provisioning)
Actions #3

Updated by Greg Sutcliffe about 10 years ago

  • Has duplicate Feature #3860: Implement fully automated provisioning added
Actions #4

Updated by Greg Sutcliffe about 10 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF