-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-tenant.yaml
39 lines (36 loc) · 1009 Bytes
/
create-tenant.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
heat_template_version: 2016-04-08
description: Tenant init for GBM Cloud
parameters:
project_name:
type: string
description: Name of Project (Tenant)
admin_name:
type: string
description: Username of Project Admin
admin_password:
type: string
description: Password for Project Admin
hidden: true
resources:
tenant:
type: OS::Keystone::Project
properties:
name: { get_param: project_name }
domain: default
tenant_admin:
type: OS::Keystone::User
properties:
name: { get_param: admin_name }
password: { get_param: admin_password }
tenant_admin_role:
type: OS::Keystone::UserRoleAssignment
properties:
user: { get_resource: tenant_admin }
roles:
- {project: {get_resource: tenant}, role: admin}
default_admin_role:
type: OS::Keystone::UserRoleAssignment
properties:
user: admin
roles:
- {project: {get_resource: tenant}, role: admin}