Skip to content
Snippets Groups Projects
Verified Commit ba0d2553 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Initial import


Signed-off-by: default avatarThomas Schneider <qsx@qsx.re>
parents
No related branches found
No related tags found
No related merge requests found
[Service]
ExecStart=
ExecStart=/lib/systemd/systemd-journal-remote --listen-http=-3 --output=/var/log/journal/remote/
- name: Run systemd-tmpfiles
command: systemd-tmpfiles --create --prefix=/var/log/journal/remote
- name: Install systemd-journal-remote
apt:
name: systemd-journal-remote
state: present
tags:
- journal-remote
- packages
- name: Ensure presence of unit drop-in config directory
file:
path: /etc/systemd/system/systemd-journal-remote.service.d
owner: root
group: root
mode: 0755
state: directory
tags:
- journal-remote
- config
- name: Configure journal-remote to use HTTP
copy:
dest: /etc/systemd/system/systemd-journal-remote.service.d/http.conf
owner: root
group: root
mode: 0644
src: http.conf
tags:
- journal-remote
- config
- name: Ensure journal-remote directory is present
file:
path: /var/log/journal/remote
state: directory
notify:
- Run systemd-tmpfiles
tags:
- journal-remote
- name: Enable journal-remote service
systemd:
name: systemd-journal-remote.socket
enabled: yes
daemon_reload: yes
state: started
tags:
- journal-remote
- service
- name: Install systemd-journal-remote
apt:
name: systemd-journal-remote
state: present
tags:
- journal-upload
- packages
- name: Configure systemd-journal-upload
template:
dest: /etc/systemd/journal-upload.conf
src: journal-upload.conf
tags:
- journal-upload
- config
- name: Enable journal-upload service
systemd:
name: systemd-journal-upload.service
enabled: yes
state: started
tags:
- journal-upload
- service
[Upload]
URL={{journal_remote_host}}
# ServerKeyFile=/etc/ssl/private/journal-upload.pem
# ServerCertificateFile=/etc/ssl/certs/journal-upload.pem
# TrustedCertificateFile=/etc/ssl/ca/trusted.pem
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment