Migrate opentofu part
This commit is contained in:
		
							parent
							
								
									344710e831
								
							
						
					
					
						commit
						f872d2199b
					
				
					 12 changed files with 596 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								output.tf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								output.tf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
output "hosts" {
 | 
			
		||||
  value = {
 | 
			
		||||
    for subdomain in distinct([for record in ovh_domain_zone_record.server_records : record.subdomain]) : 
 | 
			
		||||
    subdomain => {
 | 
			
		||||
      "ipv4_address" = try(
 | 
			
		||||
        ovh_domain_zone_record.server_records["${subdomain}:ipv4"].target, 
 | 
			
		||||
        null
 | 
			
		||||
      )
 | 
			
		||||
      "ipv6_address" = try(
 | 
			
		||||
        ovh_domain_zone_record.server_records["${subdomain}:ipv6"].target, 
 | 
			
		||||
        null
 | 
			
		||||
      )
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
output "scaleway_service_keys" {
 | 
			
		||||
  value       = scaleway_iam_api_key.service_keys
 | 
			
		||||
  sensitive   = true
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue