Преглед на файлове

Work around annoying Docker warning about undefined $HOME

> WARNING: Error loading config file: .dockercfg: $HOME is not defined

.. which appeared in Docker 20.10.
pull/801/head
Slavi Pantaleev преди 5 години
родител
ревизия
1692a28fe4
променени са 38 файла, в които са добавени 42 реда и са изтрити 0 реда
  1. +5
    -0
      roles/matrix-base/defaults/main.yml
  2. +1
    -0
      roles/matrix-bot-matrix-reminder-bot/templates/systemd/matrix-bot-matrix-reminder-bot.service.j2
  3. +1
    -0
      roles/matrix-bridge-appservice-discord/templates/systemd/matrix-appservice-discord.service.j2
  4. +1
    -0
      roles/matrix-bridge-appservice-irc/templates/systemd/matrix-appservice-irc.service.j2
  5. +1
    -0
      roles/matrix-bridge-appservice-slack/templates/systemd/matrix-appservice-slack.service.j2
  6. +1
    -0
      roles/matrix-bridge-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2
  7. +1
    -0
      roles/matrix-bridge-mautrix-facebook/templates/systemd/matrix-mautrix-facebook.service.j2
  8. +1
    -0
      roles/matrix-bridge-mautrix-hangouts/templates/systemd/matrix-mautrix-hangouts.service.j2
  9. +1
    -0
      roles/matrix-bridge-mautrix-signal/templates/systemd/matrix-mautrix-signal-daemon.service.j2
  10. +1
    -0
      roles/matrix-bridge-mautrix-signal/templates/systemd/matrix-mautrix-signal.service.j2
  11. +1
    -0
      roles/matrix-bridge-mautrix-telegram/templates/systemd/matrix-mautrix-telegram.service.j2
  12. +1
    -0
      roles/matrix-bridge-mautrix-whatsapp/templates/systemd/matrix-mautrix-whatsapp.service.j2
  13. +1
    -0
      roles/matrix-bridge-mx-puppet-discord/templates/systemd/matrix-mx-puppet-discord.service.j2
  14. +1
    -0
      roles/matrix-bridge-mx-puppet-instagram/templates/systemd/matrix-mx-puppet-instagram.service.j2
  15. +1
    -0
      roles/matrix-bridge-mx-puppet-skype/templates/systemd/matrix-mx-puppet-skype.service.j2
  16. +1
    -0
      roles/matrix-bridge-mx-puppet-slack/templates/systemd/matrix-mx-puppet-slack.service.j2
  17. +1
    -0
      roles/matrix-bridge-mx-puppet-steam/templates/systemd/matrix-mx-puppet-steam.service.j2
  18. +1
    -0
      roles/matrix-bridge-mx-puppet-twitter/templates/systemd/matrix-mx-puppet-twitter.service.j2
  19. +1
    -0
      roles/matrix-bridge-sms/templates/systemd/matrix-sms-bridge.service.j2
  20. +1
    -0
      roles/matrix-client-element/templates/systemd/matrix-client-element.service.j2
  21. +1
    -0
      roles/matrix-corporal/templates/systemd/matrix-corporal.service.j2
  22. +1
    -0
      roles/matrix-coturn/templates/systemd/matrix-coturn.service.j2
  23. +1
    -0
      roles/matrix-dimension/templates/systemd/matrix-dimension.service.j2
  24. +1
    -0
      roles/matrix-dynamic-dns/templates/systemd/matrix-dynamic-dns.service.j2
  25. +1
    -0
      roles/matrix-email2matrix/templates/systemd/matrix-email2matrix.service.j2
  26. +1
    -0
      roles/matrix-jitsi/templates/jicofo/matrix-jitsi-jicofo.service.j2
  27. +1
    -0
      roles/matrix-jitsi/templates/jvb/matrix-jitsi-jvb.service.j2
  28. +1
    -0
      roles/matrix-jitsi/templates/prosody/matrix-jitsi-prosody.service.j2
  29. +1
    -0
      roles/matrix-jitsi/templates/web/matrix-jitsi-web.service.j2
  30. +1
    -0
      roles/matrix-ma1sd/templates/systemd/matrix-ma1sd.service.j2
  31. +1
    -0
      roles/matrix-mailer/templates/systemd/matrix-mailer.service.j2
  32. +1
    -0
      roles/matrix-nginx-proxy/templates/systemd/matrix-nginx-proxy.service.j2
  33. +1
    -0
      roles/matrix-nginx-proxy/templates/systemd/matrix-ssl-lets-encrypt-certificates-renew.service.j2
  34. +1
    -0
      roles/matrix-postgres/templates/systemd/matrix-postgres.service.j2
  35. +1
    -0
      roles/matrix-registration/templates/systemd/matrix-registration.service.j2
  36. +1
    -0
      roles/matrix-synapse-admin/templates/systemd/matrix-synapse-admin.service.j2
  37. +1
    -0
      roles/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2
  38. +1
    -0
      roles/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2

+ 5
- 0
roles/matrix-base/defaults/main.yml Целия файл

@@ -49,6 +49,11 @@ matrix_base_data_path_mode: "750"
matrix_static_files_base_path: "{{ matrix_base_data_path }}/static-files"
matrix_systemd_path: "/etc/systemd/system"

# Specifies the path to use for the `HOME` environment variable for systemd unit files.
# Docker 20.10 complains with `WARNING: Error loading config file: .dockercfg: $HOME is not defined`
# if `$HOME` is not defined, so we define something to make it happy.
matrix_systemd_unit_home_path: /root

# This is now unused. We keep it so that cleanup tasks can use it.
# To be removed in the future.
matrix_cron_path: "/etc/cron.d"


+ 1
- 0
roles/matrix-bot-matrix-reminder-bot/templates/systemd/matrix-bot-matrix-reminder-bot.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-bot-matrix-reminder-bot
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-bot-matrix-reminder-bot



+ 1
- 0
roles/matrix-bridge-appservice-discord/templates/systemd/matrix-appservice-discord.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-appservice-discord
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-appservice-discord



+ 1
- 0
roles/matrix-bridge-appservice-irc/templates/systemd/matrix-appservice-irc.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-appservice-irc
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-appservice-irc



+ 1
- 0
roles/matrix-bridge-appservice-slack/templates/systemd/matrix-appservice-slack.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-appservice-slack
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-appservice-slack



+ 1
- 0
roles/matrix-bridge-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-appservice-webhooks
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-appservice-webhooks



