virt-install-cloud/user-data

44 lines
854 B
Plaintext
Raw Permalink Normal View History

2018-04-09 22:46:46 -06:00
#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
2018-05-15 14:07:32 -06:00
2018-04-09 22:46:46 -06:00
apt_upgrade: false
2018-05-15 14:07:32 -06:00
2018-04-09 22:46:46 -06:00
manage_etc_hosts: true
2018-05-15 14:07:32 -06:00
2018-04-09 22:46:46 -06:00
fqdn: %FQDN%
2018-05-15 14:07:32 -06:00
2018-04-29 23:09:08 -06:00
timezone: US/Mountain
2018-05-15 14:07:32 -06:00
manage_resolv_conf: true
resolv_conf:
nameservers: ['%NAMESERVER1%', '%NAMESERVER2%']
searchdomains:
- %DOMAIN%
domain: %DOMAIN%
#datasource_list:
# - ConfigDrive
2018-04-09 22:46:46 -06:00
packages:
- openssh-server
2018-04-10 09:48:50 -06:00
- nano
2018-04-09 22:46:46 -06:00
runcmd:
2018-05-13 20:55:28 -06:00
- [ touch, /etc/cloud/cloud-init.disabled ]
2018-10-11 10:16:14 -06:00
- [ rm, -f, /etc/sudoers.d/debian-cloud-init ]
2018-05-13 21:38:11 -06:00
bootcmd:
2018-05-15 14:36:54 -06:00
- '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'