summaryrefslogtreecommitdiff
path: root/roles/install-config/templates/config.boot.j2
blob: 30506f829c0f5d7aa643617ce607fb9af7c9eec4 (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" and not ( keep_user is defined and keep_user == "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" and not ( empty_config is defined and empty_config == "true" ) %}
    ethernet eth0 {
        address dhcp
    }
{% endif %}
    loopback lo {
    }
}
{% if cloud_init == "true" and not ( empty_config is defined and empty_config == "true" ) %}
service {
    ssh {
        port 22
    }
}
{% endif %}