a plan to create:
- a hub openshift cluster (on a sno)
- an sno spoke vm
- a workflow deploying AI operator
parameters: | |
cluster: hub | |
version: stable | |
network: default | |
tag: '4.10' | |
masters: 1 | |
workers: 0 | |
memory: 32768 | |
numcpus: 16 | |
disk_size: 60 | |
pull_secret: openshift_pull.json | |
apps: | |
- users | |
- odf-lvm-operator | |
- advanced-cluster-management | |
{{ cluster }}-spoke-sno: | |
uuid: 11111111-1111-1111-1111-111111111191 | |
type: vm | |
numcpus: 8 | |
start: false | |
cloudinit: false | |
uefi_legacy: True | |
memory: 38912 | |
nets: | |
- name: {{ network }} | |
mac: aa:aa:aa:cc:cc:01 | |
disks: | |
- size: 120 | |
interface: scsi | |
{{ cluster }}: | |
type: kube | |
kubetype: openshift | |
cluster: {{ cluster }} | |
tag: {{ tag }} | |
metal3: true | |
sushy: true | |
masters: {{ masters }} | |
workers: {{ workers }} | |
version: {{ version }} | |
network_type: OVNKubernetes | |
memory: {{ memory }} | |
numcpus: {{numcpus }} | |
network: {{ network }} | |
pull_secret: {{ pull_secret }} | |
apps: {{ apps }} | |
kvm_openstack: true | |
disk_size: {{ disk_size }} | |
extra_disks: [100] | |
ztp: | |
type: workflow | |
files: | |
- leo/assisted-service.sample.yml | |
scripts: | |
- script_assisted-service.sh | |
- script_spokes_deploy.sh |
#!/usr/bin/env bash | |
until oc get crd/agentserviceconfigs.agent-install.openshift.io >/dev/null 2>&1 ; do sleep 1 ; done | |
export PATH=/root:$PATH | |
export RHCOS_ISO=$(openshift-install coreos print-stream-json | jq -r '.["architectures"]["x86_64"]["artifacts"]["metal"]["formats"]["iso"]["disk"]["location"]') | |
export RHCOS_ROOTFS=$(openshift-install coreos print-stream-json | jq -r '.["architectures"]["x86_64"]["artifacts"]["metal"]["formats"]["pxe"]["rootfs"]["location"]') | |
OCP_RELEASE=$(openshift-install version | head -1 | cut -d' ' -f2)-x86_64 | |
export MINOR=$(echo $OCP_RELEASE | cut -d. -f1,2) | |
export RELEASE=quay.io/openshift-release-dev/ocp-release:$OCP_RELEASE | |
export PULLSECRET=$(cat $HOME/openshift_pull.json | tr -d [:space:]) | |
export SSH_PRIV_KEY=$(cat $HOME/.ssh/id_rsa |sed "s/^/ /") | |
export VERSION=$(openshift-install coreos print-stream-json | jq -r '.["architectures"]["x86_64"]["artifacts"]["metal"]["release"]') | |
envsubst < assisted-service.sample.yml | oc create -f - |
echo do the meaningful |