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

Merge branch 'packer-bootstrap-tweaks' into 'master'

Packer bootstrap tweaks

See merge request archlinux/infrastructure!562
parents 60fb4494 17f4b387
No related branches found
No related tags found
1 merge request!562Packer bootstrap tweaks
Pipeline #17854 passed
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"custom_image": "archlinux" "custom_image": "archlinux"
}, },
"token": "{{ user `hetzner_cloud_api_key` }}", "token": "{{ user `hetzner_cloud_api_key` }}",
"image": "ubuntu-20.04", "image": "ubuntu-22.04",
"server_type": "cx11", "server_type": "cx11",
"ssh_username": "root", "ssh_username": "root",
"location": "fsn1", "location": "fsn1",
......
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
roles: roles:
- install_arch - install_arch
vars: vars:
- bootstrap_version: "2022.03.01" - bootstrap_version: "latest"
- sshd_enable_includes: false - sshd_enable_includes: false
...@@ -42,9 +42,14 @@ ...@@ -42,9 +42,14 @@
- name: touch LOCK file on mountpoint - name: touch LOCK file on mountpoint
file: path=/mnt/LOCK state=touch owner=root group=root mode=0644 file: path=/mnt/LOCK state=touch owner=root group=root mode=0644
- name: fetch latest bootstrap version
set_fact:
bootstrap_version: "{{ lookup('url', 'https://geo.mirror.pkgbuild.com/iso/latest/arch/version') }}"
when: bootstrap_version == 'latest'
- name: download bootstrap image - name: download bootstrap image
get_url: get_url:
url: https://mirrors.kernel.org/archlinux/iso/{{ bootstrap_version }}/archlinux-bootstrap-{{ bootstrap_version }}-x86_64.tar.gz url: https://geo.mirror.pkgbuild.com/iso/{{ bootstrap_version }}/archlinux-bootstrap-{{ bootstrap_version }}-x86_64.tar.gz
dest: /tmp/ dest: /tmp/
- name: extract boostrap image # noqa 208 - name: extract boostrap image # noqa 208
......
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