summaryrefslogtreecommitdiff
path: root/roles/install-config
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install-config')
-rw-r--r--roles/install-config/templates/config.boot.j214
1 files changed, 2 insertions, 12 deletions
diff --git a/roles/install-config/templates/config.boot.j2 b/roles/install-config/templates/config.boot.j2
index 30506f8..852905e 100644
--- a/roles/install-config/templates/config.boot.j2
+++ b/roles/install-config/templates/config.boot.j2
@@ -10,7 +10,9 @@ system {
{% endif %}
plaintext-password ""
}
+{% if vyos_version | regex_search('(^1\.2)') %}
level admin
+{% endif %}
}
}
syslog {
@@ -33,18 +35,6 @@ system {
}
}
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 %}