Skip to content

Make tofu values available in nix#25

Closed
foodelevator wants to merge 2 commits intomainfrom
tofu-values-to-nix
Closed

Make tofu values available in nix#25
foodelevator wants to merge 2 commits intomainfrom
tofu-values-to-nix

Conversation

@foodelevator
Copy link
Copy Markdown
Member

@foodelevator foodelevator commented Oct 31, 2025

The plan is to make it possible to throw up a whole second deployment by just switching to another tofu workspace. This could be used to test central features such as networking stuff without having a 99.9% chance to cause major downtimes.

This is an alternative to #26

@github-actions
Copy link
Copy Markdown

OpenTofu plan for dsekt-infra

Error: GET https://api.github.com/orgs/datasektionen/actions/variables/NOMAD_ADDR: 401 Bad credentials []
Error: GET https://api.github.com/orgs/datasektionen/actions/variables/NOMAD_ADDR: 401 Bad credentials []

  with github_actions_organization_variable.nomad_addr,
  on github.tf line 1, in resource "github_actions_organization_variable" "nomad_addr":
   1: resource "github_actions_organization_variable" "nomad_addr" {


Error: GET https://api.github.com/repos/datasektionen/bawang/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["bawang"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/typst-bot/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["typst-bot"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/wookieleaks/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["wookieleaks"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/damm2/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["damm2"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/methone/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["methone"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/calypso/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["calypso"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/ddagen/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["ddagen"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/smingo/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["smingo"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/pls/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["pls"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/metasl2/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["metasl2"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/hive/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["hive"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/spam/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["spam"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/metastudent/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["metastudent"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/audio/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["audio"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/styrdokument-bawang/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["styrdokument-bawang"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/durn-the-third/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["durn-the-third"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/metaspexet2/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["metaspexet2"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/duckbot-jr/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["duckbot-jr"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/darkmode/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["darkmode"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/dhost-sallad/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["dhost-sallad"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/skywhale/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["skywhale"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/dbuggen/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["dbuggen"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/sso/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["sso"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/dhost-chat/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["dhost-chat"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/rfinger/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["rfinger"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/pax2/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["pax2"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/dfunkt/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["dfunkt"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/cashflow/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["cashflow"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/djubileet/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["djubileet"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/zfinger/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["zfinger"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/djulkalendern/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["djulkalendern"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/meta-tv-rs/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["meta-tv-rs"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/dhost-commoners/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["dhost-commoners"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/aurora/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["aurora"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/tiki/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["tiki"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/dhost-duckbolt/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["dhost-duckbolt"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/haj/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["haj"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/harmony/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["harmony"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/femto/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["femto"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/yoggi/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["yoggi"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/aaallt2/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["aaallt2"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/pandora/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["pandora"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/betting/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["betting"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/ston/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["ston"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/bea/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["bea"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/jml/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["jml"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/gordian/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["gordian"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/zaiko/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["zaiko"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {


Error: GET https://api.github.com/repos/datasektionen/taitan/actions/secrets/NOMAD_TOKEN: 401 Bad credentials []

  with github_actions_secret.nomad_deploy_token["taitan"],
  on github.tf line 93, in resource "github_actions_secret" "nomad_deploy_token":
  93: resource "github_actions_secret" "nomad_deploy_token" {

❌ Failed to generate plan in Create OpenTofu plan #70

@foodelevator
Copy link
Copy Markdown
Member Author

shut up, clanker!

Comment thread main.tf
Comment on lines +70 to 72
variable "domainname" {
default = "datasektionen.se"
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be something like "(if workspace == 'default' then da else be)tasektionen.se"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant