Skip to content

Instantly share code, notes, and snippets.

@brentrjones
Created February 2, 2017 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentrjones/31f2415d36c1da0ab628cefa32c1bed3 to your computer and use it in GitHub Desktop.
Save brentrjones/31f2415d36c1da0ab628cefa32c1bed3 to your computer and use it in GitHub Desktop.
pillar/rsyslog.sls:
rsyslog:
host1: "@somehost1"
host2: "@somehost2"
state/rsyslog/template/remote.conf.jinja:
# Forward syslog messages to remote server
{% for host, hostname in pillar.get('rsyslog', {}).items() -%}
kern.*;*.info;mail.none;cron.*;authpriv.*;*.emerg {{ hostname }}
{% endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment