From 332992ace2bcb2a4d94c0ae3ccbc7c3a2a7bcb38 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sun, 26 Apr 2020 12:39:05 -0400 Subject: [PATCH] setup-devstack-source-dirs: add var for paths The paths for the devstack source directories are currently hardcoded, this patch allows overriding that list. Change-Id: I2b673b0d110d84658b89bb14663584330deaf3aa --- roles/setup-devstack-source-dirs/defaults/main.yaml | 8 ++++++++ roles/setup-devstack-source-dirs/tasks/main.yaml | 9 +-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/roles/setup-devstack-source-dirs/defaults/main.yaml b/roles/setup-devstack-source-dirs/defaults/main.yaml index fea05c8146..77a74d7b89 100644 --- a/roles/setup-devstack-source-dirs/defaults/main.yaml +++ b/roles/setup-devstack-source-dirs/defaults/main.yaml @@ -1 +1,9 @@ devstack_base_dir: /opt/stack +devstack_source_dirs: + - src/opendev.org/opendev + - src/opendev.org/openstack + - src/opendev.org/openstack-dev + - src/opendev.org/openstack-infra + - src/opendev.org/starlingx + - src/opendev.org/x + - src/opendev.org/zuul diff --git a/roles/setup-devstack-source-dirs/tasks/main.yaml b/roles/setup-devstack-source-dirs/tasks/main.yaml index 160757ede9..294c29cd29 100644 --- a/roles/setup-devstack-source-dirs/tasks/main.yaml +++ b/roles/setup-devstack-source-dirs/tasks/main.yaml @@ -1,13 +1,6 @@ - name: Find all OpenStack source repos used by this job find: - paths: - - src/opendev.org/opendev - - src/opendev.org/openstack - - src/opendev.org/openstack-dev - - src/opendev.org/openstack-infra - - src/opendev.org/starlingx - - src/opendev.org/x - - src/opendev.org/zuul + paths: "{{ devstack_source_dirs }}" file_type: directory register: found_repos