Skip to content

Commit

Permalink
Update rootwrap filter copy for easier maintenance
Browse files Browse the repository at this point in the history
Update the rootwrap filter config file copy task to handle
looking up rootwrap filter files using 'with_fileglob' to avoid
having to maintain the task with each addition or removal of these
files.

Change-Id: I768ba7415408c1c5dbd66e9fe57788d41587742c
(cherry picked from commit a6b6f3d)
  • Loading branch information
Jesse Pretorius authored and Jean-Philippe Evrard committed Sep 26, 2016
1 parent 03443e4 commit 3c1cd47
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tasks/ironic_post_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,14 @@
- ironic-config
- ironic-post-install

- name: Copy ironic rootwrap filter config
- name: Copy rootwrap filters
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
src: "{{ item }}"
dest: "/etc/ironic/rootwrap.d/"
owner: "root"
group: "root"
with_items:
- { src: "rootwrap.d/ironic-images.filters", dest: "/etc/ironic/rootwrap.d/ironic-images.filters" }
- { src: "rootwrap.d/ironic-lib.filters", dest: "/etc/ironic/rootwrap.d/ironic-lib.filters" }
- { src: "rootwrap.d/ironic-utils.filters", dest: "/etc/ironic/rootwrap.d/ironic-utils.filters" }
with_fileglob:
- rootwrap.d/*
notify: Restart ironic services
tags:
- ironic-config
Expand Down

0 comments on commit 3c1cd47

Please sign in to comment.