abusesa: Add abusesa::recorder

This commit is contained in:
Ossi Salmi 2016-06-04 22:46:10 +03:00
parent f0a48f506c
commit 995d01d38e
3 changed files with 260 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/bash
NETWORK_IFC="<%= @interface_real %>"
CAPTURE_DIR="/var/lib/recorder/<%= @name %>"
SNAPLEN="<%= @snaplen %>"
KEEPTIME="<%= @keeptime %>"
BLOCKSIZE="<%= @blocksize %>"
FILTER="<%= @filter %>"
OPTIONS="<%= @probeopt %>"
. /etc/abusesa/abusesa-functions

View file

@ -0,0 +1,14 @@
#!/bin/bash
CAPTURE_DIR="/var/lib/recorder/<%= @name %>"
PRIVATE_CERT="<%= @puppet_ssldir %>/private_keys/<%= @homename %>.pem"
PUBLIC_CERT="<%= @puppet_ssldir %>/certs/<%= @homename %>.pem"
PORT="<%= @remoteport %>"
<% if @collab.is_a?(Array) -%>
COLLAB="<%= @collab.join(" ") %>"
<% else -%>
COLLAB="<%= @collab %>"
<% end -%>
OPTIONS="<%= @remoteopt %>"
. /etc/abusesa/abusesa-functions