Don't copy ironic's policy.json sample

Since ironic change I10a4987204eb335f1fed29d4b1d7f3e075aa1792, the
sample policy.json is not present in the ironic repository. Since policy
is now in code, it is not required.

This change removes support for copying the sample policy file to
/etc/ironic.

Change-Id: Id0e8eb54b0d67ba1c522c6e76afad2b61059a621
This commit is contained in:
Mark Goddard 2018-02-05 15:32:52 +00:00
parent 593db8a777
commit d12e6d52f6
1 changed files with 0 additions and 17 deletions

View File

@ -153,23 +153,6 @@
- name: "Generate ironic Configuration"
include: ironic_config.yml
# TODO(mgoddard): Remove this check and the following copy when ironic's pike release is no longer
# supported.
- name: "Check for ironic policy.json"
stat:
path: "{{ ironic_git_folder }}/etc/ironic/policy.json"
register: test_ironic_policy_json
- name: "Copy policy.json to /etc/ironic"
copy:
src: "{{ ironic_git_folder }}/etc/ironic/policy.json"
dest: "/etc/ironic/"
remote_src: yes
owner: "ironic"
group: "ironic"
mode: 0644
when: test_ironic_policy_json.stat.exists
- name: "Create ironic DB Schema"
command: ironic-dbsync --config-file /etc/ironic/ironic.conf create_schema
environment: "{{ bifrost_venv_env if enable_venv else {} }}"