forked from pool/cloud-init
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
|
--- config/cloud.cfg.tmpl.orig
|
||
|
+++ config/cloud.cfg.tmpl
|
||
|
@@ -79,6 +79,9 @@ cloud_config_modules:
|
||
|
- spacewalk
|
||
|
- yum-add-repo
|
||
|
{% endif %}
|
||
|
+{% if variant in ["opensuse", "suse"] %}
|
||
|
+ - zypper_add_repo
|
||
|
+{% endif %}
|
||
|
{% if variant in ["ubuntu", "unknown", "debian"] %}
|
||
|
- grub-dpkg
|
||
|
- apt-pipelining
|
||
|
@@ -127,7 +130,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", "opensuse", "rhel", "suse", "ubuntu", "freebsd"] %}
|
||
|
distro: {{ variant }}
|
||
|
{% else %}
|
||
|
# Unknown/fallback distro.
|
||
|
@@ -186,4 +189,18 @@ system_info:
|
||
|
groups: [wheel]
|
||
|
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||
|
shell: /bin/tcsh
|
||
|
+{% elif variant in ["opensuse", "suse"] %}
|
||
|
+ # Default user name + that default users groups (if added/used)
|
||
|
+ default_user:
|
||
|
+ name: {{ variant }}
|
||
|
+ lock_passwd: True
|
||
|
+ gecos: {{ variant }} Cloud User
|
||
|
+ groups: [cdrom, users]
|
||
|
+ sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||
|
+ shell: /bin/bash
|
||
|
+ # Other config here will be given to the distro class and/or path classes
|
||
|
+ paths:
|
||
|
+ cloud_dir: /var/lib/cloud/
|
||
|
+ templates_dir: /etc/cloud/templates/
|
||
|
+ ssh_svcname: sshd
|
||
|
{% endif %}
|