generated from CC/VMServiceTemplate
Compare commits
9 Commits
7324fa464f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4fb9000f79 | |||
|
|
0d3b95d5ba | ||
|
|
67c0eda7f7 | ||
|
|
1d92ea993c | ||
|
|
7779b0935d | ||
|
|
c612a45b95 | ||
|
|
335e447842 | ||
|
|
605e102f25 | ||
|
|
41146f5676 |
@@ -3,6 +3,6 @@
|
|||||||
"n8n":
|
"n8n":
|
||||||
"hosts":
|
"hosts":
|
||||||
"n8n-01":
|
"n8n-01":
|
||||||
"ansible_host": "192.168.10.107"
|
"ansible_host": "192.168.10.106"
|
||||||
"vars":
|
"vars":
|
||||||
"ansible_user": "cloud"
|
"ansible_user": "cloud"
|
||||||
|
|||||||
@@ -14,5 +14,5 @@ terraform {
|
|||||||
skip_region_validation = true
|
skip_region_validation = true
|
||||||
use_path_style = true
|
use_path_style = true
|
||||||
use_lockfile = true
|
use_lockfile = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ locals {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "proxmox_virtual_environment_file" "cloud_config" {
|
resource "proxmox_virtual_environment_file" "cloud_config" {
|
||||||
content_type = "snippets"
|
content_type = "snippets"
|
||||||
datastore_id = "local"
|
datastore_id = "local"
|
||||||
@@ -31,7 +32,7 @@ resource "proxmox_virtual_environment_file" "cloud_config" {
|
|||||||
- docker
|
- docker
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
ssh-authorized-keys:
|
ssh-authorized-keys:
|
||||||
- "${var.vm_user_sshkey}" # Inject user's SSH key
|
- "${var.vm_user_sshkey}" # +++ Needs to be put into a variable injected by git actions secrets
|
||||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
@@ -42,6 +43,7 @@ resource "proxmox_virtual_environment_file" "cloud_config" {
|
|||||||
- gnupg
|
- gnupg
|
||||||
- lsb-release
|
- lsb-release
|
||||||
- unattended-upgrades
|
- unattended-upgrades
|
||||||
|
- rsync
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- systemctl enable qemu-guest-agent
|
- systemctl enable qemu-guest-agent
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ variable "instance_configs" {
|
|||||||
vmid = string
|
vmid = string
|
||||||
}))
|
}))
|
||||||
default = [
|
default = [
|
||||||
{ crispy_name = "snap", vmid = "9002" },
|
{ crispy_name = "snap", vmid = "902" },
|
||||||
{ crispy_name = "crackle", vmid = "9000" },
|
{ crispy_name = "crackle", vmid = "901" },
|
||||||
{ crispy_name = "pop", vmid = "900" }
|
{ crispy_name = "pop", vmid = "900" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,11 +16,17 @@ provider "proxmox" {
|
|||||||
endpoint = var.pm_api_url
|
endpoint = var.pm_api_url
|
||||||
api_token = var.pm_api_token
|
api_token = var.pm_api_token
|
||||||
insecure = true
|
insecure = true
|
||||||
|
# === FIX THIS ===
|
||||||
|
ssh {
|
||||||
|
agent = true
|
||||||
|
username = "root"
|
||||||
|
password = "Ishimaru17"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
provider "aws" {
|
provider "aws" {
|
||||||
region = "garage"
|
region = "garage"
|
||||||
access_key = "GK242d456c0692a9d4cc102206"
|
access_key = "GK242d456c0692a9d4cc102206"
|
||||||
secret_key = "1d7e22b7a8892cb11b569017659aa511b37b53287c4d1699c310d9f8ac76df09"
|
secret_key = "1d7e22b7a8892cb11b569017659aa511b37b53287c4d1699c310d9f8ac76df09"
|
||||||
# shared_credentials_files = ["$HOME/.aws/credentials"]
|
# shared_credentials_files = ["$HOME/.aws/credentials"]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user