From 3949f5238b040f21fa92f1c4d3a245b9c95e40db Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Sun, 28 Apr 2024 21:10:24 +0200
Subject: [PATCH] Clud init and Terraform

---
 Doc/Sdi/CloudProvider/gettingStarted.xml | 75 +++++++++++++++++++++++-
 1 file changed, 74 insertions(+), 1 deletion(-)

diff --git a/Doc/Sdi/CloudProvider/gettingStarted.xml b/Doc/Sdi/CloudProvider/gettingStarted.xml
index 2735a4693..174c7c29f 100644
--- a/Doc/Sdi/CloudProvider/gettingStarted.xml
+++ b/Doc/Sdi/CloudProvider/gettingStarted.xml
@@ -682,7 +682,7 @@ Someone could be eavesdropping on you right now (<emphasis role="red">man-in-the
     <title>Cloud Init</title>
 
     <figure xml:id="sdi_cloudProvider_cloudInit_cloudStackTalk">
-      <title>Introduction</title>
+      <title>Introduction and reference</title>
 
       <itemizedlist>
         <listitem>
@@ -690,7 +690,80 @@ Someone could be eavesdropping on you right now (<emphasis role="red">man-in-the
           xlink:href="https://mirror.mi.hdm-stuttgart.de/Videos/Cloud/cloud-init_CloudStackCollaborationConference2022.mp4">Conference
           talk</link>.</para>
         </listitem>
+
+        <listitem>
+          <para><link
+          xlink:href="https://cloudinit.readthedocs.io/en/latest">Cloud-init
+          documentation</link></para>
+        </listitem>
       </itemizedlist>
     </figure>
+
+    <figure xml:id="sdi_cloudProvider_cloudInit_nutshell">
+      <title>In a nutshell</title>
+
+      <itemizedlist>
+        <listitem>
+          <para>Distribution image containing pre-installed <productname>Cloud
+          Init</productname></para>
+        </listitem>
+
+        <listitem>
+          <para>Script configurable installation options</para>
+        </listitem>
+      </itemizedlist>
+    </figure>
+
+    <figure xml:id="sdi_cloudProvider_cloudInit_configOverview">
+      <title>Configuration options</title>
+
+      <informaltable border="0">
+        <tr>
+          <td valign="top"><itemizedlist>
+              <listitem>
+                <para>Individual CRUD file operations</para>
+              </listitem>
+
+              <listitem>
+                <para>Supplying <productname>ssh</productname> user and host
+                keys.</para>
+              </listitem>
+
+              <listitem>
+                <para>Adding users</para>
+              </listitem>
+
+              <listitem>
+                <para>...</para>
+              </listitem>
+            </itemizedlist></td>
+
+          <td valign="top"><itemizedlist>
+              <listitem>
+                <para>Installing packages</para>
+              </listitem>
+
+              <listitem>
+                <para>System Upgrade + reboot</para>
+              </listitem>
+
+              <listitem>
+                <para>Arbitrary command execution</para>
+              </listitem>
+            </itemizedlist></td>
+        </tr>
+      </informaltable>
+    </figure>
+
+    <figure xml:id="sdi_cloudProvider_cloudInit_terraformInterfaceCloudinit">
+      <title><productname>Terraform</productname> interface to
+      <productname>Cloud Init</productname></title>
+
+      <programlisting language="terraform">resource "hcloud_server" "web" {
+  name         = var.server_name
+       ...
+  user_data = file("Server/web/web.yml")
+}</programlisting>
+    </figure>
   </section>
 </chapter>
-- 
GitLab