From d5ee64c6d241678cbe27f37733b497b5e13667a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sun, 12 Jan 2020 15:32:59 +0100 Subject: [PATCH] fixed syntax errors --- ansible-ctdo/host_vars/master/main.yml | 30 ++++++++++++++++++++++++++ dhcp/ctdo.conf | 24 ++++++++++----------- 2 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 ansible-ctdo/host_vars/master/main.yml diff --git a/ansible-ctdo/host_vars/master/main.yml b/ansible-ctdo/host_vars/master/main.yml new file mode 100644 index 0000000..1f98b0e --- /dev/null +++ b/ansible-ctdo/host_vars/master/main.yml @@ -0,0 +1,30 @@ +telegraf_agent_version: 1.13.1 +telegraf_agent_output: + - type: influxdb + config: + - urls = ["http://127.0.0.1:8086"] + - database = "telegraf" + - precision = "s" + - retention_policy = "" + - write_consistency = "any" + - timeout = "5s" +telegraf_plugins_default: + - plugin: cpu + config: + - percpu = true + - totalcpu = true + - fielddrop = [ "time_*" ] + - plugin: disk + config: + - ignore_fs = ["tmpfs", "devtmpfs", "cifs", "nfs"] + - plugin: diskio + - plugin: kernel + - plugin: mem + - plugin: processes + - plugin: swap + - plugin: system + - plugin: netstat + - plugin: net + - plugin: ping + config: + - urls = ["{{ groups['nodes'] | map('extract', hostvars, ['ansible_host']) | join('","') }}"] \ No newline at end of file diff --git a/dhcp/ctdo.conf b/dhcp/ctdo.conf index 77d9681..6734b96 100644 --- a/dhcp/ctdo.conf +++ b/dhcp/ctdo.conf @@ -158,15 +158,15 @@ host node35 { fixed-address 10.10.0.135; } # geht leider nicht an -host node36 { - hardware ethernet 00:30:48:bc; - fixed-address 10.10.0.137; -} +#host node36 { +# hardware ethernet 00:30:48:bc; +# fixed-address 10.10.0.137; +#} # geht leider nicht an -host node37 { - hardware ethernet 00:30:48:bc; - fixed-address 10.10.0.137; -} +#host node37 { +# hardware ethernet 00:30:48:bc; +# fixed-address 10.10.0.137; +#} # hat zusaetzliche Karte mit 1 Nic host node38 { hardware ethernet 00:30:48:bc:84:86; @@ -186,10 +186,10 @@ host node41 { fixed-address 10.10.0.141; } # zeigt nichts an.. Netzteil klemmt -host node42 { - hardware ethernet 00:30:48:bc:; - fixed-address 10.10.0.142 -} +#host node42 { +# hardware ethernet 00:30:48:bc:; +# fixed-address 10.10.0.142 +#} host node43 { hardware ethernet 00:30:48:bc:84:be; fixed-address 10.10.0.143;