Ubuntu Pastebin

Paste from smoser at Thu, 21 Apr 2016 18:10:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -Naur orig/metadata.yaml new/metadata.yaml
--- orig/metadata.yaml	2016-04-20 11:45:30.000000000 -0400
+++ new/metadata.yaml	2016-04-21 14:03:25.299102832 -0400
@@ -29,10 +29,11 @@
             default: |
                 #cloud-config
                 {}
-    /etc/network/interfaces.d/eth0.cfg:
+    /var/lib/cloud/seed/nocloud-net/network-config:
         when:
             - create
-        template: interfaces.tpl
+            - copy
+        template: cloud-init-network.tpl
     /etc/init/console.override:
         when:
             - create
diff -Naur orig/templates/cloud-init-network.tpl new/templates/cloud-init-network.tpl
--- orig/templates/cloud-init-network.tpl	1969-12-31 19:00:00.000000000 -0500
+++ new/templates/cloud-init-network.tpl	2016-04-21 14:04:32.167099851 -0400
@@ -0,0 +1,7 @@
+config:
+  - type: physical
+    name: eth0
+    subnets:
+      - type: {% if config_get("user.network_mode", "") == "link-local" %}manual{% else %}dhcp{% endif %}
+        control: auto
+version: 1
diff -Naur orig/templates/interfaces.tpl new/templates/interfaces.tpl
--- orig/templates/interfaces.tpl	2016-04-20 11:45:30.000000000 -0400
+++ new/templates/interfaces.tpl	1969-12-31 19:00:00.000000000 -0500
@@ -1,3 +0,0 @@
-# The primary network interface
-auto eth0
-iface eth0 inet {% if config_get("user.network_mode", "") == "link-local" %}manual{% else %}dhcp{% endif %}
Download as text