From f9fd113485575a8cc6f04e83550115ad1abac897 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 9 Jun 2016 14:51:23 +0200 Subject: [PATCH] #2 Implement registry on pmon1 --- tasks/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 6fa8826..0493303 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 -- GitLab