metrics: Adding pxeboot template for rhcos
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
5f782e878b
commit
b538a1b7c2
3 changed files with 76 additions and 0 deletions
55
inventory/host_vars/worker01.ocp.stg.iad2.fedoraproject.org
Normal file
55
inventory/host_vars/worker01.ocp.stg.iad2.fedoraproject.org
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
freezes: false
|
||||
|
||||
datacenter: iad2
|
||||
|
||||
arch: x86
|
||||
|
||||
dns1: 10.3.163.33
|
||||
dns2: 10.3.163.34
|
||||
|
||||
dns_search1: "stg.iad2.fedoraproject.org"
|
||||
dns_search3: "fedoraproject.org"
|
||||
|
||||
has_ipv4: yes
|
||||
eth0_ipv4: 10.3.166.118
|
||||
eth0_ipv4_nm: 24
|
||||
eth0_ipv4_gw: 10.3.166.254
|
||||
eth0_ip: "{{eth0_ipv4}}"
|
||||
nm: 255.255.255.0
|
||||
gw: "{{ eth0_ipv4_gw }}"
|
||||
dns: "{{ dns1 }}"
|
||||
|
||||
pxe_bootdev: eno1
|
||||
install_dev: sda
|
||||
mac0: "70:B5:E8:D0:E2:E0"
|
||||
|
||||
rhcos_ignition_file_url: "http://10.3.166.50/rhcos/controlplane.ign"
|
||||
rhcos_install_img_url: "http://10.3.166.50/rhcos/rhcos-{{ rhcos_version }}-x86_64-metal.x86_64.raw.gz"
|
||||
rhcos_install_rootfs_url: "http://10.3.166.50/rhcos/rhcos-{{ rhcos_version }}-x86_64-live-rootfs.x86_64.img"
|
||||
rhcos_install_url: "http://10.3.166.50/rhcos/"
|
||||
|
||||
network_connections:
|
||||
- name: eth0
|
||||
mac: "{{ mac0 }}"
|
||||
state: up
|
||||
type: ethernet
|
||||
autoconnect: yes
|
||||
ip:
|
||||
address:
|
||||
- "{{ eth0_ipv4 }}/{{ eth0_ipv4_nm }}"
|
||||
gateway4: "{{ eth0_ipv4_gw }}"
|
||||
dns:
|
||||
- "{{ dns1 }}"
|
||||
- "{{ dns2 }}"
|
||||
dns_search:
|
||||
- "{{ dns_search1 }}"
|
||||
- "{{ dns_search2 }}"
|
||||
- "{{ dns_search3 }}"
|
||||
dhcp4: no
|
||||
auto6: no
|
||||
|
||||
vpn: true
|
||||
|
||||
nrpe_procs_warn: 1200
|
||||
nrpe_procs_crit: 1400
|
|
@ -57,6 +57,12 @@
|
|||
state: link
|
||||
src: "/var/www/html/rhcos/rhcos-{{ rhcos_version }}-x86_64-metal.x86_64.raw.gz"
|
||||
dest: "/var/www/html/rhcos/rhcos-metal.raw"
|
||||
- name: == Hardware provisioning == Generating the tftp configuration boot file
|
||||
template:
|
||||
src: ocp_pxeboot.j2
|
||||
dest: /srv/web/infra/bigfiles/tftpboot/rhcos/{{ mac0 | lower | replace(":","-") }}
|
||||
mode: 0755
|
||||
delegate_to: 127.0.0.1
|
||||
tags:
|
||||
- ignition
|
||||
- repo
|
||||
|
|
15
playbooks/manual/templates/ocp_pxeboot.j2
Normal file
15
playbooks/manual/templates/ocp_pxeboot.j2
Normal file
|
@ -0,0 +1,15 @@
|
|||
DEFAULT {{ inventory_hostname }}-deploy
|
||||
PROMPT 0
|
||||
TIMEOUT 50
|
||||
TOTALTIMEOUT 6000
|
||||
ONTIMEOUT {{ inventory_hostname }}-deploy
|
||||
|
||||
LABEL local
|
||||
MENU LABEL (local)
|
||||
MENU DEFAULT
|
||||
LOCALBOOT 0
|
||||
|
||||
LABEL {{ inventory_hostname}}-deploy
|
||||
MENU LABEL RHCOS {{ rhcos_version }} {{ arch }}- Kickstart for {{ inventory_hostname }}
|
||||
KERNEL rhcos-{{ rhcos_version }}-{{ arch }}-installer-kernel-{{ arch }}
|
||||
APPEND ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:{{ pxe_bootdev }}:none nameserver={{ dns }} rd.neednet=1 initrd=rhcos-{{ rhcos_version }}-{{ arch }}-installer-initramfs.{{ arch }}.img console={{ kernel_console | default('tty0')}} coreos.inst=yes rd.md=1 rd.auto coreos.inst.install_dev={{ install_dev }} coreos.inst.image_url={{ rhcos_install_img_url }} coreos.inst.ignition_url={{ rhcos_ignition_file_url }}
|
Loading…
Add table
Add a link
Reference in a new issue