mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-14 00:17:57 +00:00
Delete terraform/main.tf
This commit is contained in:
@@ -1,47 +0,0 @@
|
|||||||
resource "google_project_service" "compute" {
|
|
||||||
project = var.project_id
|
|
||||||
service = "compute.googleapis.com"
|
|
||||||
disable_on_destroy = false
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "google_compute_firewall" "yunohost_allow" {
|
|
||||||
name = "allow-yunohost"
|
|
||||||
network = "default"
|
|
||||||
direction = "INGRESS"
|
|
||||||
allow {
|
|
||||||
protocol = "tcp"
|
|
||||||
ports = ["22", "25", "80", "443", "587", "993", "5222", "5269"]
|
|
||||||
}
|
|
||||||
allow {
|
|
||||||
protocol = "udp"
|
|
||||||
ports = ["53", "5353"]
|
|
||||||
}
|
|
||||||
source_ranges = ["0.0.0.0/0"]
|
|
||||||
target_tags = ["yunohost"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "google_compute_instance" "yunohost" {
|
|
||||||
name = "yunohost"
|
|
||||||
machine_type = "e2-micro"
|
|
||||||
zone = "us-west1-a"
|
|
||||||
tags = ["yunohost"]
|
|
||||||
boot_disk {
|
|
||||||
initialize_params {
|
|
||||||
image = "projects/debian-cloud/global/images/family/debian-12"
|
|
||||||
size = 30
|
|
||||||
type = "pd-standard"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
network_interface {
|
|
||||||
network = "default"
|
|
||||||
access_config {}
|
|
||||||
}
|
|
||||||
metadata = {
|
|
||||||
startup-script = file("${path.module}/startup.sh")
|
|
||||||
}
|
|
||||||
depends_on = [google_project_service.compute]
|
|
||||||
}
|
|
||||||
|
|
||||||
output "external_ip" {
|
|
||||||
value = google_compute_instance.yunohost.network_interface[0].access_config[0].nat_ip
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user