first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
set default="1"
|
||||
|
||||
function load_video {
|
||||
insmod efi_gop
|
||||
insmod efi_uga
|
||||
insmod video_bochs
|
||||
insmod video_cirrus
|
||||
insmod all_video
|
||||
}
|
||||
|
||||
load_video
|
||||
set gfxpayload=keep
|
||||
insmod gzio
|
||||
insmod part_gpt
|
||||
insmod ext2
|
||||
|
||||
set timeout=5
|
||||
### END /etc/grub.d/00_header ###
|
||||
|
||||
{% set is_bootstrap = (node.role == 'bootstrap') %}
|
||||
{% set install_dev = '/dev/vda' if is_bootstrap else '/dev/disk/by-path/' ~ node.disk_path %}
|
||||
{% set ignition_file = 'bootstrap.ign' if is_bootstrap else ('master.ign' if node.role == 'control-plane' else 'worker.ign') %}
|
||||
{% set display_name = 'Bootstrap Node' if is_bootstrap else ('Control Plane Node' if node.role == 'control-plane' else 'Compute Node') %}
|
||||
|
||||
### BEGIN /etc/grub.d/10_linux ###
|
||||
menuentry 'Install OCP {{ ocp_latest_version }} {{ display_name }}' --class fedora --class gnu-linux --class gnu --class os {
|
||||
linux {{ pxe_url_path }}/{{ rhcos_kernel_file }} coreos.inst.install_dev={{ install_dev }} coreos.live.rootfs_url={{ pxe_base_url }}/{{ rhcos_rootfs_file }} coreos.inst.ignition_url={{ pxe_base_url }}/{{ ignition_file }} ignition.firstboot ignition.platform.id=metal
|
||||
initrd {{ pxe_url_path }}/{{ rhcos_initramfs_file }}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
baseDomain: {{ base_domain }}
|
||||
metadata:
|
||||
name: {{ cluster_name }}
|
||||
compute:
|
||||
- hyperthreading: Enabled
|
||||
name: worker
|
||||
replicas: 0
|
||||
controlPlane:
|
||||
hyperthreading: Enabled
|
||||
name: master
|
||||
replicas: 3
|
||||
platform:
|
||||
none: {}
|
||||
fips: false
|
||||
pullSecret: '{{ vault_pull_secret | to_json if (vault_pull_secret is not string) else vault_pull_secret }}'
|
||||
sshKey: |
|
||||
{{ vault_ssh_public_key | indent(2) }}
|
||||
Reference in New Issue
Block a user