diff --git a/tools/deployment/ceph/ceph-radosgw.sh b/tools/deployment/ceph/ceph-radosgw.sh index 6a23bc82b..a4358fc4f 100755 --- a/tools/deployment/ceph/ceph-radosgw.sh +++ b/tools/deployment/ceph/ceph-radosgw.sh @@ -14,7 +14,9 @@ set -xe -: ${OSH_EXTRA_HELM_ARGS_CEPH_RGW:="$(helm osh get-values-overrides -c ceph-rgw ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_EXTRA_HELM_ARGS_CEPH_RGW:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c ceph-rgw ${FEATURES})"} #NOTE: Deploy command tee /tmp/radosgw-osh-infra.yaml < EOF -helm upgrade --install fluentd ./fluentd \ +helm upgrade --install fluentd ${OSH_INFRA_HELM_REPO}/fluentd \ --namespace=osh-infra \ --values=/tmp/fluentd.yaml \ ${OSH_INFRA_EXTRA_HELM_ARGS} \ diff --git a/tools/deployment/logging/kibana.sh b/tools/deployment/logging/kibana.sh index 3e0e384d1..47f1ea4d4 100755 --- a/tools/deployment/logging/kibana.sh +++ b/tools/deployment/logging/kibana.sh @@ -14,10 +14,12 @@ set -xe -: ${OSH_INFRA_EXTRA_HELM_ARGS_KIBANA:="$(helm osh get-values-overrides -c kibana ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_KIBANA:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c kibana ${FEATURES})"} #NOTE: Deploy command -helm upgrade --install kibana ./kibana \ +helm upgrade --install kibana ${OSH_INFRA_HELM_REPO}/kibana \ --namespace=osh-infra \ --set network.kibana.ingress.classes.namespace=nginx-osh-infra \ ${OSH_INFRA_EXTRA_HELM_ARGS} \ diff --git a/tools/deployment/monitoring/alertmanager.sh b/tools/deployment/monitoring/alertmanager.sh index 02d3c61f3..e2cbc8db5 100755 --- a/tools/deployment/monitoring/alertmanager.sh +++ b/tools/deployment/monitoring/alertmanager.sh @@ -14,8 +14,10 @@ set -xe +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} + #NOTE: Deploy command -helm upgrade --install prometheus-alertmanager ./prometheus-alertmanager \ +helm upgrade --install prometheus-alertmanager ${OSH_INFRA_HELM_REPO}/prometheus-alertmanager \ --namespace=osh-infra \ --set pod.replicas.alertmanager=1 diff --git a/tools/deployment/monitoring/blackbox-exporter.sh b/tools/deployment/monitoring/blackbox-exporter.sh index 97b17acb6..85fb496eb 100755 --- a/tools/deployment/monitoring/blackbox-exporter.sh +++ b/tools/deployment/monitoring/blackbox-exporter.sh @@ -14,9 +14,11 @@ set -xe +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} + #NOTE: Deploy command helm upgrade --install prometheus-blackbox-exporter \ - ./prometheus-blackbox-exporter --namespace=osh-infra + ${OSH_INFRA_HELM_REPO}/prometheus-blackbox-exporter --namespace=osh-infra #NOTE: Wait for deploy helm osh wait-for-pods osh-infra diff --git a/tools/deployment/monitoring/grafana.sh b/tools/deployment/monitoring/grafana.sh index 975f0acab..ac30ea467 100755 --- a/tools/deployment/monitoring/grafana.sh +++ b/tools/deployment/monitoring/grafana.sh @@ -14,11 +14,13 @@ set -xe +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} FEATURE_GATES="calico ceph containers coredns elasticsearch kubernetes nginx nodes openstack prometheus home_dashboard persistentvolume apparmor" -: ${OSH_INFRA_EXTRA_HELM_ARGS_GRAFANA:=$(helm osh get-values-overrides -c grafana ${FEATURE_GATES} ${FEATURES} 2>/dev/null)} +: ${OSH_INFRA_EXTRA_HELM_ARGS_GRAFANA:=$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c grafana ${FEATURE_GATES} ${FEATURES} 2>/dev/null)} #NOTE: Deploy command -helm upgrade --install grafana ./grafana \ +helm upgrade --install grafana ${OSH_INFRA_HELM_REPO}/grafana \ --namespace=osh-infra \ ${OSH_INFRA_EXTRA_HELM_ARGS:=} \ ${OSH_INFRA_EXTRA_HELM_ARGS_GRAFANA} diff --git a/tools/deployment/monitoring/kube-state-metrics.sh b/tools/deployment/monitoring/kube-state-metrics.sh index 411cf1e86..132588d27 100755 --- a/tools/deployment/monitoring/kube-state-metrics.sh +++ b/tools/deployment/monitoring/kube-state-metrics.sh @@ -14,11 +14,13 @@ set -xe -#NOTE: Deploy command -: ${OSH_INFRA_EXTRA_HELM_ARGS_KUBE_STATE_METRICS:="$(helm osh get-values-overrides -c prometheus-kube-state-metrics ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_KUBE_STATE_METRICS:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c prometheus-kube-state-metrics ${FEATURES})"} +#NOTE: Deploy command helm upgrade --install prometheus-kube-state-metrics \ - ./prometheus-kube-state-metrics --namespace=kube-system \ + ${OSH_INFRA_HELM_REPO}/prometheus-kube-state-metrics --namespace=kube-system \ ${OSH_INFRA_EXTRA_HELM_ARGS_KUBE_STATE_METRICS} #NOTE: Wait for deploy diff --git a/tools/deployment/monitoring/mysql-exporter.sh b/tools/deployment/monitoring/mysql-exporter.sh index 3f63bf998..079539409 100755 --- a/tools/deployment/monitoring/mysql-exporter.sh +++ b/tools/deployment/monitoring/mysql-exporter.sh @@ -14,10 +14,12 @@ set -xe -: ${OSH_INFRA_EXTRA_HELM_ARGS_MARIADB_MYSQL_EXPORTER:="$(helm osh get-values-overrides -c prometheus-mysql-exporter ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_MARIADB_MYSQL_EXPORTER:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c prometheus-mysql-exporter ${FEATURES})"} #NOTE: Deploy command -helm upgrade --install prometheus-mysql-exporter ./prometheus-mysql-exporter \ +helm upgrade --install prometheus-mysql-exporter ${OSH_INFRA_HELM_REPO}/prometheus-mysql-exporter \ --namespace=openstack \ --wait \ --timeout 900s \ diff --git a/tools/deployment/monitoring/nagios.sh b/tools/deployment/monitoring/nagios.sh index 444339d8f..06ddbcd7a 100755 --- a/tools/deployment/monitoring/nagios.sh +++ b/tools/deployment/monitoring/nagios.sh @@ -14,10 +14,12 @@ set -xe -: ${OSH_INFRA_EXTRA_HELM_ARGS_NAGIOS:="$(helm osh get-values-overrides -c nagios ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_NAGIOS:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c nagios ${FEATURES})"} #NOTE: Deploy command -helm upgrade --install nagios ./nagios \ +helm upgrade --install nagios ${OSH_INFRA_HELM_REPO}/nagios \ --namespace=osh-infra \ ${OSH_INFRA_EXTRA_HELM_ARGS:=} \ ${OSH_INFRA_EXTRA_HELM_ARGS_NAGIOS} diff --git a/tools/deployment/monitoring/node-exporter.sh b/tools/deployment/monitoring/node-exporter.sh index 6657b1bf7..6d2c3a542 100755 --- a/tools/deployment/monitoring/node-exporter.sh +++ b/tools/deployment/monitoring/node-exporter.sh @@ -14,11 +14,13 @@ set -xe -#NOTE: Deploy command -: ${OSH_INFRA_EXTRA_HELM_ARGS_NODE_EXPORTER:="$(helm osh get-values-overrides -c prometheus-node-exporter ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_NODE_EXPORTER:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c prometheus-node-exporter ${FEATURES})"} +#NOTE: Deploy command helm upgrade --install prometheus-node-exporter \ - ./prometheus-node-exporter --namespace=kube-system \ + ${OSH_INFRA_HELM_REPO}/prometheus-node-exporter --namespace=kube-system \ ${OSH_INFRA_EXTRA_HELM_ARGS_NODE_EXPORTER} #NOTE: Wait for deploy diff --git a/tools/deployment/monitoring/node-problem-detector.sh b/tools/deployment/monitoring/node-problem-detector.sh index 7799d7e18..6dc08a4f3 100755 --- a/tools/deployment/monitoring/node-problem-detector.sh +++ b/tools/deployment/monitoring/node-problem-detector.sh @@ -13,6 +13,8 @@ set -xe +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} + #NOTE: Deploy command tee /tmp/kubernetes-node-problem-detector.yaml << EOF monitoring: @@ -25,7 +27,7 @@ manifests: service: true EOF helm upgrade --install kubernetes-node-problem-detector \ - ./kubernetes-node-problem-detector --namespace=kube-system \ + ${OSH_INFRA_HELM_REPO}/kubernetes-node-problem-detector --namespace=kube-system \ --values=/tmp/kubernetes-node-problem-detector.yaml #NOTE: Wait for deploy diff --git a/tools/deployment/monitoring/openstack-exporter.sh b/tools/deployment/monitoring/openstack-exporter.sh index 0c57c3cfd..a95893a96 100755 --- a/tools/deployment/monitoring/openstack-exporter.sh +++ b/tools/deployment/monitoring/openstack-exporter.sh @@ -14,8 +14,9 @@ set -xe -#NOTE: Deploy command -: ${OSH_INFRA_EXTRA_HELM_ARGS_OS_EXPORTER:="$(helm osh get-values-overrides -c prometheus-openstack-exporter ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_OS_EXPORTER:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c prometheus-openstack-exporter ${FEATURES})"} tee /tmp/prometheus-openstack-exporter.yaml << EOF manifests: @@ -27,8 +28,9 @@ dependencies: services: null EOF +#NOTE: Deploy command helm upgrade --install prometheus-openstack-exporter \ - ./prometheus-openstack-exporter \ + ${OSH_INFRA_HELM_REPO}/prometheus-openstack-exporter \ --namespace=openstack \ --values=/tmp/prometheus-openstack-exporter.yaml \ ${OSH_INFRA_EXTRA_HELM_ARGS_OS_EXPORTER} diff --git a/tools/deployment/monitoring/process-exporter.sh b/tools/deployment/monitoring/process-exporter.sh index a78820847..ae71ecd8c 100755 --- a/tools/deployment/monitoring/process-exporter.sh +++ b/tools/deployment/monitoring/process-exporter.sh @@ -14,11 +14,13 @@ set -xe -#NOTE: Deploy command -: ${OSH_INFRA_EXTRA_HELM_ARGS_PROCESS_EXPORTER:="$(helm osh get-values-overrides -c prometheus-process-exporter ${FEATURES})"} +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_PROCESS_EXPORTER:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c prometheus-process-exporter ${FEATURES})"} +#NOTE: Deploy command helm upgrade --install prometheus-process-exporter \ - ./prometheus-process-exporter --namespace=kube-system \ + ${OSH_INFRA_HELM_REPO}/prometheus-process-exporter --namespace=kube-system \ ${OSH_INFRA_EXTRA_HELM_ARGS_PROCESS_EXPORTER} #NOTE: Wait for deploy diff --git a/tools/deployment/monitoring/prometheus.sh b/tools/deployment/monitoring/prometheus.sh index ce0ebb62a..1217f873a 100755 --- a/tools/deployment/monitoring/prometheus.sh +++ b/tools/deployment/monitoring/prometheus.sh @@ -14,11 +14,13 @@ set -xe +: ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} +: ${OSH_INFRA_PATH:="../openstack-helm-infra"} FEATURE_GATES="alertmanager ceph elasticsearch kubernetes nodes openstack postgresql apparmor" -: ${OSH_INFRA_EXTRA_HELM_ARGS_PROMETHEUS:="$(helm osh get-values-overrides -c prometheus ${FEATURE_GATES} ${FEATURES})"} +: ${OSH_INFRA_EXTRA_HELM_ARGS_PROMETHEUS:="$(helm osh get-values-overrides -p ${OSH_INFRA_PATH} -c prometheus ${FEATURE_GATES} ${FEATURES})"} #NOTE: Deploy command -helm upgrade --install prometheus ./prometheus \ +helm upgrade --install prometheus ${OSH_INFRA_HELM_REPO}/prometheus \ --namespace=osh-infra \ ${OSH_INFRA_EXTRA_HELM_ARGS:=} \ ${OSH_INFRA_EXTRA_HELM_ARGS_PROMETHEUS}