Skip to content

Commit aa548ba

Browse files
committed
Ubuntu guide and snippet edit
1 parent 1b5d37c commit aa548ba

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

_includes/cloud-init_network.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
- $dns
4747
#end for
4848
#end if
49+
#else
50+
dhcp4: true
4951
#end if
5052
#else
5153
dhcp4: true

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ Create the new Cobbler template and snippets necessary to generate the `cloud-in
6060
{% for line in lines %}{{ line | prepend: " " }}
6161
{% endfor %}
6262

63-
> This section should resemble the standard [netplan](https://netplan.readthedocs.io/en/latest/netplan-yaml/) YAML configuration file for Ubuntu once generated.
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.
64+
>
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.
6466
6567
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:
6668

@@ -87,9 +89,7 @@ chmod u+x /var/lib/cobbler/triggers/sync/post/fix-ubuntu-profiles-GRUB_PXE.sh
8789
chmod u+x /var/lib/cobbler/triggers/sync/post/fix-ubuntu-systems-GRUB_PXE.sh
8890
```
8991

90-
> Cobbler is normally a dynamic and responsive app that implements many options, parameters, and configurations on-demand through `edit|add|remove|etc...` actions, not requiring a `cobbler sync` to commit most changes. However, it is recommended to run `cobbler sync` after any changes to a *(Ubuntu)* Cobbler Distro/Profile/System when using Cobbler sync-triggers in this manner, unless you're absolutely certain otherwise.
91-
>
92-
> **TIP:** Cobbler recommends writing triggers as Python modules and has a lot of good info in their [docs](https://cobbler.readthedocs.io/en/latest/user-guide/extending-cobbler.html#about), but I have only written bash scripts that slowly but surely accomplish my needs.
92+
> More info on Cobbler triggers in the **Tips & Troubleshooting** section below
9393
9494
Download the latest 3 releases of Ubuntu Server LTS
9595

@@ -243,6 +243,12 @@ cobbler sync
243243

244244
1. The [Cobbler 3.3.6 Beginner's Guide](/blog/2024/Cobbler-v3.3.6-Beginners-Guide/) **Tips & Troubleshooting** section contains some basic recommendations and limitations of Cobbler which will not be repeated here.
245245

246+
1. **Cobbler Triggers**
247+
248+
- Cobbler is normally a dynamic and responsive app that implements many options, parameters, and configurations on-demand through `edit|add|remove|etc...` actions, not requiring a `cobbler sync` to commit most changes. However, it is recommended to run `cobbler sync` after any changes to a Cobbler Distro/Profile/System when using Cobbler sync-triggers in this manner *(editing DHCP configs, boot options, etc...)*, unless you're absolutely certain otherwise.
249+
250+
- Cobbler recommends writing triggers as Python modules and has a lot of good info in their [docs](https://cobbler.readthedocs.io/en/latest/user-guide/extending-cobbler.html#about), but I have only written bash scripts that slowly but surely accomplish my needs.
251+
246252
1. Troubleshooting the installation
247253

248254
- The Ubuntu installer will reboot the system automatically upon completing a `cloud-init` auto-install. To prevent this, append the following line to the end of the autoinstall template (`cloud-init_user-data`) as the final command in the `late-commands:` section *(be sure the spacing/indentation aligns with the rest of the `late-command` entries)*:

0 commit comments

Comments
 (0)