Add policy.json file

This commit is contained in:
root 2016-01-20 07:29:08 +00:00
parent c2590dd8e9
commit 91be080843
2 changed files with 16 additions and 0 deletions

View File

@ -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
View File

@ -0,0 +1,5 @@
{
"admin_api": "role:admin or role:administrator",
"show_password": "!",
"default": "rule:admin_api"
}