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 %}