mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-14 00:17:57 +00:00
Update main.tf
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
data "google_compute_image" "fedora" {
|
||||||
|
family = "fedora-cloud-41"
|
||||||
|
project = "fedora-cloud"
|
||||||
|
}
|
||||||
|
|
||||||
resource "google_project_service" "compute" {
|
resource "google_project_service" "compute" {
|
||||||
project = var.project_id
|
project = var.project_id
|
||||||
service = "compute.googleapis.com"
|
service = "compute.googleapis.com"
|
||||||
@@ -19,21 +24,26 @@ resource "google_compute_firewall" "gitea_allow" {
|
|||||||
resource "google_compute_instance" "gitea" {
|
resource "google_compute_instance" "gitea" {
|
||||||
name = "gitea"
|
name = "gitea"
|
||||||
machine_type = "e2-micro"
|
machine_type = "e2-micro"
|
||||||
|
zone = "us-west1-a"
|
||||||
tags = ["gitea"]
|
tags = ["gitea"]
|
||||||
|
|
||||||
boot_disk {
|
boot_disk {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
image = "projects/fedora-cloud/global/images/family/fedora-cloud-base"
|
image = data.google_compute_image.fedora.self_link
|
||||||
size = 30
|
size = 30
|
||||||
type = "pd-standard"
|
type = "pd-standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
network_interface {
|
network_interface {
|
||||||
network = "default"
|
network = "default"
|
||||||
access_config {}
|
access_config {}
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata = {
|
metadata = {
|
||||||
startup-script = file("${path.module}/startup.sh")
|
startup-script = file("${path.module}/startup.sh")
|
||||||
}
|
}
|
||||||
|
|
||||||
depends_on = [google_project_service.compute]
|
depends_on = [google_project_service.compute]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user