Add support for CEPH installation
This change enables CEPH for all k8s scenario by default using Rook.
Change-Id: I89981eccb535252d8b6d4a66550b54d8b1a04a3c
diff --git a/playbooks/post-deployment.yml b/playbooks/post-deployment.yml
index a06486f..747fd66 100644
--- a/playbooks/post-deployment.yml
+++ b/playbooks/post-deployment.yml
@@ -17,12 +17,45 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+- hosts: baremetal
+ remote_user: root
+ gather_facts: true
+ become: true
+ vars_files:
+ - "roles/post-deployment/vars/main.yml"
+ tasks:
+ - name: Install necessary utilities for CEPH
+ apt:
+ name:
+ - xfsprogs
+ - gdisk
+ state: present
+ - name: Remove existing rook data directories
+ file:
+ path: "{{ rook_data_dir_path }}"
+ state: absent
+ ignore_errors: yes
+ tags: reset
+ - name: Remove existing rook storage directories
+ file:
+ path: "{{ rook_storage_dir_path }}"
+ state: absent
+ ignore_errors: yes
+ tags: reset
+ - name: Remove existing rook ceph osds
+ script: "roles/post-deployment/files/clean-ceph-osd.sh {{ rook_node_device_filter }}"
+ ignore_errors: yes
+ tags: reset
+
- hosts: localhost
connection: local
gather_facts: true
become: yes
vars_files:
+ - "{{ engine_path }}/engine/var/versions.yml"
- "{{ engine_path }}/engine/var/global.yml"
+ - "{{ pdf_file }}"
+ - "{{ idf_file }}"
# TODO: enable the execution of scenario specific post-deployment tasks
roles: