summaryrefslogtreecommitdiffstats
path: root/roles/network/templates/wifi-connection.nmconnection.j2
blob: 0fd69cb11e5db4a577e10087a208637f74384488 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[connection]
id={{ network_wifi_ssid }}
uuid={{ network_wifi_ssid | to_uuid }}
type=wifi
autoconnect=true

[wifi]
mode=infrastructure
ssid={{ network_wifi_ssid }}

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk={{ network_wifi_pass }}

[ipv4]
{% if network_ipv4_address is defined %}
method=manual
addresses={{ network_ipv4_address }}
gateway={{ network_ipv4_gateway }}
{% if network_ipv4_dns is defined %}
dns={{ network_ipv4_dns }}
{% endif %}
{% else %}
method=auto
{% endif %}

[ipv6]
addr-gen-mode=default
{% if network_ipv6_address is defined %}
method=manual
addresses={{ network_ipv6_address }}
gateway={{ network_ipv6_gateway }}
{% if network_ipv6_dns is defined %}
dns={{ network_ipv6_dns }}
{% endif %}
{% else %}
method=auto
{% endif %}

[proxy]