Ensure latest Ceph packages during deployment
Change-Id: Ia5bc0802577e2b72a1de078085f5fe7e60f63604
This commit is contained in:
parent
5730631ba6
commit
3e7ba37290
@ -61,22 +61,29 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
|
|
||||||
- when: kubelet.pv_support_ceph
|
- name: installing ceph support packages
|
||||||
name: installing ceph support packages
|
when: kubelet.pv_support_ceph
|
||||||
include_role:
|
block:
|
||||||
name: deploy-package
|
- name: ubuntu | installing packages
|
||||||
tasks_from: dist
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||||
vars:
|
apt:
|
||||||
packages:
|
name: "{{item}}"
|
||||||
deb:
|
state: latest
|
||||||
- ceph-common
|
with_items:
|
||||||
- rbd-nbd
|
|
||||||
rpm:
|
|
||||||
- ceph-common
|
- ceph-common
|
||||||
- rbd-nbd
|
- rbd-nbd
|
||||||
|
|
||||||
- when: kubelet.pv_support_ceph
|
- name: centos | installing packages
|
||||||
name: blacklist kernel RBD driver module
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
||||||
|
yum:
|
||||||
|
name: "{{item}}"
|
||||||
|
state: latest
|
||||||
|
with_items:
|
||||||
|
- ceph-common
|
||||||
|
- rbd-nbd
|
||||||
|
|
||||||
|
- name: blacklist kernel RBD driver module
|
||||||
|
when: kubelet.pv_support_ceph
|
||||||
copy:
|
copy:
|
||||||
dest: "/etc/modprobe.d/rbd.conf"
|
dest: "/etc/modprobe.d/rbd.conf"
|
||||||
content: "install rbd /bin/true"
|
content: "install rbd /bin/true"
|
||||||
|
Loading…
Reference in New Issue
Block a user