Adding rsyslog remote server functionality (#6)
* adding server functionality
* Adding rsyslog remote server functionality
* removing hardcoded port values, updating README, adding simple tests
* Update common.sls
diff --git a/metadata/service/server/init.yml b/metadata/service/server/init.yml
new file mode 100644
index 0000000..94c1a50
--- /dev/null
+++ b/metadata/service/server/init.yml
@@ -0,0 +1,24 @@
+applications:
+- rsyslog
+classes:
+- service.rsyslog.support
+parameters:
+ _param:
+ rsyslog_port: 10514
+ rsyslog:
+ server:
+ enabled: true
+ module:
+ imtcp: {}
+ template:
+ RemoteStorage:
+ parameter:
+ type: string
+ string: /var/log/%HOSTNAME%/%programname%.log
+ ruleset:
+ RemoteLogs:
+ description: action(type="omfile" dynaFile="RemoteStorage")
+ input:
+ imtcp:
+ port: ${_param:rsyslog_port}
+ ruleset: RemoteLogs