Skip to content

Commit 23db627

Browse files
authored
Merge pull request #190 from sus-admin/beginner+debian-guide-edits
a few small adjustments and one important fix
2 parents 1c3ca0a + 4df00ad commit 23db627

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

_posts/2024/2024-11-12-Cobbler-v3.3.6-Beginners-Guide.md

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

7979
## Fedora Server Basics
8080

81-
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.**
81+
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.
8282

8383
### Updating
8484

85-
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%):
85+
First, set a static IP address on the Cobbler server interface *(enp0s8)* for hosting PXE services
86+
87+
```shell
88+
nmcli conn modify enp0s8 ipv4.method manual ipv4.addr "10.0.0.10/24"
89+
```
90+
91+
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%):
8692

8793
```shell
8894
lvextend /dev/mapper/fedora_$HOSTNAME-root -l+95%FREE -r
@@ -312,9 +318,15 @@ SELinux and firewall operations can seem daunting at first, especially with an a
312318
313319
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
314320
315-
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.
321+
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.
322+
323+
With SELinux enabled at the kernel command line, run the `getenforce` command to check the current enforcing status
324+
325+
- if `permissive` is returned, skip to the **Enforcing SELinux** section below
326+
327+
- if `enforcing`, skip to the **Cobbler SELinux Config** section.
316328
317-
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.
329+
- if `disabled`, proceed to the next section **Enabling SELinux**
318330
319331
#### Enabling SELinux
320332
@@ -366,7 +378,7 @@ systemctl restart cobblerd && sleep 10
366378
cobbler sync
367379
```
368380
369-
> 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
381+
> 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
370382
>
371383
> > 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.
372384
>
@@ -412,7 +424,7 @@ Reconfigure **enp0s8** to operate in the **new firewalld zone**
412424
nmcli con mod enp0s8 connection.zone cobbler
413425
```
414426
415-
> As defined above, this zone will NOT permit inbound ICMP traffic like ping
427+
> As defined above, this firewall zone will NOT permit inbound ICMP traffic like ping
416428
417429
For simplicity, **enp0s3** can be left in the **default firewalld zone** (verify the current active zones with `firewall-cmd --get-active-zones`)
418430

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Cobbler supports managing repos/sources via the debmirror command natively, whic
221221

222222
### Setup debmirror
223223

224-
Follow the instructions for supporting Debian deployments/repos given from the `cobbler check` command output (as well as installign Debian keyrings):
224+
Follow the instructions given from the `cobbler check` command for supporting Debian deployments/repos and install the Debian keyrings:
225225

226226
```shell
227227
yum install -y debmirror debian-keyring
@@ -259,9 +259,7 @@ cp /var/lib/cobbler/templates/bookworm-workaround.seed /var/lib/cobbler/template
259259
sed -i 's,d-i apt-setup/local0/repository,#d-i apt-setup/local0/repository,' /var/lib/cobbler/templates/bookworm-latest.seed
260260
sed -i 's,d-i apt-setup/local0/key,#d-i apt-setup/local0/key,' /var/lib/cobbler/templates/bookworm-latest.seed
261261
sed -i 's,d-i debian-installer/allow_unauthenticated,#d-i debian-installer/allow_unauthenticated,' /var/lib/cobbler/templates/bookworm-latest.seed
262-
sed -i 's,script=preseed_early_workaround,script=preseed_early_skip,' /var/lib/cobbler/templates/bookworm-latest.seed
263-
cp /var/lib/cobbler/scripts/preseed_early_workaround /var/lib/cobbler/scripts/preseed_early_skip
264-
echo -e '#!/bin/sh\nexit' | tee /var/lib/cobbler/scripts/preseed_early_skip
262+
sed -i 's,script=preseed_early_workaround,script=preseed_early_default,' /var/lib/cobbler/templates/bookworm-latest.seed
265263
```
266264

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

0 commit comments

Comments
 (0)