Add bootstrapping of Ceph

This commit is contained in:
2019-06-11 11:17:56 -04:00
parent 7bc68d4f01
commit 20595c7027
2 changed files with 164 additions and 7 deletions

View File

@ -1,4 +1,10 @@
---
- name: initial deployment check
shell: "echo 'bootstrapped' > /etc/ceph-install"
register: newhost
args:
creates: "/etc/ceph-install"
- name: install packages
apt:
name:
@ -33,10 +39,5 @@
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
- include: bootstrap_ceph.yml
when: newhost.changed