#!/bin/bash set -xe namespace="utility" CURRENT_DIR="$(pwd)" : ${OSH_INFRA_PATH:="../../openstack-helm-infra"} cd "${OSH_INFRA_PATH}" for CHART in ceph-mon ceph-client ceph-provisioners; do make "${CHART}" done #NOTE: Deploy command : ${OSH_EXTRA_HELM_ARGS:=""} [ -s /tmp/ceph-fs-uuid.txt ] || uuidgen > /tmp/ceph-fs-uuid.txt CEPH_FS_ID="$(cat /tmp/ceph-fs-uuid.txt)" #NOTE(portdirect): to use RBD devices with Ubuntu kernels < 4.5 this # should be set to 'hammer' . /etc/os-release if [ "x${ID}" == "xubuntu" ] && \ [ "$(uname -r | awk -F "." '{ print $2 }')" -lt "5" ]; then CRUSH_TUNABLES=hammer else CRUSH_TUNABLES=null fi tee /tmp/ceph.yaml <