Merge "Add the CentOS system to Ceph related configuration file."
This commit is contained in:
commit
8f068ac705
|
@ -30,8 +30,9 @@ CEPH_FS_ID="$(cat /tmp/ceph-fs-uuid.txt)"
|
||||||
#NOTE(portdirect): to use RBD devices with Ubuntu kernels < 4.5 this
|
#NOTE(portdirect): to use RBD devices with Ubuntu kernels < 4.5 this
|
||||||
# should be set to 'hammer'
|
# should be set to 'hammer'
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
if [ "x${ID}" == "xubuntu" ] && \
|
if [ "x${ID}" == "xcentos" ] || \
|
||||||
[ "$(uname -r | awk -F "." '{ print $2 }')" -lt "5" ]; then
|
([ "x${ID}" == "xubuntu" ] && \
|
||||||
|
[ "$(uname -r | awk -F "." '{ print $2 }')" -lt "5" ]); then
|
||||||
CRUSH_TUNABLES=hammer
|
CRUSH_TUNABLES=hammer
|
||||||
else
|
else
|
||||||
CRUSH_TUNABLES=null
|
CRUSH_TUNABLES=null
|
||||||
|
|
Loading…
Reference in New Issue