Update nodepool test roles to use nodepool_pip_virtualenv

This is the same as we did for zuul tests.

Change-Id: Ib474d2c2eb771032de4f1cf3ea39ee6b8545e2ce
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-01-20 23:55:42 -05:00
parent 93f3880da8
commit 0fa7bd5de3
2 changed files with 6 additions and 6 deletions

View File

@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- name: Register /opt/venv/nodepool
- name: "Register {{ nodepool_pip_virtualenv }}"
stat:
path: /opt/venv/nodepool
register: test_nodepool_pip_virtualenv_stat
- name: Assert /opt/venv/nodepool tests
- name: "Assert {{ nodepool_pip_virtualenv }} tests"
assert:
that:
- test_nodepool_pip_virtualenv_stat.stat.exists
@ -26,7 +26,7 @@
- name: Validate /etc/nodepool/nodepool.yaml
become: true
become_user: nodepool
command: /opt/venv/nodepool/bin/nodepool -c /etc/nodepool/nodepool.yaml config-validate
command: "{{ nodepool_pip_virtualenv }}/bin/nodepool -c /etc/nodepool/nodepool.yaml config-validate"
changed_when: false
- name: Ensure nodepool-builder is running

View File

@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- name: Register /opt/venv/nodepool
- name: "Register {{ nodepool_pip_virtualenv }}"
stat:
path: /opt/venv/nodepool
register: test_nodepool_pip_virtualenv_stat
- name: Assert /opt/venv/nodepool tests
- name: "Assert {{ nodepool_pip_virtualenv }} tests"
assert:
that:
- test_nodepool_pip_virtualenv_stat.stat.exists
@ -26,7 +26,7 @@
- name: Validate /etc/nodepool/nodepool.yaml
become: true
become_user: nodepool
command: /opt/venv/nodepool/bin/nodepool -c /etc/nodepool/nodepool.yaml config-validate
command: "{{ nodepool_pip_virtualenv }}/bin/nodepool -c /etc/nodepool/nodepool.yaml config-validate"
changed_when: false
- name: Ensure nodepool-launcher is running