From fe354cf4f8772f1f4c39e2f96d96fa768c6289f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 23 Aug 2017 15:59:33 +0200 Subject: [PATCH] deploy metrics --- allinone.hosts | 9 ++++++++- allinone.yml | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/allinone.hosts b/allinone.hosts index be9e639..a449801 100644 --- a/allinone.hosts +++ b/allinone.hosts @@ -18,7 +18,6 @@ openshift_master_default_subdomain=app.openshift.test # The SSH user that Ansible will use to run playbooks ansible_ssh_user=redhat - [masters] openshift36.openshift.test @@ -70,3 +69,11 @@ openshift_additional_projects={} # Choose the default networking plugin so that all projects can communicate with eachother os_sdn_network_plugin_name='redhat/openshift-ovs-subnet' + +# Deploy the metrics +openshift_metrics_install_metrics=True +openshift_metrics_start_cluster=True + +# Metrics storage is provisioned through the hostpath-provisioner +openshift_metrics_cassandra_pvc_size=10Gi +openshift_metrics_cassandra_storage_type=dynamic diff --git a/allinone.yml b/allinone.yml index 43e21f9..a592646 100644 --- a/allinone.yml +++ b/allinone.yml @@ -15,6 +15,11 @@ # Launch the OpenShift Installer Playbook - include: "./openshift-ansible/playbooks/byo/config.yml" + - include: "./openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.yml" + vars: + # The hostname to allocate to hawkular (one of the components enabling metrics monitoring) + openshift_metrics_hawkular_hostname: "{{ 'hawkular-metrics.' ~ lab_dns_suffix }}" + - name: Customize the OpenShift installation hosts: allinone become: yes