summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorvteratipally <67723486+vteratipally@users.noreply.github.com>2022-01-20 14:26:02 -0800
committerGitHub <noreply@github.com>2022-01-20 16:26:02 -0600
commit2a08d592f7fbdb64452eb2da14592ae5aec806ea (patch)
tree320cfddf64504d062a99e72cb7ba022e23a3487c /config
parent6c8770f5336c8c74dc8208f50ab0a479363d1332 (diff)
downloadvyos-cloud-init-2a08d592f7fbdb64452eb2da14592ae5aec806ea.tar.gz
vyos-cloud-init-2a08d592f7fbdb64452eb2da14592ae5aec806ea.zip
Add support for gentoo templates and cloud.cfg (#1179)
Diffstat (limited to 'config')
-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 37c223f3..fb4b456c 100644
--- a/config/cloud.cfg.tmpl
+++ b/config/cloud.cfg.tmpl
@@ -177,7 +177,7 @@ cloud_final_modules:
system_info:
# This will affect which distro class gets used
{% if variant in ["almalinux", "alpine", "amazon", "arch", "centos", "cloudlinux", "debian",
- "eurolinux", "fedora", "freebsd", "netbsd", "miraclelinux", "openbsd", "openEuler",
+ "eurolinux", "fedora", "freebsd", "gentoo", "netbsd", "miraclelinux", "openbsd", "openEuler",
"photon", "rhel", "rocky", "suse", "ubuntu", "virtuozzo"] %}
distro: {{ variant }}
{% elif variant in ["dragonfly"] %}
@@ -232,7 +232,7 @@ system_info:
security: http://ports.ubuntu.com/ubuntu-ports
ssh_svcname: ssh
{% elif variant in ["almalinux", "alpine", "amazon", "arch", "centos", "cloudlinux", "eurolinux",
- "fedora", "miraclelinux", "openEuler", "rhel", "rocky", "suse", "virtuozzo"] %}
+ "fedora", "gentoo", "miraclelinux", "openEuler", "rhel", "rocky", "suse", "virtuozzo"] %}
# Default user name + that default users groups (if added/used)
default_user:
{% if variant == "amazon" %}
@@ -246,6 +246,10 @@ system_info:
{% endif %}
{% if variant == "suse" %}
groups: [cdrom, users]
+{% elif variant == "gentoo" %}
+ groups: [users, wheel]
+ primary_group: users
+ no_user_group: true
{% elif variant == "alpine" %}
groups: [adm, sudo]
{% elif variant == "arch" %}