Skip to content

Commit d12f758

Browse files
committed
a few small adjustments/additions, and an important change to the 'debmirror' auto-install method back to using the cobbler-included 'preseed_early_default' early-stage preseed script, as my script for testing only.
1 parent 062d31f commit d12f758

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

_posts/2024-10-16-Cobbler-v3.3.6-Beginners-Guide.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@ This guide assumes that both the **Cobbler Server** and **PXE Clinet(s)** are ru
7979

8080
## Fedora Server Basics
8181

82-
As stated above, this document outlines the procedures necessary to install and configure Cobbler v3.3.6 on a Fedora 34 host server for local network installations/provisioning through PXE. Additionally, necessary adjustments will be made for security through **selinux** and **firewalld** on the Cobbler server. As such, it is recommended to keep things simple and **limit the number of additional applications installed** to the Cobbler server to **minimize unexpected firewall and selinux complications.**
82+
As stated above, this document outlines the procedures necessary to install and configure Cobbler v3.3.6 on a Fedora 34 host server for local network installations/provisioning through PXE. Additionally, recommended security measures for the Cobbler server will be detailed towards the end of this guide, including basic **selinux** and **firewalld** configs.
8383

8484
### Updating
8585

86-
If Cobbler is to be installed on a Fedora 34 *Server* host, and automatic partitioning was used during initial OS installation, be sure to extend the LVM Logical Volme to a more usable capacity (recommended 95%):
86+
First, set a static IP address on the Cobbler server interface *(this interface does not require a gateway or DNS; the other interface may be left on DHCP or static)*
87+
88+
```shell
89+
nmcli conn modify enp0s8 ipv4.method manual ipv4.addr "10.0.0.10/24"
90+
```
91+
92+
If Cobbler is to be installed on a Fedora 34 *Server edition* host, and automatic partitioning was used during initial OS installation, be sure to extend the LVM Logical Volme to a more usable capacity (recommended 95%):
8793

8894
```shell
8995
lvextend /dev/mapper/fedora_$HOSTNAME-root -l+95%FREE -r
@@ -313,9 +319,15 @@ SELinux and firewall operations can seem daunting at first, especially with an a
313319
314320
SELinux should come enabled by default on a fresh Fedora 34 Server installation, and we set it to `permissive` in the **Base Updates and Configs** section above, but sometimes `selinux` can be disabled on the kernel command line
315321
316-
If `selinux=0` is set in the `/proc/cmdline` file, then follow the instructions found in the `/etc/selinux/config` file for the `grubby` command to enable selinux at boot time. The kernel command line parameters will take precedence over the other configurations.
322+
If `selinux=0` is set in the `/proc/cmdline` file, then follow the instructions found in the `/etc/selinux/config` file for the `grubby` command to enable selinux at boot time *(DO NOT reboot yet)*. The kernel command line parameters will take precedence over the other configurations.
323+
324+
With SELinux enabled at the kernel command line, run the `getenforce` command to check the current enforcing status
325+
326+
- if `permissive` is returned, skip to the **Enforcing SELinux** section below
327+
328+
- if `enforcing`, skip to the **Cobbler SELinux Config** section.
317329
318-
If the output of the `getenforce` command is already `permissive` skip to the **Enforcing SELinux** section below; if it is `enforcing` skip to the **Cobbler SELinux Config** section.
330+
- if `disabled`, proceed to the next section **Enabling SELinux**
319331
320332
#### Enabling SELinux
321333
@@ -367,7 +379,7 @@ systemctl restart cobblerd && sleep 10
367379
cobbler sync
368380
```
369381
370-
> Cobbler Triggers will run at different times depending on which directory they are placed in, and in alphabetical order within that directory. This sync-trigger specifically should typically be run after ALL sync tasks/triggers are completed
382+
> Cobbler Triggers will run at different times depending on which directory they are placed in, and in alphabetical order within that directory. This sync-trigger specifically should typically be run after ALL other sync tasks/triggers are completed
371383
>
372384
> > Additionally, if there is an error with a `cobbler sync` task (trigger, or otherwise) before reaching this trigger, the sync task will terminate, and the trigger will not run, causing Cobbler files to not be relabeled appropriately... however, there are likely bigger issues at hand if the `cobbler sync` task is erroring out.
373385
>
@@ -413,7 +425,7 @@ Reconfigure **enp0s8** to operate in the **new firewalld zone**
413425
nmcli con mod enp0s8 connection.zone cobbler
414426
```
415427
416-
> As defined above, this zone will NOT permit inbound ICMP traffic like ping
428+
> As defined above, this firewall zone will NOT permit inbound ICMP traffic like ping
417429
418430
For simplicity, **enp0s3** can be left in the **default firewalld zone** (verify the current active zones with `firewall-cmd --get-active-zones`)
419431

_posts/2024-12-02-Cobbler-v3.3.7-Debian-Deployment-Guide.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,7 @@ cp /var/lib/cobbler/templates/bookworm-workaround.seed /var/lib/cobbler/template
260260
sed -i 's,d-i apt-setup/local0/repository,#d-i apt-setup/local0/repository,' /var/lib/cobbler/templates/bookworm-latest.seed
261261
sed -i 's,d-i apt-setup/local0/key,#d-i apt-setup/local0/key,' /var/lib/cobbler/templates/bookworm-latest.seed
262262
sed -i 's,d-i debian-installer/allow_unauthenticated,#d-i debian-installer/allow_unauthenticated,' /var/lib/cobbler/templates/bookworm-latest.seed
263-
sed -i 's,script=preseed_early_workaround,script=preseed_early_skip,' /var/lib/cobbler/templates/bookworm-latest.seed
264-
cp /var/lib/cobbler/scripts/preseed_early_workaround /var/lib/cobbler/scripts/preseed_early_skip
265-
echo -e '#!/bin/sh\nexit' | tee /var/lib/cobbler/scripts/preseed_early_skip
263+
sed -i 's,script=preseed_early_workaround,script=preseed_early_default,' /var/lib/cobbler/templates/bookworm-latest.seed
266264
```
267265

268266
Download the kernel and 2 initrd files for Debiain latest/current (12.8)

0 commit comments

Comments
 (0)