feat: fully vibecoded configuration

This commit is contained in:
2026-08-12 15:01:40 +02:00
parent 1301b05977
commit b9e736cd80
9 changed files with 399 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
resource "ovh_cloud_project_keypair" "deploy_key" {
service_name = var.ovh_service_name
name = "coolify_deploy_key"
public_key = var.ssh_public_key
region = var.region
}
resource "ovh_cloud_project_instance" "coolify" {
service_name = var.ovh_service_name
name = var.instance_name
region = var.region
flavor_name = var.flavor_name
image_name = var.image_name
key_pair = ovh_cloud_project_keypair.deploy_key.name
}
# Generate inventory file for Ansible
resource "local_file" "ansible_inventory" {
content = templatefile("${path.module}/../ansible/inventory.tpl", {
vps_ip = ovh_cloud_project_instance.coolify.ipv4_addresses[0]
})
filename = "${path.module}/../ansible/inventory.ini"
}