<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tools/write-mime-multipart, branch current</title>
<subtitle> (mirror of https://github.com/marekm72/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=current</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2011-01-11T14:42:19+00:00</updated>
<entry>
<title>move write-mime-multipart into cloud-utils package</title>
<updated>2011-01-11T14:42:19+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2011-01-11T14:42:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=8644b570cbe8597eb6057cb9fe0c06a0461c642c'/>
<id>urn:sha1:8644b570cbe8597eb6057cb9fe0c06a0461c642c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove incorrect docstring in write-mime-multipart</title>
<updated>2010-07-02T00:48:15+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2010-07-02T00:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=e3152a8ceabf4b48ee111a475a5b9e04bbbd47fd'/>
<id>urn:sha1:e3152a8ceabf4b48ee111a475a5b9e04bbbd47fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add 'cloud-boothook' type</title>
<updated>2010-06-18T04:23:25+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2010-06-18T04:23:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=17fabe47dcbbe6b2180e73cac6211f7394d61a8a'/>
<id>urn:sha1:17fabe47dcbbe6b2180e73cac6211f7394d61a8a</id>
<content type='text'>
if user data is of type text/cloud-boothook, or begins with
#cloud-boothook, then assume it to be code to be executed.

Boothooks are a very simple format.  Basically, its a one line header
('#cloud-config\n') and then executable payload.

The executable payload is written to a file, then that file is executed
at the time it is read.  The file is left in 
/var/lib/cloud/data/boothooks

There is no "first-time-only" protection.  If running only once is
desired, the boothook must handle that itself.
</content>
</entry>
<entry>
<title>add the part-handler plugin</title>
<updated>2010-01-28T22:16:11+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2010-01-28T22:16:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=e6e30d8c8f72b904b34e93d2b9c4aef39b965b59'/>
<id>urn:sha1:e6e30d8c8f72b904b34e93d2b9c4aef39b965b59</id>
<content type='text'>
If a part of a multipart file is 'text/part-handler' then it is 
expected to be python code that implements 2 methods

- list_types()
  list the types that this part-handler supports, return
  a list.  ie: return(['text/plain'])

- handle_parts(data,ctype,filename,payload)
  this method will be called:
     once, when loaded, with ctype == '__begin__'
     once per part
     once, at the end, with ctype == '__end__'

   - ctype is the content type ('text/plain')
   - filename is the filename portion of the mime data
   - payload is the content of the part
   - data is currently the cloud object, but this could change
</content>
</entry>
<entry>
<title>add doc/userdata.txt, move examples to doc/.</title>
<updated>2010-01-27T03:53:00+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2010-01-27T03:53:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=eb74cd6f36a2f4d2ebdee04d6b388834b1bc72d4'/>
<id>urn:sha1:eb74cd6f36a2f4d2ebdee04d6b388834b1bc72d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>improve write-mime-multipart to support 'starts_with'</title>
<updated>2010-01-27T02:01:05+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2010-01-27T02:01:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=4f389802609dd1a764bd93f2babda7e9eef7f1ba'/>
<id>urn:sha1:4f389802609dd1a764bd93f2babda7e9eef7f1ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mention where it came from</title>
<updated>2010-01-07T02:00:25+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@nelson</email>
</author>
<published>2010-01-07T02:00:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=3b0d26fb17f338630a08e5c1a8793939fa991d4f'/>
<id>urn:sha1:3b0d26fb17f338630a08e5c1a8793939fa991d4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add tools/ directory and 'write-mime-multipart'</title>
<updated>2010-01-06T21:17:57+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@nelson</email>
</author>
<published>2010-01-06T21:17:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=a280ac3087deed1a7e9ca5f561094291d0b62ffe'/>
<id>urn:sha1:a280ac3087deed1a7e9ca5f561094291d0b62ffe</id>
<content type='text'>
write-mime-multipart text/x-shellscript path/filename.sh \
   text/x-cloud-config my.yaml \
   &gt; my.userdata
</content>
</entry>
</feed>
