d7ae9f2df1
This script is used by developers to activate the kayobe virtual environment and source the configuration's kayobe-env file. A cd to /tmp is an unexpected outcome of running the script. To test the location-independent installation, remove the chdir from the zuul job tasks that execute kayobe commands. Change-Id: I59194952901fa648382489f48dc7aafb03d3a682 Story: 2004252 Task: 29347
15 lines
623 B
YAML
15 lines
623 B
YAML
---
|
|
- hosts: primary
|
|
vars:
|
|
kayobe_src_dir: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['git.openstack.org/openstack/kayobe'].src_dir }}"
|
|
kayobe_config_src_dir: "{{ ansible_env.PWD ~ '/' ~ zuul.projects['git.openstack.org/openstack/kayobe-config-dev'].src_dir }}"
|
|
logs_dir: "/tmp/logs"
|
|
environment:
|
|
KAYOBE_CONFIG_SOURCE_PATH: "{{ kayobe_config_src_dir }}"
|
|
# Don't provision a seed VM - use the Zuul VM as the seed host.
|
|
KAYOBE_SEED_VM_PROVISION: 0
|
|
tasks:
|
|
- name: Ensure seed is deployed
|
|
shell:
|
|
cmd: "{{ kayobe_src_dir }}/dev/seed-deploy.sh > {{ logs_dir }}/ansible/seed-deploy"
|