Skip to content

install-base-packages

A map of ssh public keys to install for the root user

This provides a list of packages to be installed during a Linux Distro install.

The Object contains an index entry which will be matched the BootEnv values (.Env.OS.*) based on the below rules. This allows for general package definitions for broad categories of Distro type (FamilyName and Codename), as well as explicit matching based on the specific BootEnv name.

The operator may override these values, but should be cognizant that standard RackN workflows/stages/tasks rely on thes minimal packages for downstream automation to succeed. Generally speaking, use the extra-packages Param to amend to this list.

Here is an example of how to override the default packages used for CentOS:

{"centos": ["@core", "openssh"]}
centos:
  - "@core"
  - openssh

This Param may be used in the unattended/answerfile templates. Selections will be based on the following first-match rulesets:

  • an exact match with the BootEnv name (.Env.OS.Name) (eg centos-7.8.2003)
  • the .Env.OS.Codename plus the Major version specified in .Env.OS.Version, formed as codename-version (eg ol-8)
  • the .Env.OS.Codename (eg fedora)
  • the Env.OS.Family plus the Major version specified in Env.OS.Version, formed as familyname-version (eg redhat-9)
  • the Env.OS.Family (eg redhat)
  • no match found use unknown specified packages

Note

All future BootEnv defined unattended/answerfile (kickstart, preseed, etc) Templates should endeavor to use this generic package selection mechanism, instead of distro specific versions (eg do not use the kickstart-base-packages).

This Param is processed by the Template install-package-selections.tmpl