journalwatch: only filter broken conterinerization messages on strato machines
authorRalf Jung <post@ralfj.de>
Sat, 16 Jun 2018 18:06:44 +0000 (20:06 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 16 Jun 2018 18:06:44 +0000 (20:06 +0200)
roles/journalwatch/tasks/main.yml
roles/journalwatch/templates/config [moved from roles/journalwatch/files/config with 100% similarity]
roles/journalwatch/templates/patterns [moved from roles/journalwatch/files/patterns with 91% similarity]

index 8e64af3..cfdac0d 100644 (file)
@@ -8,8 +8,8 @@
 - name: create journalwatch config dir
   file: path=/root/.config/journalwatch state=directory
 - name: install journalwatch config files
-  copy:
-    src: files/{{item}}
+  template:
+    src: templates/{{item}}
     dest: /root/.config/journalwatch/{{item}}
   loop:
   - config
similarity index 91%
rename from roles/journalwatch/files/patterns
rename to roles/journalwatch/templates/patterns
index dd3b2d4..c96c19a 100644 (file)
@@ -44,9 +44,16 @@ SYSLOG_IDENTIFIER = systemd
 Received SIGRTMIN\+24 from PID .*
 (Reached target|Stopped target) .*
 Startup finished in \d+ms\.
+{% if journalwatch is defined and journalwatch.strato_broken | default(False) %}
+Failed to create /user.slice/user-\d+.slice/user@\d+.service/init.scope control group: Permission denied
+Failed to allocate manager object: Permission denied
+{% endif %}
 
 _SYSTEMD_UNIT = init.scope
 user@\d+\.service: Killing process \d+ \(kill\) with signal SIGKILL\.
+{% if journalwatch is defined and journalwatch.strato_broken | default(False) %}
+Failed to set devices.allow on /system.slice/systemd-resolved.service: Operation not permitted
+{% endif %}
 
 SYSLOG_IDENTIFIER = sudo
 \s*[_\w.-]+ : TTY=(unknown|console|(pts/|ttyp?|vc/)\d+) ; PWD=[^;]+ ; USER=[._\w-]+ ; COMMAND=.*
@@ -56,8 +63,6 @@ warning: hostname [^\s]+ does not resolve to address [\da-fA-F.:]+(: Name or ser
 warning: [._\w-]+\[[\da-fA-F.:]+\]: SASL LOGIN authentication failed: .+
 warning: non-SMTP command from \w+\[[\da-fA-F.:]+\]: .*
 warning: TLS library problem: error:[0-9A-F]+:SSL routines:\w+:(no shared cipher|decryption failed or bad record mac|unknown protocol|version too low):[\w./]+:\d+:
-Failed to create /user.slice/user-\d+.slice/user@\d+.service/init.scope control group: Permission denied
-Failed to allocate manager object: Permission denied
 
 _SYSTEMD_UNIT = dovecot.service
 auth: Warning: auth client \d+ disconnected with \d+ pending requests: (EOF|Connection reset by peer)