Skip to content
Snippets Groups Projects
Commit 48a85ce8 authored by Smana's avatar Smana
Browse files

use docker repository to install on CentOS

parent 936927a5
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,11 @@ matrix:
allow_failures:
- env: KUBE_NETWORK_PLUGIN=weave CLOUD_IMAGE=ubuntu-1404-trusty CLOUD_REGION=asia-east1-c
- env: KUBE_NETWORK_PLUGIN=calico CLOUD_IMAGE=ubuntu-1404-trusty CLOUD_REGION=us-east1-d
# Issue with Weave #177 to be fixed
- env: KUBE_NETWORK_PLUGIN=weave CLOUD_IMAGE=debian-8-kubespray CLOUD_REGION=us-east1-d
- env: KUBE_NETWORK_PLUGIN=weave CLOUD_IMAGE=centos-7-sudo CLOUD_REGION=us-central1-c
- env: KUBE_NETWORK_PLUGIN=weave CLOUD_IMAGE=rhel-7-sudo CLOUD_REGION=europe-west1-b
- env: KUBE_NETWORK_PLUGIN=weave CLOUD_IMAGE=ubuntu-1510-wily CLOUD_REGION=us-east1-d
before_install:
# Install Ansible.
......
......@@ -38,12 +38,12 @@
with_items: "{{ docker_repo_info.repos }}"
when: docker_repo_info.repos|length > 0
- name: Configure docker repository on RedHat
- name: Configure docker repository on RedHat/CentOS
copy:
src: "rh_docker.repo"
dest: "/etc/yum.repos.d/docker.repo"
when: ansible_distribution == "RedHat" and
ansible_distribution_major_version > 7
when: ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7
- name: ensure docker packages are installed
action: "{{ docker_package_info.pkg_mgr }}"
......@@ -53,15 +53,6 @@
with_items: "{{ docker_package_info.pkgs }}"
when: docker_package_info.pkgs|length > 0
- name: Centos needs xfs storage type for devicemapper if used
lineinfile:
dest: /etc/sysconfig/docker-storage
line: "DOCKER_STORAGE_OPTIONS='--storage-opt dm.fs=xfs'"
regexp: '^DOCKER_STORAGE_OPTIONS=.*$'
state: present
backup: yes
when: ansible_distribution == "CentOS"
- meta: flush_handlers
- name: ensure docker service is started and enabled
......
......@@ -79,11 +79,10 @@
changed_when: False
- name: Install epel-release on RedHat/CentOS
action:
module: "{{ ansible_pkg_mgr }}"
name: "epel-release"
state: latest
when: ansible_distribution in ['CentOS', 'RedHat']
command: rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
when: ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7
changed_when: False
- name: Install packages requirements
action:
......
......@@ -2,7 +2,7 @@
- name: "Check certs | check if the certs have already been generated on first master"
stat:
path: "{{ kube_cert_dir }}/ca.pem"
delegate_to: groups['kube-master'][0]
delegate_to: "{{groups['kube-master'][0]}}"
register: kubecert_master
run_once: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment