Skip to content
Snippets Groups Projects
Verified Commit ec52eb09 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

Update packer build and use smaller BIOS boot partition

- Create packer builder in FSN1 and change image to ubuntu-20.04
- Add "use_proxy: false" to provisioner config to work around [1]
- Reduce the size of the BIOS boot partition to 1M (from 10M) [2]
- Update bootstrap_version to 2022.03.01

[1] https://github.com/hashicorp/packer-plugin-ansible/issues/69
[2] https://www.gnu.org/software/grub/manual/grub/html_node/BIOS-installation.html
parent f8b9927c
No related branches found
No related tags found
1 merge request!546Update packer build and use smaller BIOS boot partition
Pipeline #16766 passed
......@@ -10,16 +10,17 @@
"custom_image": "archlinux"
},
"token": "{{ user `hetzner_cloud_api_key` }}",
"image": "ubuntu-18.04",
"image": "ubuntu-20.04",
"server_type": "cx11",
"ssh_username": "root",
"location": "nbg1",
"location": "fsn1",
"rescue": "linux64"
}],
"provisioners": [{
"type": "ansible",
"playbook_file": "playbooks/tasks/install_arch.yml",
"host_alias": "packer-base-image",
"inventory_directory": "."
"inventory_directory": ".",
"use_proxy": false
}]
}
......@@ -9,5 +9,5 @@
roles:
- install_arch
vars:
- bootstrap_version: "2021.04.01"
- bootstrap_version: "2022.03.01"
- sshd_enable_includes: false
......@@ -14,7 +14,7 @@
when: ansible_facts['os_family'] == "Alpine"
- name: create GRUB embed partitions
command: sgdisk -g --clear -n 1:0:+10M {{ item }} -c 1:boot -t 1:ef02
command: sgdisk -g --clear -n 1:0:+1M {{ item }} -c 1:boot -t 1:ef02
with_items:
- "{{ system_disks }}"
register: sgdisk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment