编写Heat模板create_user.yaml, 创建名为 heat-user 的用户,属于 admin 项目包,并赋予 heat-user 用户 admin 的权限,配置 用户密码为 123456
时间: 2024-05-21 09:10:11 浏览: 158
制作用户登录模块.
heat_template_version: 2015-10-15
resources:
heat_user:
type: OS::Keystone::User
properties:
name: heat-user
domain: default
password: 123456
admin_role:
type: OS::Keystone::Role
properties:
name: admin
assign_admin_role:
type: OS::Keystone::UserToRoleAssignment
properties:
role: { get_resource: admin_role }
user: { get_resource: heat_user }
project: admin
outputs:
user_id:
value: { get_attr: [heat_user, id] }
user_password:
value: { get_attr: [heat_user, password] }
阅读全文