feat: add argo workflows
This commit is contained in:
parent
8994143831
commit
2c7de2fb4c
11 changed files with 254 additions and 0 deletions
32
tofu/authentik/main.tf
Normal file
32
tofu/authentik/main.tf
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
terraform {
|
||||
backend "s3" {
|
||||
bucket = "fuku-terraform"
|
||||
key = "authentik/terraform"
|
||||
region = "us-east-1"
|
||||
}
|
||||
required_providers {
|
||||
authentik = {
|
||||
source = "goauthentik/authentik"
|
||||
version = "2024.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data "authentik_user" "catalin" {
|
||||
username = "catalin"
|
||||
}
|
||||
|
||||
resource "authentik_group" "ci" {
|
||||
name = "ci"
|
||||
users = [data.authentik_user.catalin.id]
|
||||
}
|
||||
|
||||
module "argo-workflows" {
|
||||
source = "../modules/authentik"
|
||||
app_name = "Argo Workflows"
|
||||
app_slug = "argo-workflows"
|
||||
client_id = var.argo_workflows_client_id
|
||||
client_secret = var.argo_workflows_client_secret
|
||||
app_access_group_id = authentik_group.ci.id
|
||||
redirect_uris = ["https://ci.fuku/oauth2/callback"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue