Pim Kunis
111bf68a0a
move docker swarm ansible to this repo move thecloud ansible to this repo support data disks in terraform
35 lines
696 B
Text
35 lines
696 B
Text
#cloud-config
|
|
hostname: "${hostname}"
|
|
manage_etc_hosts: true
|
|
disable_root: false
|
|
|
|
chpasswd:
|
|
list: |
|
|
root:root
|
|
expire: False
|
|
ssh_pwauth: true
|
|
|
|
ssh_authorized_keys:
|
|
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOodpLr+FDRyKyHjucHizNLVFHZ5AQmE9GmxMnOsSoaw pimkunis@thinkpadpim"
|
|
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"
|
|
|
|
%{ if data_disk != null }
|
|
device_aliases:
|
|
data: /dev/vdb
|
|
disk_setup:
|
|
data:
|
|
table_type: 'gpt'
|
|
layout: true
|
|
overwrite: false
|
|
fs_type:
|
|
- label: 'data'
|
|
filesystem: 'ext4'
|
|
overwrite: false
|
|
mounts:
|
|
- ["data.1", "/mnt/data"]
|
|
%{ endif }
|
|
|
|
# TODO: Do we need this?
|
|
runcmd:
|
|
- dhclient -r
|
|
- dhclient
|