diff options
author | Julien Dessaux | 2018-03-15 12:57:15 +0100 |
---|---|---|
committer | Julien Dessaux | 2018-03-15 18:11:22 +0100 |
commit | f6e0c851b219885e1e829514f214510a31e19a52 (patch) | |
tree | c02b35fc864c0fbdf276d364eb448255a5a04240 /services/main.cf | |
parent | Fixed update.cf problem no copying all template files (diff) | |
download | masterfiles-f6e0c851b219885e1e829514f214510a31e19a52.tar.gz masterfiles-f6e0c851b219885e1e829514f214510a31e19a52.tar.bz2 masterfiles-f6e0c851b219885e1e829514f214510a31e19a52.zip |
Added openvpn management policy
Diffstat (limited to '')
-rw-r--r-- | services/main.cf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/services/main.cf b/services/main.cf index 786524e..51a1fcb 100644 --- a/services/main.cf +++ b/services/main.cf @@ -45,9 +45,21 @@ bundle common classify }; } +bundle common g +{ + vars: + has_host_data:: + "host_data" data => readyaml("$(sys.inputdir)/cmdb/hosts/$(sys.host).yaml", 100k); + classes: + any:: + "has_host_data" expression => fileexists("$(sys.inputdir)/cmdb/hosts/$(sys.host).yaml"); +} + bundle agent main { methods: + andromeda|collab_jde:: + "andromeda" usebundle => openvpn; nagios:: "nagios" usebundle => nagios; } |