diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-20 17:07:10 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-20 17:07:10 -0400 |
commit | 4fc10ef3f349e6280e2002d980c4c63e6a741d2f (patch) | |
tree | c67eaf601903947d866fe5d2bfdc9e8078927f4d /cloudinit/distros/debian.py | |
parent | 62b0593341e1a9cc1b37a00dd92c3bbf41dc3db7 (diff) | |
download | vyos-cloud-init-4fc10ef3f349e6280e2002d980c4c63e6a741d2f.tar.gz vyos-cloud-init-4fc10ef3f349e6280e2002d980c4c63e6a741d2f.zip |
add a header to rendered ENI file describing its content
Diffstat (limited to 'cloudinit/distros/debian.py')
-rw-r--r-- | cloudinit/distros/debian.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py index 244af349..5ae9a509 100644 --- a/cloudinit/distros/debian.py +++ b/cloudinit/distros/debian.py @@ -43,6 +43,13 @@ APT_GET_WRAPPER = { 'enabled': 'auto', } +ENI_HEADER = """# This file is generated from information provided by +# the datasource. Changes to it will not persist across an instance. +# To disable cloud-init's network configuration capabilities, write a file +# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: +# network: {config: disabled} +""" + class Distro(distros.Distro): hostname_conf_fn = "/etc/hostname" @@ -59,6 +66,7 @@ class Distro(distros.Distro): self.osfamily = 'debian' self._net_renderer = eni.Renderer({ 'eni_path': self.network_conf_fn, + 'eni_header': ENI_HEADER, 'links_prefix_path': None, 'netrules_path': None, }) |