Custom YAML configuration and deployment with mgradm

You have the option to create a custom mgradm.yaml file, which the mgradm tool can utilize during deployment.

mgradm will prompt for basic variables if they are not provided using command line parameters or the mgradm.yaml configuration file.

For security, using command line parameters to specify passwords should be avoided: use a configuration file with proper permissions instead.

Procedure: Deploying an Uyuni container with Podman using a custom configuration file
  1. Prepare an mgradm.yaml file similar to the following example:

    # Database password
    db:
      password: MySuperSecretDBPass
    # Certificate password
    cert:
      password: MySuperSecretCAPass
    # SSL password
    ssl:
      password: MySuperSecretSllPassword
    
    # If you have these you can provide them to setup your organization credentials
    scc:
      user: ccUsername
      password: ccPassword
    
    # Administrator email address
    email: email@example.com
  2. from the terminal run the following command a the sudo user. Replace uyuni.example.com with your FQDN.

    sudo mgradm -c mgradm.yaml install podman uyuni.example.com

    You must deploy the container as sudo or root. The following error will be displayed on the terminal if you miss this step.

    INF Setting up uyuni network
    9:58AM INF Enabling system service
    9:58AM FTL Failed to open /etc/systemd/system/uyuni-server.service for writing error="open /etc/systemd/system/uyuni-server.service: permission denied"
  3. Wait for deployment to complete.

  4. Open a browser and proceed to your servers FQDN.

In this section you learned how to deploy an SUSE Manager 5 Server container using a custom yaml configuration.