The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/distrobuilder/pull/132

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
This closes #131.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From ac1421c044055f6bdbb71d8a0d781c5f12c6ca3d Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Thu, 14 Feb 2019 11:07:59 +0100
Subject: [PATCH] doc: Fix debian-cloud-init example

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 doc/examples/debian-cloud-init | 55 ++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/doc/examples/debian-cloud-init b/doc/examples/debian-cloud-init
index 3b60956..1fc56e6 100644
--- a/doc/examples/debian-cloud-init
+++ b/doc/examples/debian-cloud-init
@@ -72,6 +72,61 @@ files:
      auto eth0
      iface eth0 inet dhcp
 
+ - name: cloud-init-meta
+   path: /var/lib/cloud/seed/nocloud-net/meta-data
+   generator: template
+   template:
+     when:
+       - create
+       - copy
+   content: |
+     #cloud-config
+     instance-id: {{ container.name }}
+     local-hostname: {{ container.name }}
+     {{ config_get("user.meta-data", "") }}
+
+ - name: cloud-init-network
+   path: /var/lib/cloud/seed/nocloud-net/network-config
+   generator: template
+   template:
+     when:
+       - create
+       - copy
+   content: |
+     {% if config_get("user.network-config", "") == "" %}version: 1
+     config:
+        - type: physical
+          name: eth0
+          subnets:
+              - type: {% if config_get("user.network_mode", "") == 
"link-local" %}manual{% else %}dhcp{% endif %}
+                control: auto{% else %}{{ config_get("user.network-config", 
"") }}{% endif %}
+
+ - name: cloud-init-user-data
+   path: /var/lib/cloud/seed/nocloud-net/user-data
+   generator: template
+   content: '{{ config_get("user.user-data", properties.default) }}'
+   template:
+     properties:
+       default: |
+         #cloud-config
+         {}
+     when:
+       - create
+       - copy
+
+ - name: cloud-init-vedor-data
+   path: /var/lib/cloud/seed/nocloud-net/vendor-data
+   generator: template
+   content: '{{ config_get("user.vendor-data", properties.default) }}'
+   template:
+     properties:
+       default: |
+         #cloud-config
+         {}
+     when:
+       - create
+       - copy
+
 packages:
   manager: apt
   update: true
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to