browbeat/ansible/browbeat/snapshot-general-performance-dashboard.yml
Alex Krzos 86dba51a41 Snapshots via Grafana Anonymous Access
+ Anonymous access on grafana allows pngs to be rendered without authentication
+ Fixed ansible 2.0 depreciation warning.
+ Specify ansible_python_interpreter to avoid following issue:
  - https://github.com/ansible/ansible/issues/13773

Change-Id: I2f68d8e9ad5f9f39befb05a023cc68b1de754e94
2016-03-31 00:05:47 -04:00

52 lines
1.4 KiB
YAML

---
#
# Snapshot Dashboard
#
# Example Usage:
# ansible-playbook -i hosts browbeat/snapshot-general-performance-dashboard.yml -e "grafana_ip=1.1.1.1 grafana_port=3000 from=1455649200000 to=1455656400000 results_dir=results/ var_cloud=openstack"
#
# Append snapshot_compute=true to run snapshots against computes.
#
- hosts: localhost
gather_facts: false
remote_user: stack
vars:
ansible_connection: local
ansible_python_interpreter: "/usr/bin/python"
host_type: undercloud
host_suffix: ""
hosts_in_group: "{{groups['undercloud']}}"
disks_in_group: "{{disks['undercloud']}}"
interfaces_in_group: "{{interfaces['undercloud']}}"
roles:
- grafana-snapshot
- hosts: localhost
gather_facts: false
remote_user: stack
vars:
ansible_connection: local
ansible_python_interpreter: "/usr/bin/python"
host_type: controller
host_suffix: ""
hosts_in_group: "{{groups['controller']}}"
disks_in_group: "{{disks['controller']}}"
interfaces_in_group: "{{interfaces['controller']}}"
roles:
- grafana-snapshot
- hosts: localhost
gather_facts: false
remote_user: stack
vars:
ansible_connection: local
ansible_python_interpreter: "/usr/bin/python"
host_type: compute
host_suffix: ""
hosts_in_group: "{{groups['compute']}}"
disks_in_group: "{{disks['compute']}}"
interfaces_in_group: "{{interfaces['compute']}}"
roles:
- { role: grafana-snapshot, when: snapshot_compute is defined }