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

Include local netdata config into hosts playbook

parent 4a48b8bb
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,15 @@
- "Include NetData to Boot-List"
- "Start NetData"
- name: "Check if local netdata installation exists"
shell: ls /usr/share/netdata/web/index.html
delegate_to: localhost
run_once: true
register: netdata_local_available
failed_when: false
changed_when: false
tags: 'LocalConfig'
- name: "Install local dashboard"
template:
src=tv-company.html
......@@ -48,6 +57,8 @@
mode=644
delegate_to: localhost
run_once: true
tags: 'LocalConfig'
when: netdata_local_available.stdout == '/usr/share/netdata/web/index.html'
- name: "Configure FireQoS"
template:
......
......@@ -18,11 +18,7 @@
<script>
NETDATA.options.current.destroy_on_hide = true;
NETDATA.options.current.eliminate_zero_dimensions = true;
NETDATA.options.current.stop_updates_when_focus_is_lost = false;
var RELOAD_EVERY = 5;
setTimeout(function(){
location.reload();
}, RELOAD_EVERY * 60 * 1000);
NETDATA.options.current.stop_updates_when_focus_is_lost = true;
</script>
</head>
......
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