Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
16049666
Commit
16049666
authored
Mar 19, 2019
by
Sven-Hendrik Haase
Browse files
Add the new boi: dragon.archlinux.org
parent
b2e22da8
Changes
3
Hide whitespace changes
Inline
Side-by-side
host_vars/dragon.archlinux.org
0 → 100644
View file @
16049666
---
hostname: "dragon"
ipv4_address: "195.201.167.210"
ipv4_netmask: "/26"
ipv6_address: "2a01:4f8:13a:102a::2"
ipv6_netmask: "/128"
ipv4_gateway: "195.201.167.193"
ipv6_gateway: "fe80::1"
filesystem: btrfs
raid_level: raid0
system_disks:
- /dev/nvme0n1
- /dev/nvme1n1
archbuild_fs: 'btrfs'
zabbix_agent_templates:
- Template OS Linux
hosts
View file @
16049666
...
...
@@ -4,6 +4,7 @@ vostok.archlinux.org
apollo.archlinux.org
soyuz.archlinux.org
luna.archlinux.org
dragon.archlinux.org
[pia]
ind.mirror.pkgbuild.com
...
...
@@ -40,6 +41,7 @@ luna.archlinux.org
orion.archlinux.org
[buildservers]
dragon.archlinux.org
soyuz.archlinux.org
sgp.mirror.pkgbuild.com
...
...
roles/install_arch/tasks/main.yml
View file @
16049666
...
...
@@ -9,7 +9,7 @@
when
:
"
'Hetzner
Rescue'
not
in
motd_contents.stdout"
-
name
:
partition and format the disks (btrfs)
command
:
mkfs.btrfs -f -L rootfs -d raid
1 /dev/sda /dev/sdb
command
:
mkfs.btrfs -f -L rootfs -d
{{
raid
_level|default(raid1) }} {{ system_disks|join(' ') }}
when
:
filesystem == "btrfs" and system_disks|length ==
2
-
name
:
partition and format the disks (btrfs)
...
...
@@ -49,11 +49,11 @@
-
name
:
download bootstrap image
get_url
:
url
:
https://mirrors.kernel.org/archlinux/iso/
latest
/archlinux-bootstrap-2019.0
2
.01-x86_64.tar.gz
url
:
https://mirrors.kernel.org/archlinux/iso/
2019.03.01
/archlinux-bootstrap-2019.0
3
.01-x86_64.tar.gz
dest
:
/tmp/
-
name
:
extract boostrap image
command
:
tar xf archlinux-bootstrap-2019.0
2
.01-x86_64.tar.gz
command
:
tar xf archlinux-bootstrap-2019.0
3
.01-x86_64.tar.gz
args
:
chdir
:
/tmp
creates
:
/tmp/root.x86_64
...
...
@@ -148,7 +148,7 @@
line
:
'
hosts:
files
mymachines
resolve
myhostname'
-
name
:
enable services inside chroot
command
:
chroot /mnt systemctl enable sshd systemd-networkd systemd-resolved
command
:
chroot /mnt systemctl enable sshd systemd-networkd systemd-resolved
fstrim
-
set_fact
:
pubkey_list="{{ lookup('file', "{{ playbook_dir }}/../../pubkeys/" + item) }}"
register
:
pubkeys
...
...
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