Add /opt/nodepool/images to required directories
Change-Id: Icfcbfc71bfa06f35c5961f8a7dd6c6b138e5fedc Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
01acdd5bad
commit
40f1e5036f
@ -21,6 +21,7 @@
|
||||
state: directory
|
||||
with_items:
|
||||
- /etc/nodepool
|
||||
- /opt/nodepool/images
|
||||
- /var/log/nodepool
|
||||
|
||||
- name: Install nodepool configuration.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user