OpenStack Zed : ユーザーを新規追加する2023/06/27 |
Openstack が利用可能な任意のユーザーを Keystone に新規追加します。
|
|
[1] | ユーザー名やプロジェクト名は任意の名称で OK です。 |
# 任意のプロジェクト追加 root@dlp ~(keystone)# openstack project create --domain default --description "Hiroshima Project" hiroshima +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Hiroshima Project | | domain_id | default | | enabled | True | | id | 1c2f5dc8c4f9494fbaaa4217c8e3585a | | is_domain | False | | name | hiroshima | | options | {} | | parent_id | default | | tags | [] | +-------------+----------------------------------+ # 任意のユーザー追加 root@dlp ~(keystone)# openstack user create --domain default --project hiroshima --password userpassword serverworld +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | 1c2f5dc8c4f9494fbaaa4217c8e3585a | | domain_id | default | | enabled | True | | id | de51d5f0ee2c485885877d21f5b424e0 | | name | serverworld | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+root@dlp ~(keystone)# openstack role list +----------------------------------+--------+ | ID | Name | +----------------------------------+--------+ | 109c6488ef4347d681ba691f8ac97a6b | member | | 82699442db4e4edea2fb7986340b5ab4 | admin | | eb3d0d5b10cd456093463a2c12e41b82 | reader | +----------------------------------+--------+ # ユーザーを [member] ロールに加える root@dlp ~(keystone)# openstack role add --project hiroshima --user serverworld member
|
Sponsored Link |