Project

General

Profile

Feature #24881

serve templates for cloud-init nocloud provider

Added by Timo Goebel about 1 year ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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

Related to Smart Proxy - Feature #24885: templates proxy should proxy cloud-init nocloud templatesClosed
Related to Foreman - Bug #27055: Allow HTTP for userdata controlerClosed

Associated revisions

Revision d74dc425 (diff)
Added by Timo Goebel 6 months ago

fixes #24881 - cloud-init nocloud support

History

#1 Updated by The Foreman Bot about 1 year ago

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

#2 Updated by Timo Goebel about 1 year ago

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

#3 Updated by Marek Hulán 7 months ago

  • Bugzilla link set to 1690204

#4 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing

#5 Updated by Timo Goebel 6 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Marek Hulán 6 months ago

  • Fixed in Releases 1.23.0 added

#7 Updated by Lukas Zapletal 4 months ago

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

Also available in: Atom PDF