Skip to content

Commit

Permalink
feat(FreeBSD): add support
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Jan 21, 2024
1 parent 9c47ba8 commit 653201f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syslog_ng/config/file.sls
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ syslog_ng/config/install:
}}
- template: jinja
- user: root
- group: root
- group: {{ syslog_ng.rootgroup }}
- mode: 644
- require:
- sls: {{ sls_package_install }}
Expand Down
1 change: 1 addition & 0 deletions syslog_ng/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# vim: ft=yaml
---
syslog_ng:
rootgroup: root
package: syslog-ng
service: syslog-ng
syslog_ng_config: /etc/syslog-ng/syslog-ng.conf
6 changes: 5 additions & 1 deletion syslog_ng/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
---
Gentoo:
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:
service: [email protected]

FreeBSD:
rootgroup: wheel
syslog_ng_config: /usr/local/etc/syslog-ng/syslog-ng.conf

0 comments on commit 653201f

Please sign in to comment.