Skip to content

Commit

Permalink
refactor(metal): create partitions manually
Browse files Browse the repository at this point in the history
  • Loading branch information
khuedoan committed Feb 19, 2022
1 parent 3b107c2 commit bce3291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metal/roles/pxe_server/templates/kickstart.ks.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ lang en_US.UTF-8
clearpart --all --drives={{ hostvars[item]['disk'] }}
# Partitioning
ignoredisk --only-use={{ hostvars[item]['disk'] }}
autopart --nohome
partition /boot/efi --fstype=vfat --size=512
partition / --fstype=ext4 --grow

# Network information
network --bootproto=static --device={{ hostvars[item]['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
Expand Down

0 comments on commit bce3291

Please sign in to comment.