+ 1
- 0
roles/matrix-bridge-mautrix-facebook/templates/systemd/matrix-mautrix-facebook.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mautrix-facebook
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mautrix-facebook
ExecStartPre={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-facebook-db \


+ 1
- 0
roles/matrix-bridge-mautrix-hangouts/templates/systemd/matrix-mautrix-hangouts.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mautrix-hangouts matrix-mautrix-hangouts-db
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mautrix-hangouts matrix-mautrix-hangouts-db
ExecStartPre={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-hangouts-db \


+ 1
- 0
roles/matrix-bridge-mautrix-signal/templates/systemd/matrix-mautrix-signal-daemon.service.j2 Целия файл

@@ -13,6 +13,7 @@ Wants={{ service }}

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"

ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mautrix-signal-daemon
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mautrix-signal-daemon


+ 1
- 0
roles/matrix-bridge-mautrix-signal/templates/systemd/matrix-mautrix-signal.service.j2 Целия файл

@@ -13,6 +13,7 @@ Wants={{ service }}

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mautrix-signal
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mautrix-signal



+ 1
- 0
roles/matrix-bridge-mautrix-telegram/templates/systemd/matrix-mautrix-telegram.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mautrix-telegram
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mautrix-telegram
ExecStartPre={{ matrix_host_command_docker }} run --rm --name matrix-mautrix-telegram-db \


+ 1
- 0
roles/matrix-bridge-mautrix-whatsapp/templates/systemd/matrix-mautrix-whatsapp.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mautrix-whatsapp
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mautrix-whatsapp



+ 1
- 0
roles/matrix-bridge-mx-puppet-discord/templates/systemd/matrix-mx-puppet-discord.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mx-puppet-discord
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mx-puppet-discord



+ 1
- 0
roles/matrix-bridge-mx-puppet-instagram/templates/systemd/matrix-mx-puppet-instagram.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mx-puppet-instagram
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mx-puppet-instagram



+ 1
- 0
roles/matrix-bridge-mx-puppet-skype/templates/systemd/matrix-mx-puppet-skype.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mx-puppet-skype
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mx-puppet-skype



+ 1
- 0
roles/matrix-bridge-mx-puppet-slack/templates/systemd/matrix-mx-puppet-slack.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mx-puppet-slack
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mx-puppet-slack



+ 1
- 0
roles/matrix-bridge-mx-puppet-steam/templates/systemd/matrix-mx-puppet-steam.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mx-puppet-steam
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mx-puppet-steam



+ 1
- 0
roles/matrix-bridge-mx-puppet-twitter/templates/systemd/matrix-mx-puppet-twitter.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mx-puppet-twitter
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mx-puppet-twitter



+ 1
- 0
roles/matrix-bridge-sms/templates/systemd/matrix-sms-bridge.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-/usr/bin/docker kill matrix-sms-bridge
ExecStartPre=-/usr/bin/docker rm matrix-sms-bridge



+ 1
- 0
roles/matrix-client-element/templates/systemd/matrix-client-element.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-client-element
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-client-element



+ 1
- 0
roles/matrix-corporal/templates/systemd/matrix-corporal.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-corporal
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-corporal



+ 1
- 0
roles/matrix-coturn/templates/systemd/matrix-coturn.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-coturn
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-coturn



+ 1
- 0
roles/matrix-dimension/templates/systemd/matrix-dimension.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-dimension
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-dimension



+ 1
- 0
roles/matrix-dynamic-dns/templates/systemd/matrix-dynamic-dns.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-dynamic-dns
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-dynamic-dns
ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-dynamic-dns \


+ 1
- 0
roles/matrix-email2matrix/templates/systemd/matrix-email2matrix.service.j2 Целия файл

@@ -7,6 +7,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-email2matrix
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-email2matrix



+ 1
- 0
roles/matrix-jitsi/templates/jicofo/matrix-jitsi-jicofo.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-jitsi-jicofo
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-jitsi-jicofo



+ 1
- 0
roles/matrix-jitsi/templates/jvb/matrix-jitsi-jvb.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-jitsi-jvb
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-jitsi-jvb



+ 1
- 0
roles/matrix-jitsi/templates/prosody/matrix-jitsi-prosody.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-jitsi-prosody
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-jitsi-prosody



+ 1
- 0
roles/matrix-jitsi/templates/web/matrix-jitsi-web.service.j2 Целия файл

@@ -9,6 +9,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-jitsi-web
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-jitsi-web



+ 1
- 0
roles/matrix-ma1sd/templates/systemd/matrix-ma1sd.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-ma1sd
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-ma1sd



+ 1
- 0
roles/matrix-mailer/templates/systemd/matrix-mailer.service.j2 Целия файл

@@ -7,6 +7,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-mailer
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-mailer



+ 1
- 0
roles/matrix-nginx-proxy/templates/systemd/matrix-nginx-proxy.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-nginx-proxy
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-nginx-proxy



+ 1
- 0
roles/matrix-nginx-proxy/templates/systemd/matrix-ssl-lets-encrypt-certificates-renew.service.j2 Целия файл

@@ -3,4 +3,5 @@ Description=Renews Let's Encrypt SSL certificates

[Service]
Type=oneshot
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStart={{ matrix_local_bin_path }}/matrix-ssl-lets-encrypt-certificates-renew

+ 1
- 0
roles/matrix-postgres/templates/systemd/matrix-postgres.service.j2 Целия файл

@@ -7,6 +7,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} stop matrix-postgres
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-postgres



+ 1
- 0
roles/matrix-registration/templates/systemd/matrix-registration.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-registration
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-registration



+ 1
- 0
roles/matrix-synapse-admin/templates/systemd/matrix-synapse-admin.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-synapse-admin
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-synapse-admin



+ 1
- 0
roles/matrix-synapse/templates/goofys/systemd/matrix-goofys.service.j2 Целия файл

@@ -7,6 +7,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill %n
ExecStartPre=-{{ matrix_host_command_docker }} rm %n



+ 1
- 0
roles/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 Целия файл

@@ -12,6 +12,7 @@ DefaultDependencies=no

[Service]
Type=simple
Environment="HOME={{ matrix_systemd_unit_home_path }}"
ExecStartPre=-{{ matrix_host_command_docker }} kill matrix-synapse
ExecStartPre=-{{ matrix_host_command_docker }} rm matrix-synapse
{% if matrix_s3_media_store_enabled %}


Зареждане…
Отказ
Запис