summaryrefslogtreecommitdiffstats
path: root/prototypes/xci/playbooks/configure-localhost.yml
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-05-09 21:20:59 +0100
committerMarkos Chandras <mchandras@suse.de>2017-05-11 23:42:12 +0100
commit21f9500be4da1332fdd41260a3e1f4761f857219 (patch)
tree02a6efaf49027bc4b4f6060f69c357d630de5eb3 /prototypes/xci/playbooks/configure-localhost.yml
parent76343ef8bdb0b8531e63ea8fe59de5388dd6171e (diff)
prototypes: xci: Add ability to use local repositories for testing
When developing XCI features it's useful to be able to use the local repositories rather than cloning them from git since that makes it harder to test local modifications against XCI. As such, we add three new variables which can be used to hold local paths to the bifrost, releng and openstack-ansible repositories. We are still cloning the repositories but we then use the 'synchronize' Ansible module to copy modified files from the local repositories. Change-Id: I6d593ea48d8b9c51415d9d0848f77a498ef2f486 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'prototypes/xci/playbooks/configure-localhost.yml')
-rw-r--r--prototypes/xci/playbooks/configure-localhost.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/prototypes/xci/playbooks/configure-localhost.yml b/prototypes/xci/playbooks/configure-localhost.yml
index e2024dd86..b6d0fccb7 100644
--- a/prototypes/xci/playbooks/configure-localhost.yml
+++ b/prototypes/xci/playbooks/configure-localhost.yml
@@ -15,6 +15,28 @@
roles:
- role: remove-folders
- { role: clone-repository, project: "opnfv/releng", repo: "{{ OPNFV_RELENG_GIT_URL }}", dest: "{{ OPNFV_RELENG_PATH }}", version: "{{ OPNFV_RELENG_VERSION }}" }
+
+- hosts: localhost
+ connection: local
+ gather_facts: false
+ vars_files:
+ - ../var/{{ ansible_os_family }}.yml
+ - ../var/opnfv.yml
+ tasks:
+ - name: Synchronize local development releng repository to XCI paths
+ synchronize:
+ src: "{{ OPNFV_RELENG_DEV_PATH }}"
+ dest: "{{ OPNFV_RELENG_PATH }}"
+ recursive: yes
+ delete: yes
+ when:
+ - OPNFV_RELENG_DEV_PATH != ""
+
+- hosts: localhost
+ connection: local
+ vars_files:
+ - ../var/{{ ansible_os_family }}.yml
+ - ../var/opnfv.yml
tasks:
- name: create log directory {{LOG_PATH}}
file: