diff options
Diffstat (limited to 'roles/install-config/templates/config.boot.j2')
-rw-r--r-- | roles/install-config/templates/config.boot.j2 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/roles/install-config/templates/config.boot.j2 b/roles/install-config/templates/config.boot.j2 new file mode 100644 index 0000000..30506f8 --- /dev/null +++ b/roles/install-config/templates/config.boot.j2 @@ -0,0 +1,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 %} |