vitrage-tempest-plugin/playbooks/pre.yaml
Idan Hefetz d79c372076 Native Zuul v3
Change-Id: I938cb7d5f820a761fc65ac82d137f83a2188faed
2020-08-20 14:09:32 +00:00

36 lines
1.0 KiB
YAML

- hosts: tempest
tasks:
- name: Create /etc/vitrage and make it available to stack and tempest user
file:
path: /etc/vitrage
state: directory
mode: 0777
owner: tempest
group: stack
become: yes
- name: Create /etc/vitrage/static_datasources and make it available to stack and tempest user
file:
path: /etc/vitrage/static_datasources
state: directory
mode: 0777
owner: tempest
group: stack
become: yes
- name: Copy prometheus_conf to vitrage folder
blockinfile:
path: "/etc/vitrage/prometheus_conf.yaml"
mode: 0644
create: yes
block: |
alerts:
- key:
alertname: HighCpuOnVmAlert
job: libvirt
resource:
instance_name: domain
host_id: instance
- key:
alertname: HighInodeUsage
job: node
resource:
id: instance