]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: adds a task to download a repo file for nightly rhel7 packages
authorAndrew Schoen <aschoen@redhat.com>
Wed, 22 Mar 2017 21:18:57 +0000 (16:18 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 22 Mar 2017 21:18:57 +0000 (16:18 -0500)
This is a url to an actual repo file, not a baseurl to use in a repo.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/functional/rhcs_setup.yml
tox.ini

index 21bc63683bf02af285da2e4888a8949a7368900e..93055b435cb1bb42c8d4df8ee6ac4f0f2f08f199 100644 (file)
       set_fact:
         is_atomic: '{{ stat_ostree.stat.exists }}'
 
+    - name: install nightly rhel7 repo
+      get_url:
+        url: "{{ rhel7_repo_url }}"
+        dest: /etc/yum.repos.d
+        owner: root
+        group: root
+      when: not is_atomic
+
 - hosts: mons
   gather_facts: false
   become: yes
diff --git a/tox.ini b/tox.ini
index f9b2d5b572485b3cd3c960e38f46b58ca2992958..4d595db56e3f3f624c4fed535e08c097ec356839 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -101,7 +101,7 @@ commands=
   vagrant up --no-provision {posargs:--provider=virtualbox}
   bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
 
-  rhcs: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "repo_url={env:REPO_URL:}" --skip-tags "vagrant_setup"
+  rhcs: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "repo_url={env:REPO_URL:} rhel7_repo_url={env:RHEL7_REPO_URL:}" --skip-tags "vagrant_setup"
 
   ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars '\
     \{\