v0.0.20
This commit is contained in:
41
templates/user-data.j2
Normal file
41
templates/user-data.j2
Normal file
@@ -0,0 +1,41 @@
|
||||
#cloud-config
|
||||
hostname: {{ domain.name }}
|
||||
create_hostname_file: true
|
||||
fqdn: {{ domain.name }}.eom.dev
|
||||
|
||||
apt:
|
||||
generate_mirrorlists: true
|
||||
|
||||
package_reboot_if_required: true
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages: {{ domain.packages }}
|
||||
|
||||
users:
|
||||
- name: eric
|
||||
lock_passwd: True
|
||||
gecos: Eric O'Neill Meehan
|
||||
groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video]
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys: {{ eric_ssh_keys }}
|
||||
|
||||
chpasswd:
|
||||
expire: false
|
||||
users:
|
||||
- name: eric
|
||||
type: text
|
||||
password: 123abc
|
||||
|
||||
ssh_pwauth: false
|
||||
|
||||
growpart:
|
||||
mode: auto
|
||||
devices: ['/']
|
||||
resize_rootfs:
|
||||
type: 'growpart'
|
||||
resizefs: true
|
||||
|
||||
{% if mounts is defined %}
|
||||
mounts: {{ mounts }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user