Feature #24881
closedserve templates for cloud-init nocloud provider
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.
Updated by The Foreman Bot over 6 years ago
- Assignee set to Timo Goebel
- Pull request https://github.com/theforeman/foreman/pull/6057 added
Updated by Timo Goebel over 6 years ago
- Related to Feature #24885: templates proxy should proxy cloud-init nocloud templates added
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
Updated by Timo Goebel almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset d74dc4251f8397e31fcb9214d83f929c8992c9c3.
Updated by Lukas Zapletal over 5 years ago
- Related to Bug #27055: Allow HTTP for userdata controler added