Преглед изворни кода

Unify cluster-monitoring install variables

Frederic Branczyk пре 6 година
родитељ
комит
64f19cf21c

+ 11 - 0
inventory/hosts.example

@@ -637,6 +637,17 @@ debug_level=2
 #openshift_persistentlocalstorage_path=/mnt/local-storage
 #openshift_persistentlocalstorage_provisionner_image=quay.io/external_storage/local-volume-provisioner:v1.0.1
 
+# Cluster monitoring
+#
+# Cluster monitoring is enabled by default, disable it by setting
+# openshift_cluster_monitoring_operator_install=false
+#
+# Cluster monitoring configuration variables allow setting the amount of
+# storage requested through PersistentVolumeClaims.
+#
+# openshift_cluster_monitoring_operator_prometheus_storage_capacity="50Gi"
+# openshift_cluster_monitoring_operator_alertmanager_storage_capacity="2Gi"
+
 # Logging deployment
 #
 # Currently logging deployment is disabled by default, enable it by setting this

+ 1 - 1
playbooks/common/openshift-cluster/upgrades/upgrade_components.yml

@@ -21,7 +21,7 @@
     - openshift_enable_service_catalog | default(true) | bool
 
 - import_playbook: ../../../openshift-monitoring/private/config.yml
-  when: openshift_monitoring_deploy | default(false) | bool
+  when: openshift_cluster_monitoring_operator_install | default(true) | bool
 
 - import_playbook: ../../../openshift-monitor-availability/private/config.yml
   when: openshift_monitor_availability_install | default(false) | bool

+ 1 - 1
playbooks/common/private/components.yml

@@ -20,7 +20,7 @@
 - import_playbook: ../../openshift-hosted/private/config.yml
 
 - import_playbook: ../../openshift-monitoring/private/config.yml
-  when: openshift_monitoring_deploy | default(false) | bool
+  when: openshift_cluster_monitoring_operator_install | default(true) | bool
 
 - import_playbook: ../../openshift-metering/private/config.yml
   when: openshift_metering_install | default(false) | bool