Facebook
From d, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 97
  1. - hosts: metrics_graph
  2.   become: yes
  3.   vars:
  4.     grafana_url: https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.3.4-1.x86_64.rpm
  5.   tasks:
  6.     - name: "Install Grafana"
  7.       yum:
  8.         name: "{{ grafana_url }}"
  9.         state: present
  10.     - name: "Copy Grafana configuration"
  11.       template:
  12.         src: ./templates/grafana.ini
  13.         dest: /etc/grafana/grafana.ini
  14.     - service:
  15.         name: "grafana-server"
  16.         state: started
  17.     - name: "add any source, in our case influxdb"
  18.       grafana_datasource:
  19.         name: "datasource-influxdb"
  20.         grafana_url: "http://127.0.0.1:8080"
  21.         grafana_user: "admin"
  22.         grafana_password: "(hasĹ‚o jakie masz w grafana)"
  23.         ds_type: "influxdb"
  24.         url: "http://localhost:8086"
  25.         database: "metrics"
  26.         access: direct
  27.         is_default: yes
  28.     - name: Import Grafana dashboard foo
  29.       grafana_dashboard:
  30.         grafana_url: "http://127.0.0.1:8080"
  31.         grafana_user: "admin"
  32.         grafana_password: "(hasĹ‚o jakie masz w grafana)"
  33.         state: present
  34.         message: Updated by ansible
  35.         overwrite: yes
  36.         slug: apache
  37.         path: /tmp/apache.json
  38.  

Replies to d rss

Title Name Language When
Re: d d text 1 Year ago.