terraform/openstack/stsstack_init/01-heat-roles.tf
Arif Ali 6fb9ff2880
Further updates
* Add user-data for instance
* Add heat specific rules
* Start of MAAS bits
2023-09-13 11:33:30 +01:00

17 lines
535 B
HCL

resource "openstack_identity_user_v3" "heat_domain_admin" {
domain_id = var.heat_domain_id
name = "heat_domain_admin"
password = "Ht8NdKTGdpJjRsS4V33tsVW4mSztgZMs" # leader-get heat-domain-admin-passwd
}
resource "openstack_identity_role_assignment_v3" "heat_admin_role_assignment" {
domain_id = var.heat_domain_id
user_id = openstack_identity_user_v3.heat_domain_admin.id
role_id = data.openstack_identity_role_v3.admin.id
}
resource "openstack_identity_role_v3" "heat_stack_user" {
name = "heat_stack_user"
}