This guide describes the quickest way to get a Foreman server up and running. For a full installation guide, see Installing Foreman Server 3.16 on Debian/Ubuntu.

1. System requirements

The following list shows the most critical requirements common for most scenarios. For a full list, see Installing Foreman Server 3.16 on Debian/Ubuntu.

  • The following operating systems are supported for deploying Foreman:

    • Debian 12 (Bookworm) (amd64)

    • Ubuntu 22.04 (Jammy) (amd64)

  • Install Foreman server on a freshly provisioned system that serves no other function except to run Foreman server.

  • Ensure the system has at least 4 GB of memory.

2. Configuring repositories

Procedure
  • Debian 12 (Bookworm)

  • Ubuntu 22.04 (Jammy)

  1. Install the wget and ca-certificates packages:

    # apt install wget ca-certificates
  2. Change directory to /tmp and retrieve the puppet-release package.

    • For Puppet 8:

      # cd /tmp && wget https://apt.puppet.com/puppet8-release-bookworm.deb
    • For Puppet 7:

      # cd /tmp && wget https://apt.puppet.com/puppet7-release-bookworm.deb
  3. Install the puppet-release package.

    • For Puppet 8:

      # apt install /tmp/puppet8-release-bookworm.deb
    • For Puppet 7:

      # apt install /tmp/puppet7-release-bookworm.deb
  4. Enable the Foreman repository:

    # wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc
    # echo "deb http://deb.theforeman.org/ bookworm 3.16" | sudo tee /etc/apt/sources.list.d/foreman.list
    # echo "deb http://deb.theforeman.org/ plugins 3.16" | sudo tee -a /etc/apt/sources.list.d/foreman.list
  1. Install the wget and ca-certificates packages:

    # apt install wget ca-certificates
  2. Change directory to /tmp and retrieve the puppet-release package.

    • For Puppet 8:

      # cd /tmp && wget https://apt.puppet.com/puppet8-release-jammy.deb
    • For Puppet 7:

      # cd /tmp && wget https://apt.puppet.com/puppet7-release-jammy.deb
  3. Install the puppet-release package.

    • For Puppet 8:

      # apt install /tmp/puppet8-release-jammy.deb
    • For Puppet 7:

      # apt install /tmp/puppet7-release-jammy.deb
  4. Enable the Foreman repository:

    # wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc
    # echo "deb http://deb.theforeman.org/ jammy 3.16" | sudo tee /etc/apt/sources.list.d/foreman.list
    # echo "deb http://deb.theforeman.org/ plugins 3.16" | sudo tee -a /etc/apt/sources.list.d/foreman.list

3. Installing Foreman server packages

Procedure
  1. Update package lists:

    # apt update
  2. Upgrade all packages:

    # apt upgrade
  3. Install the packages:

    # apt install foreman-installer

4. Running the Foreman installer

The Foreman installer is a collection of Puppet modules that installs Foreman based on native operating system packages.

The installation run is non-interactive by default. The script displays its progress and writes logs to /var/log/foreman-installer/foreman.log.

Procedure
  • Run the Foreman installer:

    # foreman-installer

    For a list of the available customization options, run foreman-installer --help or foreman-installer --full-help.

Report issue