49 lines
954 B
YAML
49 lines
954 B
YAML
---
|
|
- name: create ceph group
|
|
group:
|
|
name: ceph
|
|
gid: 64046
|
|
state: present
|
|
|
|
- name: install packages
|
|
apt:
|
|
name:
|
|
- ceph-osd
|
|
- ceph-mds
|
|
- ceph-mon
|
|
- ceph-mgr
|
|
- radosgw
|
|
- libjemalloc2
|
|
state: latest
|
|
|
|
- name: install sysctl tweaks
|
|
template:
|
|
src: ceph/sysctl.conf.j2
|
|
dest: /etc/sysctl.d/pvc-ceph.conf
|
|
|
|
- name: activate sysctl tweaks
|
|
command: sysctl -p /etc/sysctl.d/pvc-ceph.conf
|
|
|
|
- name: install user limits overrides
|
|
template:
|
|
src: ceph/limits.conf.j2
|
|
dest: /etc/security/limits.d/99-pvc-ceph.conf
|
|
|
|
- name: install ceph default config
|
|
template:
|
|
src: ceph/default.conf.j2
|
|
dest: /etc/default/ceph
|
|
|
|
- name: create ceph configuration directory
|
|
file:
|
|
dest: /etc/ceph
|
|
state: directory
|
|
|
|
- name: install ceph cluster configurations
|
|
template:
|
|
src: ceph/{{ item }}.j2
|
|
dest: /etc/ceph/{{ item }}
|
|
with_items:
|
|
- ceph.conf
|
|
- ceph.client.admin.keyring
|