Inject temporary jenkins-formula-2019.2.19 repo to unlock testing
TODO: proper repo
TODO: switch tcp-qa to proper repo
Change-Id: Ibee4a49ca02df18bc99188b5b31913b09ea4adb1
diff --git a/jobs/pipelines/swarm-create-cfg-config-drive.groovy b/jobs/pipelines/swarm-create-cfg-config-drive.groovy
index 95990c6..2d82832 100644
--- a/jobs/pipelines/swarm-create-cfg-config-drive.groovy
+++ b/jobs/pipelines/swarm-create-cfg-config-drive.groovy
@@ -206,6 +206,11 @@
- sed -i -e '/^PermitRootLogin/s/.*/PermitRootLogin yes/' /etc/ssh/sshd_config
- service sshd restart
+apt:
+ sources:
+ jenkins-formula:
+ source: deb http://mirror.seed01-bud.infra.mirantis.net/mcp/review/130026/salt-formulas/xenial xenial main
+
merge_how: "dict(recurse_array)+list(append)"
"""
writeFile(file: "user_data2", text: user_data2, encoding: "UTF-8")
diff --git a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-contrail41-sl.yaml b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-contrail41-sl.yaml
index 89e419a..1ac347d 100644
--- a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-contrail41-sl.yaml
+++ b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-contrail41-sl.yaml
@@ -36,3 +36,11 @@
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 5}
skip_fail: false
+
+- description: Inject jenkins-formula extra repo to cluster model
+ cmd: |
+ . venv-reclass-tools/bin/activate;
+ reclass-tools add-key parameters.linux.system.repo.salt-formula-jenkins-2019-2-19.source "deb http://mirror.seed01-bud.infra.mirantis.net/mcp/review/130026/salt-formulas/xenial xenial main" /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/config/init.yml
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: {count: 1, delay: 1}
+ skip_fail: false
diff --git a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-dvr-sl.yaml b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-dvr-sl.yaml
index 0f33a7d..495c7aa 100644
--- a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-dvr-sl.yaml
+++ b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-pike-dvr-sl.yaml
@@ -32,3 +32,11 @@
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 5}
skip_fail: false
+
+- description: Inject jenkins-formula extra repo to cluster model
+ cmd: |
+ . venv-reclass-tools/bin/activate;
+ reclass-tools add-key parameters.linux.system.repo.salt-formula-jenkins-2019-2-19.source "deb http://mirror.seed01-bud.infra.mirantis.net/mcp/review/130026/salt-formulas/xenial xenial main" /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/config/init.yml
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: {count: 1, delay: 1}
+ skip_fail: false
diff --git a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-contrail41-sl.yaml b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-contrail41-sl.yaml
index 7a54193..438166b 100644
--- a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-contrail41-sl.yaml
+++ b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-contrail41-sl.yaml
@@ -36,3 +36,11 @@
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 5}
skip_fail: false
+
+- description: Inject jenkins-formula extra repo to cluster model
+ cmd: |
+ . venv-reclass-tools/bin/activate;
+ reclass-tools add-key parameters.linux.system.repo.salt-formula-jenkins-2019-2-19.source "deb http://mirror.seed01-bud.infra.mirantis.net/mcp/review/130026/salt-formulas/xenial xenial main" /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/config/init.yml
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: {count: 1, delay: 1}
+ skip_fail: false
diff --git a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-dvr-sl.yaml b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-dvr-sl.yaml
index f9ecbae..7a5e05a 100644
--- a/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-dvr-sl.yaml
+++ b/tcp_tests/templates/cookied-model-generator/salt_released-heat-cicd-queens-dvr-sl.yaml
@@ -32,3 +32,11 @@
node_name: {{ HOSTNAME_CFG01 }}
retry: {count: 1, delay: 5}
skip_fail: false
+
+- description: Inject jenkins-formula extra repo to cluster model
+ cmd: |
+ . venv-reclass-tools/bin/activate;
+ reclass-tools add-key parameters.linux.system.repo.salt-formula-jenkins-2019-2-19.source "deb http://mirror.seed01-bud.infra.mirantis.net/mcp/review/130026/salt-formulas/xenial xenial main" /srv/salt/reclass/classes/cluster/{{ LAB_CONFIG_NAME }}/infra/config/init.yml
+ node_name: {{ HOSTNAME_CFG01 }}
+ retry: {count: 1, delay: 1}
+ skip_fail: false