Skip to content
Snippets Groups Projects
Commit f9fd1134 authored by jurgenhaas's avatar jurgenhaas
Browse files

#2 Implement registry on pmon1

parent d7fc7583
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,11 @@
#FireQOS available from 15.04
#- firehol
- name: "Ensure Directory"
file:
path='/etc/netdata'
state='directory'
- name: "Clone NetData"
git:
accept_hostkey: true
......@@ -46,6 +51,20 @@
- "Include NetData to Boot-List"
- "Start NetData"
- name: "Configure Registry"
ini_file:
dest='/etc/netdata/netdata.conf'
section='registry'
option='{{ item.option }}'
value='{{ item.value }}'
with_items:
- option: 'enabled'
value: '{{ (netdata_registry|default("pmon1") == inventory_hostname)|ternary("yes", "no") }}'
- option: 'registry to announce'
value: 'http://{{ netdata_registry|default("pmon1") }}:19999'
notify:
- "Re-start NetData"
- name: "Configure FireQoS"
template:
src=etc_fireqos_fireqos.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment