Skip to content

Commit 7bdd4de

Browse files
committed
Ubuntu guide edit
1 parent aa548ba commit 7bdd4de

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

_posts/2024-12-11-Cobbler-v3.3.7-Ubuntu-Deployment-Guide.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ Create the new Cobbler template and snippets necessary to generate the `cloud-in
3636

3737
- `/var/lib/cobbler/templates/cloud-init_user-data`
3838

39-
{% capture file %}```shell
40-
{% include cloud-init_user-data.txt path="_includes/cloud-init_user-data.txt" %}```{% endcapture %}
39+
{% capture file %}{% include cloud-init_user-data.txt path="_includes/cloud-init_user-data.txt" %}{% endcapture %}
4140
{% assign lines = file | newline_to_br | strip_newlines | split: "<br />" %}
4241
{% for line in lines %}{{ line | prepend: " " }}
4342
{% endfor %}
@@ -46,38 +45,34 @@ Create the new Cobbler template and snippets necessary to generate the `cloud-in
4645
4746
- `/var/lib/cobbler/snippets/cloud-init_hostname`
4847

49-
{% capture file %}```shell
50-
{% include cloud-init_hostname.txt path="_includes/cloud-init_hostname.txt" %}```{% endcapture %}
48+
{% capture file %}{% include cloud-init_hostname.txt path="_includes/cloud-init_hostname.txt" %}{% endcapture %}
5149
{% assign lines = file | newline_to_br | strip_newlines | split: "<br />" %}
5250
{% for line in lines %}{{ line | prepend: " " }}
5351
{% endfor %}
5452

5553
- `/var/lib/cobbler/snippets/cloud-init_network`
5654

57-
{% capture file %}```shell
58-
{% include cloud-init_network.txt path="_includes/cloud-init_network.txt" %}```{% endcapture %}
55+
{% capture file %}{% include cloud-init_network.txt path="_includes/cloud-init_network.txt" %}{% endcapture %}
5956
{% assign lines = file | newline_to_br | strip_newlines | split: "<br />" %}
6057
{% for line in lines %}{{ line | prepend: " " }}
6158
{% endfor %}
6259

63-
> This section assumes that, for automated Cobbler System deployments (not Profiles...), each system interface defined should have the corresponding MAC address defined, a standard requirement in Cobbler. Less intuitively, this solution only adds DNS servers to static interfaces with an IP address defined, since DNS servers are set per-interface in Ubuntu cloud-init/netplan, but per-system in Cobbler.
60+
> The above section should resemble the standard [netplan](https://netplan.readthedocs.io/en/latest/netplan-yaml/) YAML configuration file for Ubuntu once generated.
6461
>
65-
> Also, the above section should resemble the standard [netplan](https://netplan.readthedocs.io/en/latest/netplan-yaml/) YAML configuration file for Ubuntu once generated.
62+
> **ASSUMPTIONS:** For automated Cobbler System deployments (not Profiles...), each system interface defined should have the corresponding MAC address defined, a standard requirement in Cobbler. Less intuitively, this solution only adds DNS servers to static interfaces with an IP address defined, since DNS servers are set per-system in Cobbler, but per-interface in Ubuntu cloud-init/netplan; the above snippet will revert any interface to DHCP if it is set to static but has no IP defined.
6663
6764
Create 2 Cobbler sync-triggers to correct the GRUB and PXELINUX boot configurations to support Ubuntu `cloud-init` installations, which will run each time the `cobbler sync` action is performed:
6865

6966
- `/var/lib/cobbler/triggers/sync/post/fix-ubuntu-profiles-GRUB_PXE.sh`
7067

71-
{% capture file %}```shell
72-
{% include fix-ubuntu-profiles-GRUB_PXE.sh.txt path="_includes/fix-ubuntu-profiles-GRUB_PXE.sh.txt" %}```{% endcapture %}
68+
{% capture file %}{% include fix-ubuntu-profiles-GRUB_PXE.sh.txt path="_includes/fix-ubuntu-profiles-GRUB_PXE.sh.txt" %}{% endcapture %}
7369
{% assign lines = file | newline_to_br | strip_newlines | split: "<br />" %}
7470
{% for line in lines %}{{ line | prepend: " " }}
7571
{% endfor %}
7672

7773
- `/var/lib/cobbler/triggers/sync/post/fix-ubuntu-systems-GRUB_PXE.sh`
7874

79-
{% capture file %}```shell
80-
{% include fix-ubuntu-systems-GRUB_PXE.sh.txt path="_includes/fix-ubuntu-systems-GRUB_PXE.sh.txt" %}```{% endcapture %}
75+
{% capture file %}{% include fix-ubuntu-systems-GRUB_PXE.sh.txt path="_includes/fix-ubuntu-systems-GRUB_PXE.sh.txt" %}{% endcapture %}
8176
{% assign lines = file | newline_to_br | strip_newlines | split: "<br />" %}
8277
{% for line in lines %}{{ line | prepend: " " }}
8378
{% endfor %}

0 commit comments

Comments
 (0)