Update customer yaml builder

Add user-domain property under OS::Keystone::UserRoleAssignment
resource.

Change-Id: I6f306543a49d39021bdcccf054ad5b90d374daba
This commit is contained in:
stewie925 2019-04-05 13:18:06 -07:00
parent 482238bd6f
commit 9cf728b7c9
2 changed files with 3 additions and 2 deletions

View File

@ -129,6 +129,7 @@ def yamlbuilder(alldata, region):
resources['resources'][user['id']] = \
{'type': 'OS::Keystone::UserRoleAssignment\n',
'properties': {'user': user['id'],
'user_domain': domain,
'roles': user_roles}}
# create the output for users

View File

@ -218,11 +218,11 @@ full_yaml_ldap = 'heat_template_version: 2015-1-2\n\ndescription: yaml file' \
'- project: {get_resource: 1e24981a-fa51-11e5-86aa-5e5517507c66}\n ' \
'role: admin\n - project: ' \
'{get_resource: 1e24981a-fa51-11e5-86aa-5e5517507c66}\n ' \
'role: other\n user: userId1\n ' \
'role: other\n user_domain: default\n user: userId1\n ' \
'type: OS::Keystone::UserRoleAssignment\n\n \n ' \
'userId2:\n properties:\n roles:\n ' \
'- project: {get_resource: 1e24981a-fa51-11e5-86aa-5e5517507c66}\n ' \
'role: storage\n user: userId2\n ' \
'role: storage\n user_domain: default\n user: userId2\n ' \
'type: OS::Keystone::UserRoleAssignment\n\n \n ' \
'1e24981a-fa51-11e5-86aa-5e5517507c66:\n properties:\n ' \
'description: this is a description\n ' \