Page MenuHomeSoftware Heritage

pve-exporter: Install properly configuration and service
ClosedPublic

Authored by ardumont on Aug 12 2021, 9:26 AM.

Details

Summary

Related to T3462

Test Plan
$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging branly
...
*** Running octocatalog-diff on host branly.internal.softwareheritage.org
I, [2021-08-12T09:25:37.895070 #1045]  INFO -- : Catalogs compiled for branly.internal.softwareheritage.org
I, [2021-08-12T09:25:38.852846 #1045]  INFO -- : Diffs computed for branly.internal.softwareheritage.org
diff origin/production/branly.internal.softwareheritage.org current/branly.internal.softwareheritage.org
*******************************************
  File[/etc/pve-exporter] =>
   parameters =>
     ensure =>
      - present
      + directory
     notify =>
      + ["File[/etc/pve-exporter/pve-exporter.yml]"]
*******************************************
+ File[/etc/systemd/system/prometheus-pve-exporter.service] =>
   parameters =>
      "ensure": "file"
      "group": "root"
      "mode": "0444"
      "notify": "Class[Systemd::Systemctl::Daemon_reload]"
      "owner": "root"
      "show_diff": true
      "content": >>>
[Unit]
Description=Proxmox VE Prometheus Exporter
After=network.target
Wants=network.target
[Service]
Restart=on-failure
WorkingDirectory=/tmp
ExecStart=/usr/bin/pve_exporter /etc/pve-exporter/pve-exporter.yml
[Install]
WantedBy=multi-user.target
<<<
*******************************************
- File[prometheus-pve-exporter.service]
*******************************************
+ Service[prometheus-pve-exporter.service] =>
   parameters =>
      "enable": true
      "ensure": "running"
*******************************************
+ Systemd::Unit_file[prometheus-pve-exporter.service] =>
   parameters =>
      "ensure": "present"
      "group": "root"
      "mode": "0444"
      "notify": ["Service[prometheus-pve-exporter.service]"]
      "owner": "root"
      "path": "/etc/systemd/system"
      "show_diff": true
      "content": >>>
[Unit]
Description=Proxmox VE Prometheus Exporter
After=network.target
Wants=network.target
[Service]
Restart=on-failure
WorkingDirectory=/tmp
ExecStart=/usr/bin/pve_exporter /etc/pve-exporter/pve-exporter.yml
[Install]
WantedBy=multi-user.target
<<<
*******************************************
*** End octocatalog-diff on branly.internal.softwareheritage.org

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.
vsellier added a subscriber: vsellier.

Thanks. looks good, some minor formatting suggests inline

site-modules/profile/manifests/prometheus/pve_exporter.pp
18–19
35
This revision is now accepted and ready to land.Aug 12 2021, 9:51 AM