Add vikunja opentofu stuff and fix some issues
This commit is contained in:
		
							parent
							
								
									6f77230c15
								
							
						
					
					
						commit
						1831cddffa
					
				
					 11 changed files with 49 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -16,8 +16,8 @@ output "hosts" {
 | 
			
		|||
 | 
			
		||||
output "authentik_data" {
 | 
			
		||||
  value = {
 | 
			
		||||
    for key, val in local.services_auth : key => {
 | 
			
		||||
      "base_url"      = "${var.authentik_url}/application/o/${authentik_application.service_applications[key].slug}"
 | 
			
		||||
    for key in keys(authentik_application.service_applications) : key => {
 | 
			
		||||
      "base_url"      = "${var.authentik_url}/application/o/${authentik_application.service_applications[key].slug}/"
 | 
			
		||||
      "client_id"     = authentik_provider_oauth2.service_providers[key].client_id
 | 
			
		||||
      "client_secret" = authentik_provider_oauth2.service_providers[key].client_secret
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ output "authentik_data" {
 | 
			
		|||
 | 
			
		||||
output "postgresql_data" {
 | 
			
		||||
  value = {
 | 
			
		||||
    for key, val in local.services_auth : key => {
 | 
			
		||||
    for key in keys(postgresql_database.service_databases) : key => {
 | 
			
		||||
      "user"      = postgresql_role.service_roles[key].name
 | 
			
		||||
      "pass"      = postgresql_role.service_roles[key].password
 | 
			
		||||
      "database"  = postgresql_database.service_databases[key].name
 | 
			
		||||
| 
						 | 
				
			
			@ -45,7 +45,7 @@ output "postgresql" {
 | 
			
		|||
 | 
			
		||||
output "scaleway_data" {
 | 
			
		||||
  value = {
 | 
			
		||||
    for key, val in local.services_s3 : key => {
 | 
			
		||||
    for key in keys(scaleway_iam_application.service_applications) : key => {
 | 
			
		||||
      "access_key"   = scaleway_iam_api_key.service_keys[key].access_key
 | 
			
		||||
      "secret_key"   = scaleway_iam_api_key.service_keys[key].secret_key
 | 
			
		||||
      "name"         = scaleway_object_bucket.service_buckets[key].name
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue