2023-09-13 11:12:29 +00:00
|
|
|
resource "openstack_identity_project_v3" "heat_domain" {
|
|
|
|
name = "heat"
|
2023-09-13 15:51:11 +00:00
|
|
|
description = "Stack projects and users"
|
2023-09-13 11:12:29 +00:00
|
|
|
enabled = true
|
|
|
|
is_domain = true
|
|
|
|
}
|
|
|
|
|
2023-09-13 10:33:30 +00:00
|
|
|
resource "openstack_identity_user_v3" "heat_domain_admin" {
|
2023-09-13 11:12:29 +00:00
|
|
|
domain_id = openstack_identity_project_v3.heat_domain.id
|
2023-09-13 10:33:30 +00:00
|
|
|
name = "heat_domain_admin"
|
|
|
|
|
2023-09-13 15:51:11 +00:00
|
|
|
password = file("heat-domain-admin-passwd")
|
2023-09-13 10:33:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "openstack_identity_role_assignment_v3" "heat_admin_role_assignment" {
|
2023-09-13 11:12:29 +00:00
|
|
|
domain_id = openstack_identity_project_v3.heat_domain.id
|
2023-09-13 10:33:30 +00:00
|
|
|
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"
|
|
|
|
}
|