Add authentik to opentofu
This commit is contained in:
		
							parent
							
								
									496cd360c6
								
							
						
					
					
						commit
						01ee9d4b44
					
				
					 9 changed files with 184 additions and 84 deletions
				
			
		
							
								
								
									
										11
									
								
								output.tf
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								output.tf
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -14,6 +14,17 @@ output "hosts" {
 | 
			
		|||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
output "authentik_data" {
 | 
			
		||||
  value = {
 | 
			
		||||
    for key, val in local.service_auths : 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
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  sensitive = true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
output "postgresql_service_roles" {
 | 
			
		||||
  value = postgresql_role.service_roles
 | 
			
		||||
  sensitive = true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue