diff --git a/cloud.cfg b/cloud.cfg new file mode 100644 index 0000000..267c0d4 --- /dev/null +++ b/cloud.cfg @@ -0,0 +1,114 @@ +# vim: ft=yaml +# cloud-config + +users: + - default + +disable_root: true +mount_default_fields: [~, ~, 'auto', 'defaults,nofail,x-systemd.requires=cloud-init.service,_netdev', '0', '2'] +resize_rootfs_tmp: /dev +ssh_pwauth: false +preserve_hostname: false +ssh_deletekeys: true +ssh_genkeytypes: ['rsa', 'ecdsa', 'ed25519'] +syslog_fix_perms: ~ +disable_vmware_customization: false +package_update: true +package_upgrade: true +package_reboot_if_required: true + +device_aliases: + swap_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1 + data_disk: /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi2 +disk_setup: + swap_disk: + table_type: gpt + layout: true + overwrite: false + data_disk: + table_type: gpt + layout: true + overwrite: false +fs_setup: + - label: swap + filesystem: swap + device: swap_disk.1 + overwrite: false + - label: data + filesystem: xfs + device: data_disk.1 + overwrite: false +mounts: + - ['swap_disk.1', 'none', 'swap', 'sw', '0', '0'] + - ['data_disk.1', '/data', 'xfs', 'defaults', '0', '2'] + +runcmd: + - touch /etc/cloud/cloud-init.disabled + +cloud_init_modules: + - migrator + - seed_random + - bootcmd + - write-files + - growpart + - resizefs + - disk_setup + - mounts + - set_hostname + - update_hostname + - update_etc_hosts + - ca-certs + - rsyslog + - users-groups + - ssh + +cloud_config_modules: + - ssh-import-id + - locale + - set-passwords + - rh_subscription + - spacewalk + - yum-add-repo + - ntp + - timezone + - disable-ec2-metadata + - runcmd + +cloud_final_modules: + - package-update-upgrade-install + - write-files-deferred + - puppet + - chef + - ansible + - mcollective + - salt-minion + - reset_rmc + - refresh_rmc_and_interface + - rightscale_userdata + - scripts-vendor + - scripts-per-once + - scripts-per-boot + - scripts-per-instance + - scripts-user + - ssh-authkey-fingerprints + - keys-to-console + - install-hotplug + - phone-home + - final-message + - power-state-change + +system_info: + distro: rocky + default_user: + name: ansible + lock_passwd: true + gecos: Ansible User + groups: [] + sudo: ["ALL=(ALL) NOPASSWD:ALL"] + shell: /bin/bash + paths: + cloud_dir: /var/lib/cloud/ + templates_dir: /etc/cloud/templates/ + ssh_svcname: sshd + network: + renderers: ['sysconfig', 'eni', 'netplan', 'network-manager', 'networkd']