From 128242a23b48d4a2ac80ed59ab06e08da1b00ea0 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Mon, 5 Sep 2016 13:07:39 +0100 Subject: [PATCH] Derive the OpenStack service list from the service file This patch updates the sources-branch-updater to derive the OpenStack service list from the service file provided on the CLI. It will only pick up OpenStack git sources and will deliberately ignore repositories which include a '-' in the name, as those are drivers or plugins, not services. Drivers/plugins don't contain conf/policy files which need updating with every SHA bump. The requirements repo is also deliberately ignored as it contains no services which require conf/policy file updates. Change-Id: I51ad9e5e48da18cb46ccf9cfe12118c19c2a1f53 --- scripts/sources-branch-updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sources-branch-updater.sh b/scripts/sources-branch-updater.sh index 2eec8158e8..a672e97f68 100755 --- a/scripts/sources-branch-updater.sh +++ b/scripts/sources-branch-updater.sh @@ -21,7 +21,7 @@ OS_BRANCH=${OS_BRANCH:-"master"} OSA_BRANCH=${OSA_BRANCH:-"$OS_BRANCH"} SERVICE_FILE=${SERVICE_FILE:-"playbooks/defaults/repo_packages/openstack_services.yml"} -OPENSTACK_SERVICE_LIST=${OPENSTACK_SERVICE_LIST:-"aodh ceilometer cinder glance heat ironic keystone neutron nova"} +OPENSTACK_SERVICE_LIST=${OPENSTACK_SERVICE_LIST:-"$(grep 'git_repo\:' ${SERVICE_FILE} | awk -F '/' '{ print $NF }' | egrep -v 'requirements|-' | tr '\n' ' ')"} IFS=$'\n'