Created
August 18, 2021 19:22
-
-
Save johnsimcall/7c0409f39f3ceaf0378be6d3761407d9 to your computer and use it in GitHub Desktop.
MachineConfig template that applies Red Hat subscription information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: machineconfiguration.openshift.io/v1 | |
kind: MachineConfig | |
metadata: | |
labels: | |
machineconfiguration.openshift.io/role: worker | |
name: 50-worker-rhsm-entitlement | |
spec: | |
config: | |
ignition: | |
version: 3.2.0 | |
storage: | |
files: | |
- path: /etc/rhsm/rhsm.conf | |
mode: 0644 | |
contents: | |
source: data:text/plain;charset=utf-8;base64,ENCODED_rhsm.conf | |
- path: /etc/pki/entitlement/entitlement.pem | |
mode: 0644 | |
contents: | |
source: data:text/plain;charset=utf-8;base64,ENCODED_entitlement.pem | |
- path: /etc/pki/entitlement/entitlement-key.pem | |
mode: 0644 | |
contents: | |
source: data:text/plain;charset=utf-8;base64,ENCODED_entitlement-key.pem |
@kincl has improved this by fetching the entitlement content from the secrets
created by the Insights Operator when Simple Content Access has been turned on.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These steps assume the executing host has a RHEL8 entitlement applied. The long series of numbers in the
.pem
files need to be adjusted.