mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
- Allow for single and multi disk installs - Use modern parted module to cut down on manual code - Allow for specifying concrete drives to use for the system - Change use from unarchive module which is deprecated to get_url + manual tar - Allow for DHCP when setting up networking - When using btrfs, automatically compress with lzo (I'd use zstd but grub can't boot off of zstd yet) - Use playbook_dir as a relativ search path start to find the pubkeys which is more reliable than just relative path - Clean pacman cache after base system installation
24 lines
471 B
Django/Jinja
24 lines
471 B
Django/Jinja
[Match]
|
|
Name={{ network_interface }}
|
|
|
|
[Network]
|
|
{% for server in dns_servers %}
|
|
DNS={{server}}
|
|
{% endfor %}
|
|
Gateway={{ ipv4_gateway }}
|
|
{% if ipv6_gateway is defined %}
|
|
Gateway={{ ipv6_gateway }}
|
|
{% endif %}
|
|
Domains=archlinux.org.
|
|
|
|
[Address]
|
|
Address={{ ipv4_address }}{{ ipv4_netmask }}
|
|
{% if ipv4_netmask == "/32" %}
|
|
Peer={{ ipv4_gateway }}{{ ipv4_netmask}}
|
|
{% endif %}
|
|
|
|
{% if ipv6_address is defined %}
|
|
[Address]
|
|
Address={{ ipv6_address }}{{ ipv6_netmask }}
|
|
{% endif %}
|