-
Notifications
You must be signed in to change notification settings - Fork 0
/
patch.cephadm.sh
executable file
·35 lines (30 loc) · 1.96 KB
/
patch.cephadm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
CEPHADM=$(which cephadm)
if [[ "${CEPHADM}X" == "X" ]]
then
echo "cephadm not installed!"
exit 0
fi
# RHEL Default container images ------------------------------------------------
RHEL_DEFAULT_IMAGE='registry.redhat.io/rhceph-beta/rhceph-5-rhel8:latest'
RHEL_DEFAULT_IMAGE_IS_MASTER='False'
RHEL_DEFAULT_IMAGE_RELEASE='pacific'
RHEL_DEFAULT_PROMETHEUS_IMAGE="registry.redhat.io/openshift4/ose-prometheus:v4.6"
RHEL_DEFAULT_NODE_EXPORTER_IMAGE="registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.5"
RHEL_DEFAULT_GRAFANA_IMAGE="registry.redhat.io/rhceph-beta/rhceph-5-dashboard-rhel8:latest"
RHEL_DEFAULT_ALERT_MANAGER_IMAGE="registry.redhat.io/openshift4/ose-prometheus-alertmanager:v4.5"
# ------------------------------------------------------------------------------
# LYVE Default container images ------------------------------------------------
LYVE_DEFAULT_IMAGE='cadmin:5000/rhceph-beta/rhceph-5-rhel8'
LYVE_DEFAULT_IMAGE_IS_MASTER='False'
LYVE_DEFAULT_IMAGE_RELEASE='pacific'
LYVE_DEFAULT_PROMETHEUS_IMAGE='cadmin:5000/openshift4/ose-prometheus:v4.6'
LYVE_DEFAULT_NODE_EXPORTER_IMAGE="cadmin:5000/openshift4/ose-prometheus-node-exporter:v4.5"
LYVE_DEFAULT_GRAFANA_IMAGE="cadmin:5000/rhceph-beta/rhceph-5-dashboard-rhel8:latest"
LYVE_DEFAULT_ALERT_MANAGER_IMAGE="cadmin:5000/openshift4/ose-prometheus-alertmanager:v4.5"
# ------------------------------------------------------------------------------
sed -i 's!^DEFAULT_IMAGE =.*!DEFAULT_IMAGE = "'${LYVE_DEFAULT_IMAGE}'"!g' ${CEPHADM}
sed -i 's!^DEFAULT_PROMETHEUS_IMAGE =.*!DEFAULT_PROMETHEUS_IMAGE = "'${LYVE_DEFAULT_PROMETHEUS_IMAGE}'"!g' ${CEPHADM}
sed -i 's!^DEFAULT_NODE_EXPORTER_IMAGE =.*!DEFAULT_NODE_EXPORTER_IMAGE = "'${LYVE_DEFAULT_NODE_EXPORTER_IMAGE}'"!g' ${CEPHADM}
sed -i 's!^DEFAULT_GRAFANA_IMAGE =.*!DEFAULT_GRAFANA_IMAGE = "'${LYVE_DEFAULT_GRAFANA_IMAGE}'"!g' ${CEPHADM}
sed -i 's!^DEFAULT_ALERT_MANAGER_IMAGE =.*!DEFAULT_ALERT_MANAGER_IMAGE = "'${LYVE_DEFAULT_ALERT_MANAGER_IMAGE}'"!g' ${CEPHADM}