Fix log2ram #26

Closed
opened 2020-08-13 19:57:10 +00:00 by kemonine · 0 comments
Owner

Dicussions about log2ram being out of space yielded the following idea from a friend


- name: Install log2ram official key
  apt_key:
    id: 98B824A5FA7D3A10FDB225B7CA548A0A0312D8E6
    url: https://azlux.fr/repo.gpg.key
    state: present
  when: (ssd is defined) and (ssd == 1)

- name: Install log2ram repository
  apt_repository:
    repo: deb http://packages.azlux.fr/debian/ buster main
    state: present
    filename: log2ram-official
  when: (ssd is defined) and (ssd == 1)
  
- name: Max size of log2ram at 512M
  lineinfile:
    path: "/etc/log2ram.conf"
    regexp: "SIZE="
    line: "SIZE=512M"
    state: present
  when: (ssd is defined) and (ssd == 1)

- name: install log2ram package
  apt:
    name: "log2ram"
    state: present
  when: (ssd is defined) and (ssd == 1)

- name: Ensure journald use volatile
  lineinfile:
    path: "/etc/systemd/journald.conf"
    regexp: "Storage="
    line: "Storage=volatile"
    state: present
  when: (ssd is defined) and (ssd == 1)
  notify: reload journald

- name: Ensure journald use max 500M logs
  lineinfile:
    path: "/etc/systemd/journald.conf"
    regexp: "SystemMaxUse="
    line: "SystemMaxUse=500M"
    state: present
  when: (ssd is defined) and (ssd == 1)
  notify: reload journald
Dicussions about log2ram being out of space yielded the following idea from a friend ``` - name: Install log2ram official key apt_key: id: 98B824A5FA7D3A10FDB225B7CA548A0A0312D8E6 url: https://azlux.fr/repo.gpg.key state: present when: (ssd is defined) and (ssd == 1) - name: Install log2ram repository apt_repository: repo: deb http://packages.azlux.fr/debian/ buster main state: present filename: log2ram-official when: (ssd is defined) and (ssd == 1) - name: Max size of log2ram at 512M lineinfile: path: "/etc/log2ram.conf" regexp: "SIZE=" line: "SIZE=512M" state: present when: (ssd is defined) and (ssd == 1) - name: install log2ram package apt: name: "log2ram" state: present when: (ssd is defined) and (ssd == 1) - name: Ensure journald use volatile lineinfile: path: "/etc/systemd/journald.conf" regexp: "Storage=" line: "Storage=volatile" state: present when: (ssd is defined) and (ssd == 1) notify: reload journald - name: Ensure journald use max 500M logs lineinfile: path: "/etc/systemd/journald.conf" regexp: "SystemMaxUse=" line: "SystemMaxUse=500M" state: present when: (ssd is defined) and (ssd == 1) notify: reload journald ```
kemonine added the
bug
label 2020-08-13 19:57:14 +00:00
kemonine added this to the Initial Stable Deployment milestone 2020-08-13 19:57:17 +00:00
kemonine self-assigned this 2020-08-13 19:57:19 +00:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PiFrame/piframe#26
No description provided.