Clean repository: organized structure and GitOps setup
- Organized root directory structure - Moved orphan files to proper locations - Updated .gitignore to ignore temporary files - Set up Gitea Runner for GitOps automation - Fixed Tailscale access issues - Added workflow for automated Nomad deployment
This commit is contained in:
25
infrastructure/opentofu/providers/digitalocean/main.tf
Normal file
25
infrastructure/opentofu/providers/digitalocean/main.tf
Normal file
@@ -0,0 +1,25 @@
|
||||
# DigitalOcean Provider 配置
|
||||
|
||||
terraform {
|
||||
required_providers {
|
||||
digitalocean = {
|
||||
source = "digitalocean/digitalocean"
|
||||
version = "~> 2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# DigitalOcean 提供者配置
|
||||
provider "digitalocean" {
|
||||
token = var.do_config.token
|
||||
}
|
||||
|
||||
# 创建 DigitalOcean Droplet 示例
|
||||
resource "digitalocean_droplet" "web" {
|
||||
image = "ubuntu-22-04-x64"
|
||||
name = "web-1"
|
||||
region = var.do_config.region
|
||||
size = "s-1vcpu-1gb"
|
||||
|
||||
tags = ["web", "mgmt"]
|
||||
}
|
||||
Reference in New Issue
Block a user