[ubuntu-cloud] Documentation for cloud-config?

Dave Hein dhein at acm.org
Sun Sep 30 01:40:53 UTC 2012


I've searched quite a bit but can find no sufficient documentation of the
cloud-init syntax.

I'm particularly interested in cloud-config commands that control apt. For
example, I'd like to tell apt to apply only security updates, but that
requires setting the apt sources to the subset that contain reliable
security updates. Looking at the python source code for CloudInit, I can
see hints that there might be some cloud-init commands to control the apt
sources, but I can't say for sure.

It seems to me that a full set of the cloud-config commands available to
users should be documented and published somewhere public. Without that it
is going to hard to get anyone except ubuntu cloud insiders to use cloud
init as it was meant to be used.

I've been able to guess some things by looking at emails and a smattering
of web pages, but there is much that I'm missing.

In the meantime, if someone could suggest the commands I'd need to do the
equivalent of:


#! /bin/sh
#
# Get security and distribution updates
#
apt-get update --assume-yes
# The file sec.sources.list is a subset of sources.list that contains only
security update sources
apt-get upgrade --assume-yes \
   -o Dir::Etc::sourcelist=/etc/apt/sec.sources.list
#
# reboot here if kernel updated ... cloud-config uses
apt_reboot_if_required: True
#
# Get llvm updates
#
apt-get update --assume-yes
apt-get install llvm-3.0 --install-suggests --assume-yes
apt-get install llvm-3.0-doc --install-suggests --assume-yes
apt-get install llvm-3.0-dev --install-suggests --assume-yes
apt-get install clang --install-suggests --assume-yes


So far I've got:

#cloud-config
apt_update: True
apt_upgrade: True
apt_reboot_if_required: True

but I've no idea how to set the sources, or how to install specific
packages _and_ their suggested packages.

--
Dave Hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20120929/41a71441/attachment.html>


More information about the Ubuntu-cloud mailing list