Add /opt/nodepool/images to required directories

Change-Id: Icfcbfc71bfa06f35c5961f8a7dd6c6b138e5fedc
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-11-26 16:31:22 -05:00
parent 01acdd5bad
commit 40f1e5036f
2 changed files with 15 additions and 0 deletions

View File

@ -21,6 +21,7 @@
state: directory
with_items:
- /etc/nodepool
- /opt/nodepool/images
- /var/log/nodepool
- name: Install nodepool configuration.

View File

@ -69,6 +69,20 @@
that:
- nodepool_user_home_getent.stdout == '/var/lib/nodepool'
- name: Register /opt/nodepool/images
stat:
path: /opt/nodepool/images
register: _nodepool_images_dir_stat
- name: Assert /opt/nodepool/images tests.
assert:
that:
- _nodepool_images_dir_stat.stat.exists
- _nodepool_images_dir_stat.stat.isdir
- _nodepool_images_dir_stat.stat.pw_name == 'nodepool'
- _nodepool_images_dir_stat.stat.gr_name == 'nodepool'
- _nodepool_images_dir_stat.stat.mode == '0755'
- name: Register /etc/nodepool/nodepool.yaml
stat:
path: /etc/nodepool/nodepool.yaml