Update customer yaml builder
Add user-domain property under OS::Keystone::UserRoleAssignment resource. Change-Id: I6f306543a49d39021bdcccf054ad5b90d374daba
This commit is contained in:
parent
482238bd6f
commit
9cf728b7c9
@ -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
|
||||
|
@ -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 ' \
|
||||
|
Loading…
Reference in New Issue
Block a user