canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.99k stars 883 forks source link

enhancement: move cloud-init devel tools to separate package #3843

Open ubuntu-server-builder opened 1 year ago

ubuntu-server-builder commented 1 year ago

This bug was originally filed in Launchpad as LP: #1915901

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2021-02-17T08:57:59.096202+00:00
date_fix_committed = None
date_fix_released = None
id = 1915901
importance = wishlist
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1915901
milestone = None
owner = jetojedno
owner_name = David Hodgson
private = False
status = triaged
submitter = jetojedno
submitter_name = David Hodgson
tags = ['cloud-init', 'devel', 'enhancement', 'tools']
duplicates = []

Launchpad user David Hodgson(jetojedno) wrote on 2021-02-17T08:57:59.096202+00:00

I use some of the devel tools to help creating cloud-init scripts etc for containers. To use just the tools I have to install the whole cloud-init package and then disable all of the installed "active" components so cloud-init doesn't mess with the (desktop) workstation.

Can I request that the devel tools are moved into a separate package so they can be installed without the active parts of cloud-init and, conversly, the installed cloud-init doesn't have unnecessary parts.

ubuntu-server-builder commented 1 year ago

Launchpad user Dan Watkins(oddbloke) wrote on 2021-02-17T14:43:45.501642+00:00

Hi David, thanks for the bug report, this is a good idea!

cloud-init should disable itself in cases where there isn't anything for it to do (like a desktop workstation): have you seen cloud-init run unexpectedly, or have you avoided installing it due to a (very reasonable) abundance of caution? If the former, a separate bug report for that would be great.

Thanks again!

ubuntu-server-builder commented 1 year ago

Launchpad user David Hodgson(jetojedno) wrote on 2021-02-17T17:21:26.038422+00:00

I immediately mask the cloud* systemd services after install, but I remain a touch concerned as cloud-init runs early in the boot sequence.

I've not seen any unexpected effects, but I boot these workstations rarely, and I haven't been looking for this so wouldn't have necessarily attributed unexpected behaviour to this cause. :-)