You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-12-11-Cobbler-v3.3.7-Ubuntu-Deployment-Guide.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,9 @@ Create the new Cobbler template and snippets necessary to generate the `cloud-in
60
60
{% for line in lines %}{{ line | prepend: " " }}
61
61
{% endfor %}
62
62
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.
64
66
65
67
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:
> 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
93
93
94
94
Download the latest 3 releases of Ubuntu Server LTS
95
95
@@ -243,6 +243,12 @@ cobbler sync
243
243
244
244
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.
245
245
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
+
246
252
1. Troubleshooting the installation
247
253
248
254
- 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