From 250aa45f74e29b95f81b24811c972369605bd24e Mon Sep 17 00:00:00 2001 From: Vijay Balakrishna Date: Tue, 5 Nov 2019 16:00:21 -0500 Subject: [PATCH] Add static cloud.cfg file for OL7. Adding OL specific cloud.cfg file to enable updates cloud-init config file independently, adding newly verified ntp module. Orabug: 30435672 Signed-off-by: Vijay Balakrishna Signed-off-by: Si-Wei Liu Acked-by: Joe Kennedy Reviewed-by: Laurence Rochfort --- ol/README.ol | 6 ++++++ ol/cloud.cfg | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 ol/README.ol create mode 100644 ol/cloud.cfg diff --git a/ol/README.ol b/ol/README.ol new file mode 100644 index 0000000..f59d559 --- /dev/null +++ b/ol/README.ol @@ -0,0 +1,6 @@ +The following cloud-init modules are currently unsupported on this OS: + - apt_update_upgrade ('apt_update', 'apt_upgrade', 'apt_mirror', 'apt_preserve_sources_list', 'apt_old_mirror', 'apt_sources', 'debconf_selections', 'packages' options) + - byobu ('byobu_by_default' option) + - chef + - grub_dpkg + - rh_subscription diff --git a/ol/cloud.cfg b/ol/cloud.cfg new file mode 100644 index 0000000..2ee1fb3 --- /dev/null +++ b/ol/cloud.cfg @@ -0,0 +1,69 @@ +users: + - default + +disable_root: 1 +ssh_pwauth: 0 + +mount_default_fields: [~, ~, 'auto', 'defaults,nofail,x-systemd.requires=cloud-init.service', '0', '2'] +resize_rootfs_tmp: /dev +ssh_deletekeys: 0 +ssh_genkeytypes: ~ +syslog_fix_perms: ~ +disable_vmware_customization: false + +cloud_init_modules: + - disk_setup + - migrator + - bootcmd + - write-files + - growpart + - resizefs + - set_hostname + - update_hostname + - update_etc_hosts + - rsyslog + - users-groups + - ssh + +cloud_config_modules: + - mounts + - locale + - set-passwords + - ntp + - yum-add-repo + - package-update-upgrade-install + - timezone + - puppet + - chef + - salt-minion + - mcollective + - disable-ec2-metadata + - runcmd + +cloud_final_modules: + - rightscale_userdata + - scripts-per-once + - scripts-per-boot + - scripts-per-instance + - scripts-user + - ssh-authkey-fingerprints + - keys-to-console + - phone-home + - final-message + - power-state-change + +system_info: + default_user: + name: cloud-user + lock_passwd: true + gecos: Cloud User + groups: [adm, systemd-journal] + sudo: ["ALL=(ALL) NOPASSWD:ALL"] + shell: /bin/bash + distro: rhel + paths: + cloud_dir: /var/lib/cloud + templates_dir: /etc/cloud/templates + ssh_svcname: sshd + +# vim:syntax=yaml -- 1.8.3.1