~ubuntu-branches/ubuntu/natty/cloud-init/natty-proposed

« back to all changes in this revision

Viewing changes to upstart/cloud-init-nonet.conf

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2011-02-19 01:16:10 UTC
  • mfrom: (60.1.25 natty)
  • Revision ID: package-import@ubuntu.com-20110219011610-rcf4ll5uuzqh9bdn
* New upstream release.
* fix for puppet configuration options (LP: #709946) [Ryan Lane]
* fix pickling of DataSource, which broke seeding.
* turn resize_rootfs default to True
* avoid mounts in DataSourceOVF if 'read' on device fails
  'mount /dev/sr0' for an empty virtual cdrom device was taking 18 seconds
* add 'manual_cache_clean' option to select manual cleaning of
  the /var/lib/cloud/instance/ link, for a data source that might
  not be present on every boot
* make DataSourceEc2 retries and timeout configurable
* add 'bootcmd' like 'runcmd' to cloud-config syntax for running things early
* move from '#opt_include' in config file format to conf_d.
  now local config files should live in /etc/cloud/cloud.cfg.d/
* move /etc/cloud/distro.cfg to /etc/cloud/cloud.cfg.d/90_dpkg.cfg
* allow /etc/hosts to be written from hosts.tmpl. which allows
  getting local-hostname into /etc/hosts (LP: #720440)
* better handle startup if there is no eth0 (LP: #714807)
* update rather than append in puppet config [Marc Cluet]
* add cloud-config for mcollective [Marc Cluet]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# cloud-init-no-net
 
2
# the purpose of this job is
 
3
#  * to block running of cloud-init until a non 'lo' interface is up
 
4
#  * timeout if one doens't come up in a reasonable amount of time
 
5
start on mounted MOUNTPOINT=/ and stopped cloud-init-local
 
6
stop on net-device-up IFACE!=lo
 
7
task
 
8
 
 
9
console output
 
10
 
 
11
script
 
12
   # if a non 'lo' interface is up, exit immediately
 
13
   grep -qv '^lo' /var/run/network/ifstate >/dev/null 2>&1 && exit 0
 
14
 
 
15
   [ -f /var/lib/cloud/instance/obj.pkl ] && exit 0
 
16
 
 
17
   short=10; long=60;
 
18
   sleep ${short}
 
19
   echo $UPSTART_JOB "waiting ${long} seconds for a network device."
 
20
   sleep ${long}
 
21
   echo $UPSTART_JOB "gave up waiting for a network device."
 
22
   : > /var/lib/cloud/data/no-net
 
23
end script
 
24
# EOF