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 8e64af3f87378dd210f9a40cead37442f1377bbf..cfdac0df92721b14b2a147caa4e4305d162fe3f5 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 dd3b2d4db092267226b023606efe8e4518be9754..c96c19a1956bbe1d1b35627da33eadd52e2fb426 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)