Forked from linuxsimba/create_tenant_project_and_user.yml
Created
October 31, 2018 01:15
-
-
Save tjnh05/1363a666f06d9636b73521278f024158 to your computer and use it in GitHub Desktop.
openstack heat resource file - create tenant project and user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2015-04-30 | |
description: Create a new Project. Assign a user and user-role pair. | |
parameters: | |
demo_project_name: | |
type: string | |
description: project name | |
demo_user_role: | |
type: string | |
description: name of the user role. | |
demo_project_user: | |
type: string | |
description: Project user | |
demo_project_user_passwd: | |
type: string | |
description: project user initial password | |
resources: | |
demo_project: | |
type: OS::Keystone::Project | |
properties: | |
name: { get_param: demo_project_name } | |
domain: default | |
description: New Demo Project | |
demo_role: | |
type: OS::Keystone::Role | |
properties: | |
name: { get_param: demo_user_role } | |
demo_user: | |
type: OS::Keystone::User | |
properties: | |
name: { get_param: demo_project_user } | |
domain: default | |
description: Test user | |
default_project: { get_resource: demo_project } | |
password: { get_param: demo_project_user_passwd } | |
roles: | |
- role: { get_resource: demo_role} | |
project: { get_resource: demo_project } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment