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