first functional commit

This commit is contained in:
Pin
2022-10-02 12:31:34 -04:00
parent d367398766
commit 46d46a4e36
52 changed files with 1216 additions and 0 deletions

16
templates/cloud_init.cfg Normal file
View 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
View File

@@ -0,0 +1,6 @@
---
- hosts: all
become: true
roles:
- ${KYBUS_SELECTED_CVE}
...

22
templates/vars.temp Normal file
View 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}"
}