Page MenuHomeSoftware Heritage

Install scheduler journal client to saatchi
ClosedPublic

Authored by ardumont on Jan 26 2021, 12:24 PM.

Details

Summary

Related to T2993

Test Plan

octo-catalog diff

bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging saatchi.internal.softwareheritage.org
Found host saatchi.internal.softwareheritage.org
WARN     -> Environment "wip-pg-hba-rules-in-yaml" contained non-word characters, correcting name to wip_pg_hba_rules_in_yaml
Cloning into '/tmp/swh-ocd.ymDwzid9/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.ymDwzid9/environments/staging/data/private'...
done.
*** Running octocatalog-diff on host saatchi.internal.softwareheritage.org
I, [2021-01-26T12:23:39.636033 #7472]  INFO -- : Catalogs compiled for saatchi.internal.softwareheritage.org
I, [2021-01-26T12:23:41.199073 #7472]  INFO -- : Diffs computed for saatchi.internal.softwareheritage.org
diff origin/production/saatchi.internal.softwareheritage.org current/saatchi.internal.softwareheritage.org
*******************************************
+ File[/etc/softwareheritage/journal] =>
   parameters =>
      "ensure": "directory"
      "group": "swhworker"
      "mode": "0644"
      "owner": "swhworker"
*******************************************
+ File[/etc/softwareheritage/scheduler/journal-client.yml] =>
   parameters =>
      "ensure": "present"
      "group": "swhscheduler"
      "mode": "0644"
      "notify": "Service[swh-scheduler-journal-client]"
      "owner": "root"
      "content": >>>
---
scheduler:
  cls: local
  db: host=db.internal.softwareheritage.org port=5432 dbname=softwareheritage-scheduler
    user=swhscheduler password=swh::deploy::scheduler::db::password
journal:
  brokers:
  - kafka1.internal.softwareheritage.org
  - kafka2.internal.softwareheritage.org
  - kafka3.internal.softwareheritage.org
  - kafka4.internal.softwareheritage.org
  group_id: swh.scheduler.journal_client
<<<
*******************************************
+ File[/etc/systemd/system/swh-scheduler-journal-client.service] =>
   parameters =>
      "ensure": "file"
      "group": "root"
      "mode": "0444"
      "notify": "Class[Systemd::Systemctl::Daemon_reload]"
      "owner": "root"
      "show_diff": true
      "content": >>>
# Scheduler Journal Client unit file
# Managed by puppet class profile::swh::deploy::scheduler_journal_client
# Changes will be overwritten

[Unit]
Description=Software Heritage Scheduler Journal Client
After=network.target

[Service]
User=swhscheduler
Group=swhscheduler
Type=simple
ExecStart=/usr/bin/swh scheduler --config-file /etc/softwareheritage/scheduler/journal-client.yml journal-client
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
<<<
*******************************************
+ Package[python3-swh.journal] =>
   parameters =>
      "ensure": "installed"
*******************************************
+ Service[swh-scheduler-journal-client] =>
   parameters =>
      "enable": true
      "ensure": "running"
*******************************************
+ Systemd::Unit_file[swh-scheduler-journal-client.service] =>
   parameters =>
      "ensure": "present"
      "group": "root"
      "mode": "0444"
      "notify": ["Service[swh-scheduler-journal-client]"]
      "owner": "root"
      "path": "/etc/systemd/system"
      "show_diff": true
      "content": >>>
# Scheduler Journal Client unit file
# Managed by puppet class profile::swh::deploy::scheduler_journal_client
# Changes will be overwritten

[Unit]
Description=Software Heritage Scheduler Journal Client
After=network.target

[Service]
User=swhscheduler
Group=swhscheduler
Type=simple
ExecStart=/usr/bin/swh scheduler --config-file /etc/softwareheritage/scheduler/journal-client.yml journal-client
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
<<<
*******************************************

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.
This revision is now accepted and ready to land.Jan 26 2021, 12:45 PM