++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=32a6c00376c1443caeea6a404b201b29 + openstack domain show 32a6c00376c1443caeea6a404b201b29 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | id | 32a6c00376c1443caeea6a404b201b29 | | name | heat | | enabled | True | | description | Service Domain for RegionOne/heat | | options | {} | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=32a6c00376c1443caeea6a404b201b29 --description 'Service User for RegionOne/heat' --password=TtIwkdf54tcuKVYkLOVgclxLrRQY6kpW heat-stack-user-RegionOne + SERVICE_OS_USERID=fa4758f971c0409ba4502ec2d7b36f3d + openstack user set --password=TtIwkdf54tcuKVYkLOVgclxLrRQY6kpW fa4758f971c0409ba4502ec2d7b36f3d + openstack user show fa4758f971c0409ba4502ec2d7b36f3d +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 32a6c00376c1443caeea6a404b201b29 | | email | None | | enabled | True | | id | fa4758f971c0409ba4502ec2d7b36f3d | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | | options | {} | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=02aaa2587f824a85a2dca93f20266d66 + openstack role add --domain=32a6c00376c1443caeea6a404b201b29 --user=fa4758f971c0409ba4502ec2d7b36f3d --user-domain=32a6c00376c1443caeea6a404b201b29 02aaa2587f824a85a2dca93f20266d66 + openstack role assignment list --role=02aaa2587f824a85a2dca93f20266d66 --user-domain=32a6c00376c1443caeea6a404b201b29 --user=fa4758f971c0409ba4502ec2d7b36f3d +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 02aaa2587f824a85a2dca93f20266d66 | fa4758f971c0409ba4502ec2d7b36f3d | | | 32a6c00376c1443caeea6a404b201b29 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+