first functional commit
This commit is contained in:
16
templates/cloud_init.cfg
Normal file
16
templates/cloud_init.cfg
Normal file
@@ -0,0 +1,16 @@
|
||||
#cloud-config
|
||||
|
||||
users:
|
||||
- name: ${init_user_name}
|
||||
groups: wheel
|
||||
sudo: ['ALL=(ALL) NOPASSWD:ALL']
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
- ${init_ssh_auth_key}
|
||||
|
||||
growpart:
|
||||
mode: auto
|
||||
devices: ['/']
|
||||
|
||||
package_update: true
|
||||
package_upgrade: false
|
||||
6
templates/site.temp
Normal file
6
templates/site.temp
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
roles:
|
||||
- ${KYBUS_SELECTED_CVE}
|
||||
...
|
||||
22
templates/vars.temp
Normal file
22
templates/vars.temp
Normal file
@@ -0,0 +1,22 @@
|
||||
variable "init_ssh_auth_key" {
|
||||
default = ${SSH_PUB_KEY}
|
||||
}
|
||||
|
||||
variable "init_user_name" {
|
||||
default = "${SSH_DEFAULT_USER}"
|
||||
}
|
||||
|
||||
# 30GB default (Size in bytes)
|
||||
variable "base_disk_size" {
|
||||
default = ${VM_DISK_SIZE}
|
||||
}
|
||||
|
||||
# 4GB of RAM per deployed host (Size in bytes)
|
||||
variable "base_ram_size" {
|
||||
default = ${VM_RAM_SIZE}
|
||||
}
|
||||
|
||||
variable "kybus_source" {
|
||||
default = "${KYBUS_BASE_IMAGE}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user