diff --git a/Doc/Sdi/CloudProvider/gettingStarted.xml b/Doc/Sdi/CloudProvider/gettingStarted.xml index faa4a6501feaf8328a2fe65d1fd56098a9ce0e30..f0f728eb53fe7fc6067ca5d382cda4687f374cbe 100644 --- a/Doc/Sdi/CloudProvider/gettingStarted.xml +++ b/Doc/Sdi/CloudProvider/gettingStarted.xml @@ -1227,20 +1227,24 @@ resource "hcloud_volume" "volume01" { role="red">vol01</emphasis>" { size = 10 .... } -resource "hcloud_server" "helloServer" { - user_data = templatefile("userData.yml.tpl", { - <emphasis role="blue">volume01Id</emphasis> = hcloud_volume.<emphasis - role="red">vol01</emphasis>.id # No cycle +resource "hcloud_server" "hello" { + user_data = templatefile( + "userData.yml.tpl", { + # No cycle + <emphasis role="blue">volId</emphasis>=hcloud_volume.<emphasis + role="red">vol01</emphasis>.id }) ... } -resource "hcloud_volume_attachment" "main" { - volume_id = hcloud_volume.<emphasis role="red">vol01</emphasis>.id - server_id = hcloud_server.helloServer.id +resource "hcloud_volume_attachment" + "main" { + volume_id=hcloud_volume.<emphasis role="red">vol01</emphasis>.id + server_id=hcloud_server.hello.id }</programlisting></td> - <td valign="top"><programlisting language="bash">echo `/bin/ls /dev/disk/by-id/*${<emphasis - role="blue">volume01Id</emphasis>}` - /<emphasis role="red">vol01</emphasis> xfs discard,nofail,defaults 0 0 >> /etc/fstab</programlisting></td> + <td valign="top"><programlisting language="bash">echo + `/bin/ls /dev/disk/by-id/*${<emphasis role="blue">volId</emphasis>}` + /<emphasis role="red">vol01</emphasis> xfs discard,nofail,defaults 0 0 + >> /etc/fstab</programlisting></td> </tr> </informaltable> </figure> @@ -1392,7 +1396,25 @@ resource "hcloud_network_route" "gateway"{ linkend="sdi_cloudProvider_networks_qanda_httpGateway"/>.</para> </note> </listitem> + + <listitem> + <para>Provide <xref linkend="glo_DNS"/> names to be used on + your two hosts locally by defining + <filename>/etc/cloud/templates/hosts.debian.tmpl</filename> + accordingly.</para> + </listitem> </orderedlist> + + <tip> + <para>Variables of <code + xlink:href="https://developer.hashicorp.com/terraform/language/values/variables">type + = object</code> are your friend:</para> + + <programlisting language="tf">privateSubnet = { + dnsDomainName = "intern.g3.hdm-stuttgart.cloud" + ipAndNetmask = "10.0.1.0/24" +}</programlisting> + </tip> </question> </qandaentry> </qandadiv>