diff --git a/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml b/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml new file mode 100644 index 00000000..04ce181b --- /dev/null +++ b/metal/roles/pxe-boot/templates/http/ignition/ignition.yaml @@ -0,0 +1,7 @@ +variant: fcos +version: 1.3.0 +passwd: + users: + - name: core + ssh_authorized_keys: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBbqNJWKwLmwkeHQVUVT/pEis/wvRqRSKG9Dpl166NGp diff --git a/metal/roles/pxe-boot/templates/http/kickstart/fedora.ks.j2 b/metal/roles/pxe-boot/templates/http/kickstart/fedora.ks.j2 deleted file mode 100644 index ab3a47be..00000000 --- a/metal/roles/pxe-boot/templates/http/kickstart/fedora.ks.j2 +++ /dev/null @@ -1,55 +0,0 @@ -#version=DEVEL - -%pre --interpreter=/bin/sh -mac=$(ip --brief link show dev {{ network_interface }} | tr -s ' ' | cut -d ' ' -f 3 | sed 's/:/-/g') -curl "http://{{ ansible_default_ipv4.address }}/kickstart/network/$mac.ks" > /tmp/network.ks -%end - -# Do not use graphical install -text - -# Keyboard layouts -keyboard --xlayouts='us' -# System language -lang en_US.UTF-8 - -# Partition clearing information -clearpart --all --drives={{ disk }} -# Partitioning -ignoredisk --only-use={{ disk }} -# TODO (bug) Fix only 15GiB root partition -autopart - -# Network information -%include /tmp/network.ks - -# Use network installation -url --url="http://{{ ansible_default_ipv4.address }}/Fedora/" -# Disable Setup Agent on first boot -firstboot --disable -# Do not configure the X Window System -skipx -# System services -services --enabled="chronyd" -# System timezone -timezone Asia/Ho_Chi_Minh --utc - -# Create user (locked by default) -user --groups=wheel --name={{ os_username }} -# Add SSH key -sshkey --username=root "{{ ssh_public_key }}" - -# SELinux -selinux --disabled - -# Firewall -firewall --disabled - -%packages -@^server-product-environment -%end - -# Enable some services for Kubernetes -services --enable=iscsid - -reboot diff --git a/metal/roles/pxe-boot/templates/http/kickstart/network/network.ks.j2 b/metal/roles/pxe-boot/templates/http/kickstart/network/network.ks.j2 deleted file mode 100644 index dfa41d01..00000000 --- a/metal/roles/pxe-boot/templates/http/kickstart/network/network.ks.j2 +++ /dev/null @@ -1 +0,0 @@ -network --bootproto=static --device={{ network_interface }} --ip={{ hostvars[item]['ansible_host'] }} --gateway={{ ansible_default_ipv4.gateway }} --nameserver={{ dns_server }} --netmask={{ ansible_default_ipv4.netmask }} --ipv6=auto --hostname={{ hostvars[item]['inventory_hostname'] }} --activate