Skip to content

Commit

Permalink
Changes the way external scripts are installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrzybek committed Nov 16, 2017
1 parent 1baeab5 commit 8517da5
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tasks/telegraf_post_install_nova.yml

This file was deleted.

27 changes: 27 additions & 0 deletions tasks/telegraf_post_install_scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- name: Install scripts to get openstack stats
template:
src: "{{ item.value.plugin_source_path }}"
dest: "{{ telegraf_openstack_scripts_path }}/{{ item.value.plugin_name }}"
mode: '0755'
owner: "root"
group: "root"
with_dict: "{{ telegraf_openstack_scripts }}"
when:
- item.value.when_group | bool
- item.value.group == inventory_hostname or inventory_hostname in item.value.group | default([])
tags:
- telegraf_client-config

- name: Telegraf configuration for openstack scripts
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "root"
group: "root"
with_items:
- { src: "openstack.conf.j2", dest: "/etc/telegraf/telegraf.d/openstack.conf" }
- { src: "telegraf.sudo.j2", dest: "/etc/sudoers.d/telegraf" }
tags:
- telegraf_client-config
notify:
- restart telegraf
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8517da5

Please sign in to comment.