manage IUCLabs org settings with billing email from Vault
This commit is contained in:
@@ -28,9 +28,27 @@ provider "github" {
|
||||
EOF
|
||||
}
|
||||
|
||||
generate "imports" {
|
||||
path = "imports.tf"
|
||||
if_exists = "overwrite"
|
||||
disable = lookup(local.github.settings, local.owner, null) == null
|
||||
contents = <<EOF
|
||||
import {
|
||||
to = github_organization_settings.this[0]
|
||||
id = "${local.owner}"
|
||||
}
|
||||
|
||||
import {
|
||||
to = github_actions_runner_group.default[0]
|
||||
id = "1"
|
||||
}
|
||||
EOF
|
||||
}
|
||||
|
||||
inputs = {
|
||||
owner = local.owner
|
||||
team = { for k, v in local.github.team : v.name => v if v.organisation == local.owner }
|
||||
ruleset = { for k, v in local.github.ruleset : v.name => v if v.organisation == local.owner }
|
||||
repository = { for k, v in local.github.repository : v.name => v if v.organisation == local.owner }
|
||||
settings = lookup(local.github.settings, local.owner, null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user