Browse Source

install prometheus

master
Nicolas Massé 8 years ago
parent
commit
c31c02cdbb
  1. 3
      playbooks/configure-openshift-access-control.yml
  2. 5
      playbooks/site.yml
  3. 6
      prod.hosts

3
playbooks/configure-openshift-access-control.yml

@ -6,3 +6,6 @@
tasks:
- name: Remove authenticated users the right to create projects
command: oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated:oauth
- name: Give the monitoring rights to nicolas
command: oc adm policy add-role-to-user view nicolas.masse@itix.fr -n openshift-metrics

5
playbooks/site.yml

@ -5,10 +5,13 @@
- include: "preparation.yml"
# Launch the OpenShift Installer Playbook
- include: "../openshift-ansible/playbooks/byo/config.yml"
- include: "../openshift-ansible/playbooks/byo/openshift-clister/config.yml"
- include: "post-install.yml"
# Install Prometheus
- include: "../openshift-ansible/playbooks/byo/openshift-cluster/openshift-prometheus.yml"
- include: "provision-global-templates-and-imagestreams.yml"
- include: "configure-openshift-access-control.yml"

6
prod.hosts

@ -35,6 +35,12 @@ nodes
etcd
[OSEv3:vars]
# Deploy Prometheus
openshift_hosted_prometheus_deploy=true
openshift_prometheus_storage_type='pvc'
openshift_prometheus_alertmanager_storage_type='pvc'
openshift_prometheus_alertbuffer_storage_type='pvc'
#
# Starting with 3.6, default templates and imagestreams can be left out
# see https://bugzilla.redhat.com/show_bug.cgi?id=1506578

Loading…
Cancel
Save