Create a Kickstart file for a MicroShift RHEL for Edge installation
You can use the Kickstart file provided with MicroShift to provision a RHEL for Edge-based virtual machine.
-
You set up the MicroShift Kickstart file.
-
You have the information needed to set required and optional variables.
-
Add the following required variables to create an RHEL for Edge Kickstart file:
-
The
OSTREE_SERVER_URLvariable contains anrpm-ostreeserver URL that is passed to theostreesetupKickstart command.$ export OSTREE_SERVER_URL="<http://my_ostree_server_url>"Replace http://my_ostree_server_url with your server URL.
-
The
OSTREE_COMMIT_REFvariable contains anrpm-ostreecommit reference that is installed from the server.$ export OSTREE_COMMIT_REF="<myostree_commit_reference>"Replace <myostree_commit_reference> with the
rpm-ostreecommit reference.
-
-
Optional. Add the following variable for server authentication:
-
The
AUTH_CONFIGcontents are copied to/etc/ostree/auth.jsonat the pre-install stage to authenticate access to theOSTREE_SERVER_URLserver. If no server authentication is required, skip this setting.$ export AUTH_CONFIG="$(cat ~/.ostree-auth.json)"
-
-
Run the following command to create the
kickstart.ksfile to be used during the installation:envsubst < \ /usr/share/microshift/kickstart/kickstart-ostree.ks.template > \ "${HOME}/kickstart.ks"The MicroShift version specified in the
rpm-ostreecommit is installed. To change the version of MicroShift, you must create a new commit.