mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-16 18:50:34 -04:00
openstack: move credentials to instance user data
This commit is contained in:
parent
9c5f231f4a
commit
0bd8c00bda
3 changed files with 79 additions and 41 deletions
|
@ -72,14 +72,16 @@ resource "openstack_compute_instance_v2" "instance_group_member" {
|
|||
delete_on_termination = true
|
||||
}
|
||||
metadata = {
|
||||
constellation-role = var.role
|
||||
constellation-uid = var.uid
|
||||
constellation-init-secret-hash = var.init_secret_hash
|
||||
constellation-role = var.role
|
||||
constellation-uid = var.uid
|
||||
constellation-init-secret-hash = var.init_secret_hash
|
||||
}
|
||||
user_data = jsonencode({
|
||||
openstack-auth-url = var.identity_internal_url
|
||||
openstack-username = var.openstack_username
|
||||
openstack-password = var.openstack_password
|
||||
openstack-user-domain-name = var.openstack_user_domain_name
|
||||
openstack-load-balancer-endpoint = var.openstack_load_balancer_endpoint
|
||||
}
|
||||
availability_zone_hints = var.availability_zone
|
||||
})
|
||||
availability_zone_hints = length(var.availability_zone) > 0 ? var.availability_zone : null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue