Add policy.json file
This commit is contained in:
parent
0e29f23555
commit
26df6924ae
@ -45,3 +45,14 @@
|
|||||||
tags:
|
tags:
|
||||||
- ironic-init
|
- ironic-init
|
||||||
|
|
||||||
|
- name: Build the policy.json file
|
||||||
|
template:
|
||||||
|
src: "policy.json.j2"
|
||||||
|
dest: "/etc/ironic/policy.json"
|
||||||
|
mode: "0644"
|
||||||
|
owner: "root"
|
||||||
|
group: "root"
|
||||||
|
notify:
|
||||||
|
- Restart ironic services
|
||||||
|
tags:
|
||||||
|
- ironic-init
|
||||||
|
5
templates/policy.json.j2
Normal file
5
templates/policy.json.j2
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"admin_api": "role:admin or role:administrator",
|
||||||
|
"show_password": "!",
|
||||||
|
"default": "rule:admin_api"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user