feat: fully vibecoded configuration
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user