tests: allow for insecure docker registries when testing rhcs

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1490/head
Andrew Schoen 2017-05-02 15:49:50 -05:00
parent 4ee280e2c4
commit 2fada9bd6b
2 changed files with 17 additions and 1 deletions

View File

@ -80,6 +80,22 @@
- name: set MTU on eth1
command: "ifconfig eth1 mtu 1400 up"
- name: install docker
package:
name: docker
state: present
when: ansible_os_family == 'RedHat'
- name: allow insecure docker registries
lineinfile:
line: 'INSECURE_REGISTRY="--insecure-registry {{ ceph_docker_registry }}"'
dest: "/etc/sysconfig/docker"
- name: restart docker
service:
name: docker
state: restarted
- hosts: mons:mgrs
gather_facts: false
become: yes

View File

@ -88,7 +88,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:} rhel7_repo_url={env:RHEL7_REPO_URL:}" --skip-tags "vagrant_setup"
rhcs: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} 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 "\
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \