cloud-init should support additional multi-part format

Bug #641504 reported by Scott Moser on 2010-09-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: cloud-init

As brought up in the ec2ubuntu group thread at [1], cloud-init's multi-part mime input is somewhat unwieldy to deal with.
It would be nice to have another common archive format.

2 suggestions would be:
a.) tar archive. files might be (in order) consumed like:
  include/file1
  cloud-config/my-cloud-config
  upstart/my.upstart.conf
  include/file2
  boothook/my-boothook

where the tar would just be read in order, and consumed and the top level directory indicated the 'type'.

b.) yaml, something like:
- filename: mypart1
  type: cloud-config
  data: |
  ssh_import_id: [smoser ]
- filename: mypart2
  type: x-shellscript
  data: |
    #!/bin/sh
    echo "hi world"

The above isn't tested, just an idea. The yaml would not support binary being included inline, but yaml does support binary [2]. I've verified that python yaml does support the '!!'
--
[1] http://groups.google.com/group/ec2ubuntu/browse_thread/thread/d4d51238a2afb55b
[2] http://yaml.org/type/binary.html

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: cloud-init 0.5.15-0ubuntu3
ProcVersionSignature: User Name 2.6.35-22.32-virtual 2.6.35.4
Uname: Linux 2.6.35-22-virtual i686
Architecture: i386
Date: Fri Sep 17 17:36:51 2010
Ec2AMI: ami-4ade2b23
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: t1.micro
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init

Related branches

Scott Moser (smoser) wrote :
Scott Moser (smoser) on 2010-10-04
Changed in cloud-init (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.6.0-0ubuntu1

---------------
cloud-init (0.6.0-0ubuntu1) natty; urgency=low

  * New upstream release.
  * fix permissions on cloud-init.log so syslog can write to it (LP: ##704509)
  * rework of /var/lib/cloud layout
  * remove updates-check (LP: #653220)
  * support resizing root partition on first boot (enabled by default)
  * added cloud-config options for setting hostname, phone_home
  * indicate "all the way up" with message to console and file creation
    in /var/lib/cloud/instance/ (LP: #653271)
  * write ssh keys to console late in boot to ensure they're in console buffer
  * add support for redirecting output of cloud-init, cloud-config,
    cloud-final via the config file, or user data config file
  * add support for posting data about the instance to a url (phone_home)
  * add minimal OVF transport (iso) support
  * make DataSources that are attempted dynamic and configurable from
    config. config option 'cloud_type' replaced by 'datasource_list'
  * add 'timezone' option to cloud-config (LP: #645458)
  * Added an additional archive format, that can be used for multi-part
    input to cloud-init. This may be more user friendly then mime-multipart
    (LP: #641504)
  * add support for reading Rightscale style user data (LP: #668400)
  * make the message on 'disable_root' more clear (LP: #672417)
  * do not require public key if private is given in ssh cloud-config
    (LP: #648905)
 -- Scott Moser <email address hidden> Wed, 26 Jan 2011 17:28:36 -0500

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers