Project

General

Profile

Actions

Feature #24881

closed

serve templates for cloud-init nocloud provider

Added by Timo Goebel over 5 years ago. Updated almost 5 years ago.

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

Description

vSphere offers the functionality to clone vm from templates and customize the templates during cloning. This is very handy for changing the network settings of a newly cloned VM. Foreman fully supports this feature via a userdata template that is converted to cloud-init. The amount of things vSphere allows a user to customize are very limited, though. It's not possible to run a finish script or setup puppet with valid certificates on the new VM. This can be worked around by setting up a two step process: vSphere customization is just used to set up the network config of the host. Cloud-init is used to do the rest of the customization on first boot.

As part of this story, Foreman should be able to serve cloud-init templates.

cloud-init can be configured this way:

/etc/cloud/cloud.cfg.d/10_foreman.cfg
datasource_list: [NoCloud]
datasource:
NoCloud:
seedfrom: http://foreman.example.com/userdata/

Foreman than needs to respond to:

/userdata/meta-data (with metadata)

and

userdata/user-data (with a cloud-init template)

This has already been implemented in a plugin, see https://github.com/theforeman/foreman_userdata.


Related issues 2 (0 open2 closed)

Related to Smart Proxy - Feature #24885: templates proxy should proxy cloud-init nocloud templatesClosedTimo GoebelActions
Related to Foreman - Bug #27055: Allow HTTP for userdata controlerClosedLukas ZapletalActions
Actions #1

Updated by The Foreman Bot over 5 years ago

  • Assignee set to Timo Goebel
  • Pull request https://github.com/theforeman/foreman/pull/6057 added
Actions #2

Updated by Timo Goebel over 5 years ago

  • Related to Feature #24885: templates proxy should proxy cloud-init nocloud templates added
Actions #3

Updated by Marek Hulán about 5 years ago

  • Bugzilla link set to 1690204
Actions #4

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
Actions #5

Updated by Timo Goebel almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Marek Hulán almost 5 years ago

  • Fixed in Releases 1.23.0 added
Actions #7

Updated by Lukas Zapletal almost 5 years ago

  • Related to Bug #27055: Allow HTTP for userdata controler added
Actions

Also available in: Atom PDF