Add REPOSITORY_SUITE environment variable
We now use internal repositories like nightly, testing and stable.
REPOSITORY_SUITE variable allows to switch between these repos.
Default value:
export REPOSITORY_SUITE=stable
Added to the clusters:
- virtual-mcp-ocata-dvr
- virtual-mcp-ocata-ovs
- virtual-mcp11-dvr
- virtual-mcp11-ovs
- virtual-mcp11-dpdk
Also, ENV_NAME is not required now. By default, it will be created
from LAB_CONFIG_NAME + "_" + REPOSITORY_SUITE + "_" + BUILD_NUMBER
(BUILD_NUMBER added to separate different builds on Jenkins)
diff --git a/tcp_tests/templates/underlay/virtual-mcp-ocata-dvr--user-data-cfg01.yaml b/tcp_tests/templates/underlay/virtual-mcp-ocata-dvr--user-data-cfg01.yaml
index 45ad5cf..479fd38 100644
--- a/tcp_tests/templates/underlay/virtual-mcp-ocata-dvr--user-data-cfg01.yaml
+++ b/tcp_tests/templates/underlay/virtual-mcp-ocata-dvr--user-data-cfg01.yaml
@@ -50,7 +50,8 @@
- echo "nameserver 172.18.208.44 >> /etc/resolv.conf;
- echo "nameserver 8.8.8.8 >> /etc/resolv.conf;
- which wget >/dev/null || (apt-get update; apt-get install -y wget);
- - echo "deb [arch=amd64] http://apt-mk.mirantis.com/xenial nightly salt extra" > /etc/apt/sources.list.d/mcp_salt.list;
+
+ - echo "deb [arch=amd64] http://apt-mk.mirantis.com/xenial {{ REPOSITORY_SUITE }} salt extra" > /etc/apt/sources.list.d/mcp_salt.list;
- wget -O - http://apt-mk.mirantis.com/public.gpg | apt-key add -;
- echo "deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 xenial main" > /etc/apt/sources.list.d/saltstack.list;
- wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub | apt-key add -;