From 76c01be2606a4ab7bd80ff03b1d2e52d7f2e90ea Mon Sep 17 00:00:00 2001 From: mafyuh Date: Wed, 31 Jul 2024 20:19:27 -0400 Subject: [PATCH] Update terraform/cloud-init.tf --- terraform/cloud-init.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform/cloud-init.tf b/terraform/cloud-init.tf index 133599c..ae35cdd 100644 --- a/terraform/cloud-init.tf +++ b/terraform/cloud-init.tf @@ -28,6 +28,10 @@ resource "proxmox_virtual_environment_file" "cloud_config" { - systemctl start qemu-guest-agent - curl -fsSL https://get.docker.com | sudo sh - su - mafyuh -c 'git clone https://git.mafyuh.dev/mafyuh/iac.git /home/mafyuh/iac' + - su - mafyuh -c 'git config --global user.name "Mafyuh"' + - su - mafyuh -c 'git config --global user.email "matt@mafyuh.com"' + - su - mafyuh -c 'echo "alias dcu=\'docker compose up -d\'" >> /home/mafyuh/.bashrc + - su - mafyuh -c 'echo "alias dcd=\'docker compose down\'" >> /home/mafyuh/.bashrc - echo "done" > /tmp/cloud-config.done EOF @@ -63,6 +67,8 @@ resource "proxmox_virtual_environment_file" "cloud_config2" { - su - mafyuh -c 'git clone https://git.mafyuh.dev/mafyuh/iac.git /home/mafyuh/iac' - su - mafyuh -c 'git config --global user.name "Mafyuh"' - su - mafyuh -c 'git config --global user.email "matt@mafyuh.com"' + - su - mafyuh -c 'echo "alias dcu=\'docker compose up -d\'" >> /home/mafyuh/.bashrc + - su - mafyuh -c 'echo "alias dcd=\'docker compose down\'" >> /home/mafyuh/.bashrc - echo "done" > /tmp/cloud-config.done EOF