Cobbler Web UI Deployment Guide (Podman + systemd)

Official info here: https://github.com/cobbler/cobbler-web

Cobbler server and cobbler web are two separate products, so separately installed. This guide assumes you have cobbler server running already.

This guide shows how to run cobbler-web using Podman, but there are other ways to run it, consult official guide for more info.

Step 1: Create local config File

Create a local JSON file that defines the Cobbler API endpoint, replace the IP with your cobbler server IP or fqdn:

Make sure the file is readable:

Step 2: Pull the Cobbler Web Container Image

Step 3: Run the Container

Check and fix the path for ‘/home/sysadmin/app-config.json’. Start the container with port mapping and volume mount:

Access the web UI at: http://<your-server-ip>:8080
Make sure its working

Step 4: Generate a systemd Unit for Autostart

This generates a file named container-cobbler-web.service.

Step 5: Install the systemd Unit

Move the generated unit file to the system directory:

Reload systemd to recognize the new unit:

Step 6: Stop and Remove Container (Optional)

In next step, systemd will create and start the container, so you might want to stop and remove the running container.

Step 7: Enable and Start the Service

Enable the service to start on boot:

Start the service immediately:

Check its status:

Final Check

Visit http://<your-server-ip>:8080 in your browser. You should see the Cobbler Web UI, now running and managed by systemd!


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *