Add policy.json file

This commit is contained in:
Andy McCrae 2016-01-20 17:35:48 +10:00
parent 0e29f23555
commit 26df6924ae
2 changed files with 16 additions and 0 deletions

View File

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

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