mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-13 16:07:55 +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" {
|
||||
project = var.project_id
|
||||
service = "compute.googleapis.com"
|
||||
@@ -19,21 +24,26 @@ resource "google_compute_firewall" "gitea_allow" {
|
||||
resource "google_compute_instance" "gitea" {
|
||||
name = "gitea"
|
||||
machine_type = "e2-micro"
|
||||
zone = "us-west1-a"
|
||||
tags = ["gitea"]
|
||||
|
||||
boot_disk {
|
||||
initialize_params {
|
||||
image = "projects/fedora-cloud/global/images/family/fedora-cloud-base"
|
||||
image = data.google_compute_image.fedora.self_link
|
||||
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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user