Initial commit of PVC Ansible role
This commit is contained in:
48
roles/pvc/tasks/ceph.yml
Normal file
48
roles/pvc/tasks/ceph.yml
Normal file
@ -0,0 +1,48 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user