blob: 9b3e8ec7d8265e47efc6c8f1a8acf0422169b4d3 (
plain)
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
42
43
44
45
46
47
48
49
50
|
system {
host-name vyos
login {
user vyos {
authentication {
{% if cloud_init == "true" %}
encrypted-password "*"
{% else %}
encrypted-password "$6$MjV2YvKQ56q$QbL562qhRoyUu8OaqrXagicvcsNpF1HssCY06ZxxghDJkBCfSfTE/4FlFB41xZcd/HqYyVBuRt8Zyq3ozJ0dc."
{% endif %}
plaintext-password ""
}
level admin
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
ntp {
server "0.pool.ntp.org"
server "1.pool.ntp.org"
server "2.pool.ntp.org"
}
config-management {
commit-revisions 100
}
}
interfaces {
{% if cloud_init == "true" %}
ethernet eth0 {
address dhcp
}
{% endif %}
loopback lo {
}
}
{% if cloud_init == "true" %}
service {
ssh {
port 22
}
}
{% endif %}
|