A custom modification of the virt-install-cloud.sh script located at https://github.com/clauded/virt-tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
854 B

#cloud-config
users:
- name: testuser
lock-passwd: false
passwd: hashed-passwd-here
ssh_authorized_keys:
- ssh-key-here
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
ssh_pwauth: True
package_upgrade: true
apt_upgrade: false
manage_etc_hosts: true
fqdn: %FQDN%
timezone: US/Mountain
manage_resolv_conf: true
resolv_conf:
nameservers: ['%NAMESERVER1%', '%NAMESERVER2%']
searchdomains:
- %DOMAIN%
domain: %DOMAIN%
#datasource_list:
# - ConfigDrive
packages:
- openssh-server
- nano
runcmd:
- [ touch, /etc/cloud/cloud-init.disabled ]
- [ rm, -f, /etc/sudoers.d/debian-cloud-init ]
bootcmd:
- 'mv -f /etc/network/interfaces.d/50-cloud-init.cfg /etc/network/interfaces'
- 'echo -e "domain %DOMAIN%\nsearch %DOMAIN%\nnameserver %NAMESERVER1%\nnameserver %NAMESERVER2%" >/etc/resolv.conf'