diff options
author | Adam Williamson <awilliam@redhat.com> | 2015-12-03 16:08:13 -0800 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2015-12-03 16:13:40 -0800 |
commit | 9d271749fb66a56eed20aec5a7f5cb50b157e7ba (patch) | |
tree | 2e27fdeff6d0ad22da18e282979d801c19c047b1 | |
parent | e27f28ef4431a7308625bd858408bd87e1e894a4 (diff) | |
download | ansible-9d271749fb66a56eed20aec5a7f5cb50b157e7ba.tar.gz ansible-9d271749fb66a56eed20aec5a7f5cb50b157e7ba.tar.xz ansible-9d271749fb66a56eed20aec5a7f5cb50b157e7ba.zip |
patch dl.fedoraproject.org in openQA test templates
So apparently hosts within infra can't reach dl.fp.o. This is a
problem as we have that host written in as a reliable repository
URL for a couple of openQA tests. infra hosts can reach dl.fp.o
by the name 'dl.phx2.fedoraproject.org', but nothing outside
infra can reach that hostname. So we don't just want to change
it in the openQA test git repo because we want that to work for
external deployments. So, let's just sed it on the fly for
the infra deployment...
-rw-r--r-- | roles/openqa/server/tasks/main.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index 674e43ece..81420fd3e 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -169,8 +169,12 @@ changed_when: "admin.rc == 0" failed_when: "(admin.rc > 0) and (admin.stderr is not defined or admin.stderr.find('already exists') == -1)" +- name: Patch repo URLs in templates + shell: "cp /var/lib/openqa/share/tests/fedora/templates /tmp && sed -i -e 's,dl.fedoraproject,dl.phx2.fedoraproject,g' /tmp/templates" + changed_when: "1 != 1" + - name: Load tests - shell: "/var/lib/openqa/share/tests/fedora/templates | grep 'added => [1-9]'" + shell: "/tmp/templates | grep 'added => [1-9]'" register: templates changed_when: "templates.rc == 0" failed_when: "1 != 1" |