Page MenuHomeSoftware Heritage

Activate sentry for search journal clients
ClosedPublic

Authored by ardumont on Oct 15 2021, 12:12 PM.

Details

Summary

Related to T3664

Test Plan

This adapts the main service template to actually reference the sentry setup.
As it's common for all journal clients, no point in making that setup more complex (as the first implem of this diff did):

$ $SWH_PUPPET_ENVIRONMENT_HOME/bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging search0
...
*******************************************
  File[/etc/systemd/system/swh-search-journal-client@.service] =>
   parameters =>
     content =>
      @@ -8,4 +8,7 @@
      _
       [Service]
      +Environment=SWH_SENTRY_DSN=https://swh::deploy::search::sentry_token@sentry.softwareheritage.org/15
      +Environment=SWH_SENTRY_ENVIRONMENT=staging
      +Environment=SWH_MAIN_PACKAGE=swh.search
       User=swhstorage
       Group=swhstorage
*******************************************
  Systemd::Unit_file[swh-search-journal-client@.service] =>
   parameters =>
     content =>
      @@ -8,4 +8,7 @@
      _
       [Service]
      +Environment=SWH_SENTRY_DSN=https://swh::deploy::search::sentry_token@sentry.softwareheritage.org/15
      +Environment=SWH_SENTRY_ENVIRONMENT=staging
      +Environment=SWH_MAIN_PACKAGE=swh.search
       User=swhstorage
       Group=swhstorage
*******************************************
*** End octocatalog-diff on search0.internal.staging.swh.network

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont created this revision.

I'll double check to simplify this a bit.

ardumont edited the test plan for this revision. (Show Details)
ardumont edited the test plan for this revision. (Show Details)

Simplify implementation to only modify the main service template

This revision was not accepted when it landed; it landed in state Needs Review.Oct 15 2021, 3:31 PM
This revision was automatically updated to reflect the committed changes.