~cloud-init-dev/cloud-init/trunk

  • Committer: Scott Moser
  • Date: 2016-07-14 18:25:09 UTC
  • mfrom: (1245.1.5 trunk.lp1602373)
  • Revision ID: smoser@ubuntu.com-20160714182509-3u0osx9bxrwflke3
ConfigDrive: fix writing of 'injected' files and legacy networking

Previous commit inadvertently disabled the consumption of 'injected' files
in configdrive (openstack server boot --file=/target/file=local-file)
unless the datasource was in 'pass' mode. The default mode is 'net' so
that was not likely to happen.

Also here are:
a.) some comments to apply_network_config

b.) add backwards compatibility for distros that do not yet implement
    apply_network_config by converting the network config into ENI format
    and calling apply_network.

    This is required because prior to the previous commit, those distros
    would have had 'apply_network' called with the openstack provided
    ENI file. But after this change they will have apply_network_config
    called by cloudinit's main.

c.) add network_state_to_eni for converting net config to eni
    it supports the not-actually-correct 'hwaddress' field in ENI
Filename Latest Rev Last Changed Committer Comment Size
..
chef_client.rb.tmpl 1202.1.1 8 years ago Scott Moser chef: straighten out validation_cert and validatio 1.4 KB Diff Download File
hosts.debian.tmpl 962.2.2 10 years ago Joshua Harlow Switch to jinja & adjust tpls 887 bytes Diff Download File
hosts.freebsd.tmpl 992.3.2 9 years ago Joseph Bajin new: Added FreeBSD template for manage_etc_hosts s 914 bytes Diff Download File
hosts.redhat.tmpl 962.2.2 10 years ago Joshua Harlow Switch to jinja & adjust tpls 912 bytes Diff Download File
hosts.suse.tmpl 962.2.2 10 years ago Joshua Harlow Switch to jinja & adjust tpls 866 bytes Diff Download File
resolv.conf.tmpl 1052.1.14 9 years ago Barry Warsaw Low hanging Python 3 fruit. 812 bytes Diff Download File
sources.list.debian.tmpl 962.2.2 10 years ago Joshua Harlow Switch to jinja & adjust tpls 1.4 KB Diff Download File
sources.list.ubuntu.tmpl 1154 8 years ago Scott Moser ubuntu templates: enable backports Previous commi 2.7 KB Diff Download File