Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override BEAT_LOG_OPTS in systemd unit file #101

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions roles/test-beat/tasks/linux/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@
dest: '{{ beat_cfg }}'
mode: 0600

- name: Create dir for systemd overrides
file:
path: '/etc/systemd/system/{{ beat_service_name }}.service.d'
state: directory
mode: 0755

- name: Override log options for systemd to get a log file
template:
src: systemd.debug.conf
dest: '/etc/systemd/system/{{ beat_service_name }}.service.d/debug.conf'
mode: 0600

- name: 'Start {{ beat_service_name }} service'
service:
name: '{{ beat_service_name }}'
Expand Down
2 changes: 2 additions & 0 deletions roles/test-beat/templates/systemd.debug.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
Environment="BEAT_LOG_OPTS="