Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Amin Vakil
infrastructure
Commits
a3ca856a
Commit
a3ca856a
authored
Apr 26, 2022
by
Evangelos Foutras
🐱
Browse files
Merge branch 'packer-bootstrap-tweaks' into 'master'
Packer bootstrap tweaks See merge request
archlinux/infrastructure!562
parents
60fb4494
17f4b387
Changes
3
Hide whitespace changes
Inline
Side-by-side
packer/archlinux.json
View file @
a3ca856a
...
...
@@ -10,7 +10,7 @@
"custom_image"
:
"archlinux"
},
"token"
:
"{{ user `hetzner_cloud_api_key` }}"
,
"image"
:
"ubuntu-2
0
.04"
,
"image"
:
"ubuntu-2
2
.04"
,
"server_type"
:
"cx11"
,
"ssh_username"
:
"root"
,
"location"
:
"fsn1"
,
...
...
playbooks/tasks/install_arch.yml
View file @
a3ca856a
...
...
@@ -9,5 +9,5 @@
roles
:
-
install_arch
vars
:
-
bootstrap_version
:
"
2022.03.01
"
-
bootstrap_version
:
"
latest
"
-
sshd_enable_includes
:
false
roles/install_arch/tasks/main.yml
View file @
a3ca856a
...
...
@@ -42,9 +42,14 @@
-
name
:
touch LOCK file on mountpoint
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
get_url
:
url
:
https://mirror
s.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/
-
name
:
extract boostrap image
# noqa 208
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment