cloud-config should support simple file writing

Bug #1012854 reported by Scott Moser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Low
Unassigned
cloud-init (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Many, many times, people have asked the easiest way to get a file into place, and at the moment that is something like:
 cat <<EOF > file
   file content
 EOF

or something to that effect.

It'd be much nicer if cloud-config had an easy way to do that.

files:
 - path: /etc/my.conf
   owner: root:root
   permissions: 0600
   content: |
       content here
 - path: /bin/foo
    owner: root:root
    permissions: 0755
    compression: gzip
   content-b64
      gzip-compressed-base64-encoded-content-here

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: cloud-init 0.6.3-0ubuntu1
ProcVersionSignature: User Name 3.2.0-24.39-virtual 3.2.16
Uname: Linux 3.2.0-24-virtual x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Wed Jun 13 20:39:23 2012
Ec2AMI: ami-c250f0ab
Ec2AMIManifest: ubuntu-us-east-1/images-testing/ubuntu-precise-daily-amd64-server-20120609.manifest.xml
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: m1.medium
Ec2Kernel: aki-825ea7eb
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Changed in cloud-init:
status: New → Triaged
Changed in cloud-init (Ubuntu):
status: New → Triaged
Changed in cloud-init:
importance: Undecided → Low
Changed in cloud-init (Ubuntu):
importance: Undecided → Low
Revision history for this message
Joshua Harlow (harlowja) wrote :
Revision history for this message
Martin Packman (gz) wrote :

Looks pretty good Josh, are you going to propose that branch for merging?

Revision history for this message
Joshua Harlow (harlowja) wrote :

In progress :-P

Revision history for this message
Scott Moser (smoser) wrote :

fixed in trunk at revno 598

Changed in cloud-init:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.0~bzr604-0ubuntu1

---------------
cloud-init (0.7.0~bzr604-0ubuntu1) quantal; urgency=low

  * New upstream snapshot.
    * add cc_write_file for injecting files via cloud-config (LP: #1012854)
    * fix issue with empty user data
    * remove some un-needed warnings to console output in DataSourceOVF
    * allow user-data scripts output through to the console
 -- Scott Moser <email address hidden> Thu, 12 Jul 2012 16:11:01 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.