The zake library was archived a few years back and is no longer installable due to its usage of pkg_resources . Use real zookeeper instance for these tests. Change-Id: If806bef4c7aea4704dab8b98833dc8b44e30ef1d Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
28 lines
1.0 KiB
YAML
28 lines
1.0 KiB
YAML
- hosts: all
|
|
vars:
|
|
taskflow_backend_daemon: "{{ tox_environment.PIFPAF_DAEMON }}"
|
|
roles:
|
|
- role: bindep
|
|
bindep_profile: "tests-functional-{{ taskflow_backend_daemon }}"
|
|
tasks:
|
|
- name: Include OS-specific variables
|
|
include_vars: "{{ ansible_os_family }}.yaml"
|
|
# NOTE(yoctozepto): Debian and Ubuntu have this nasty policy of starting
|
|
# installed services for us. We don't rely on system-wide service and use
|
|
# pifpaf. Unfortunately, default port may conflict with system-wide service.
|
|
# So, for sanity and resource conservation, let's stop it before tests run.
|
|
- name: "Stop backend services"
|
|
service:
|
|
name: "{{ item }}"
|
|
state: stopped
|
|
enabled: no
|
|
become: yes
|
|
loop: "{{ backend_services_map[taskflow_backend_daemon] }}"
|
|
- name: Remove ZOO_LOG_DIR
|
|
lineinfile:
|
|
path: /etc/zookeeper/conf/environment
|
|
regexp: '^ZOO_LOG_DIR=.*'
|
|
state: absent
|
|
become: yes
|
|
when: taskflow_backend_daemon == 'zookeeper'
|