Packge install on CentOS 7

This commit is contained in:
Jeff Bean 2015-06-17 12:18:43 -04:00 committed by Eric Paris
parent f259892cc9
commit 45bdfeac0c
9 changed files with 45 additions and 16 deletions

View File

@ -0,0 +1,5 @@
[virt7-testing]
name=virt7-testing
baseurl=http://cbs.centos.org/repos/virt7-testing/x86_64/os/
enabled=0
gpgcheck=0

View File

@ -0,0 +1,3 @@
---
- name: CentOS | Install Testing centos7 repo for new tool versions
copy: src=virt7-testing.repo dest=/etc/yum.repos.d/virt7-testing.repo

View File

@ -16,3 +16,6 @@
# collect information about what packages are installed
- include: rpm.yml
when: ansible_pkg_mgr == "yum"
- include: centos.yml
when: ansible_distribution == "CentOS"

View File

@ -0,0 +1,5 @@
---
- name: CentOS | Install kubernetes CentOS style
yum: pkg=kubernetes state=latest enablerepo=virt7-testing
notify:
- restart daemons

View File

@ -0,0 +1,7 @@
- name: Install kubernetes
action: "{{ ansible_pkg_mgr }}"
args:
name: kubernetes-master
state: latest
notify:
- restart daemons

View File

@ -1,12 +1,9 @@
---
- name: Install kubernetes
action: "{{ ansible_pkg_mgr }}"
args:
name: kubernetes-master
state: latest
notify:
- restart daemons
when: not is_atomic
- include: generic-install.yml
when: not is_atomic and not ansible_distribution == "CentOS"
- include: centos.yml
when: not is_atomic and ansible_distribution == "CentOS"
- name: write the config file for the api server
template: src=apiserver.j2 dest=/etc/kubernetes/apiserver

View File

@ -0,0 +1,5 @@
---
- name: CentOS | Install kubernetes CentOS style
yum: pkg=kubernetes state=latest enablerepo=virt7-testing
notify:
- restart daemons

View File

@ -0,0 +1,7 @@
- name: Install kubernetes
action: "{{ ansible_pkg_mgr }}"
args:
name: kubernetes-node
state: latest
notify:
- restart daemons

View File

@ -1,12 +1,9 @@
---
- name: Install kubernetes
action: "{{ ansible_pkg_mgr }}"
args:
name: kubernetes-node
state: latest
notify:
- restart daemons
when: not is_atomic
- include: generic-install.yml
when: not is_atomic and not ansible_distribution == "CentOS"
- include: centos.yml
when: not is_atomic and ansible_distribution == "CentOS"
- name: write the config files for kubelet
template: src=kubelet.j2 dest=/etc/kubernetes/kubelet