summaryrefslogtreecommitdiff
path: root/config/cloud.cfg.tmpl
diff options
context:
space:
mode:
authorRobert Schweikert <rjschwei@suse.com>2017-09-21 07:38:48 -0400
committerScott Moser <smoser@brickies.net>2017-09-21 14:15:50 -0400
commit0451a9f60960da56e3af4f97bbcece3d98482f86 (patch)
tree6028fe4d5ba2cde48545bfc8a2a6142785ace7b6 /config/cloud.cfg.tmpl
parent243ec59fb62a8710430f9ba1e2490ee964c1abc0 (diff)
downloadvyos-cloud-init-0451a9f60960da56e3af4f97bbcece3d98482f86.tar.gz
vyos-cloud-init-0451a9f60960da56e3af4f97bbcece3d98482f86.zip
suse: updates to templates to support openSUSE and SLES.
Things done here: - identify 'suse' as a variant in util.system_info and also tools/render-cloudcfg. - update systemd and cloud.cfg templates for suse specific changes. LP: #1718640
Diffstat (limited to 'config/cloud.cfg.tmpl')
-rw-r--r--config/cloud.cfg.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl
index a537d65a..50e3bd86 100644
--- a/config/cloud.cfg.tmpl
+++ b/config/cloud.cfg.tmpl
@@ -127,7 +127,7 @@ cloud_final_modules:
# (not accessible to handlers/transforms)
system_info:
# This will affect which distro class gets used
-{% if variant in ["centos", "debian", "fedora", "rhel", "ubuntu", "freebsd"] %}
+{% if variant in ["centos", "debian", "fedora", "rhel", "suse", "ubuntu", "freebsd"] %}
distro: {{ variant }}
{% else %}
# Unknown/fallback distro.
@@ -163,13 +163,17 @@ system_info:
primary: http://ports.ubuntu.com/ubuntu-ports
security: http://ports.ubuntu.com/ubuntu-ports
ssh_svcname: ssh
-{% elif variant in ["centos", "rhel", "fedora"] %}
+{% elif variant in ["centos", "rhel", "fedora", "suse"] %}
# Default user name + that default users groups (if added/used)
default_user:
name: {{ variant }}
lock_passwd: True
gecos: {{ variant }} Cloud User
+{% if variant == "suse" %}
+ groups: [cdrom, users]
+{% else %}
groups: [wheel, adm, systemd-journal]
+{% endif %}
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
# Other config here will be given to the distro class and/or path classes