}} | }} | ||||
- template: jinja | - template: jinja | ||||
- user: root | - user: root | ||||
- group: root | |||||
- group: {{ syslog_ng.rootgroup }} | |||||
- mode: 644 | - mode: 644 | ||||
- require: | - require: | ||||
- sls: {{ sls_package_install }} | - sls: {{ sls_package_install }} |
# vim: ft=yaml | # vim: ft=yaml | ||||
--- | --- | ||||
syslog_ng: | syslog_ng: | ||||
rootgroup: root | |||||
package: syslog-ng | package: syslog-ng | ||||
service: syslog-ng | service: syslog-ng | ||||
syslog_ng_config: /etc/syslog-ng/syslog-ng.conf | syslog_ng_config: /etc/syslog-ng/syslog-ng.conf |
--- | --- | ||||
Gentoo: | Gentoo: | ||||
package: app-admin/syslog-ng | package: app-admin/syslog-ng | ||||
service: {{ 'syslog-ng@default' if grains.init == 'systemd' else 'syslog-ng' }} | |||||
service: {{ 'syslog-ng@default' if grains.get('init', 'unknown') == 'systemd' else 'syslog-ng' }} | |||||
Arch: | Arch: | ||||
service: syslog-ng@default.service | service: syslog-ng@default.service | ||||
FreeBSD: | |||||
rootgroup: wheel | |||||
syslog_ng_config: /usr/local/etc/syslog-ng/syslog-ng.conf |