Add policy.json file
This commit is contained in:
parent
c2590dd8e9
commit
91be080843
@ -45,3 +45,14 @@
|
||||
tags:
|
||||
- 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