Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: combine dogfood regions, use tailscale#5741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 1 commit intomainfromdean/dogfood-tailscale
Jan 17, 2023
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletionsdogfood/main.tf
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,10 +13,19 @@ terraform {

# User parameters

variable "region" {
type = string
description = "Which region to deploy to."
default = "us-pittsburgh"
validation {
condition = contains(["us-pittsburgh", "eu-helsinki", "ap-sydney"], var.region)
error_message = "Region must be one of us-pittsburg, eu-helsinki, or ap-sydney."
}
}

variable "dotfiles_uri" {
type = string
description = <<-EOF
default = ""
Dotfiles repo URI (optional)

see https://dotfiles.github.io
Expand All@@ -30,17 +39,23 @@ variable "datocms_api_token" {
default = ""
}

# Admin parameters
locals {
// These are Tailscale IP addresses. Ask Dean or Kyle for help.
docker_host = {
"" = "tcp://100.94.74.63:2375"
"us-pittsburgh" = "tcp://100.94.74.63:2375"
"eu-helsinki" = "tcp://100.117.102.81:2375"
"ap-sydney" = "tcp://100.127.2.1:2375"
}
}

provider "docker" {
host ="unix:///var/run/dogfood-docker.sock"
host =lookup(local.docker_host,var.region)
}

provider "coder" {
}
provider "coder" {}

data "coder_workspace" "me" {
}
data "coder_workspace" "me" {}

resource "coder_agent" "dev" {
arch = "amd64"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp