vagrant tryout.
On pergamon node, the gateway service is installed and running:
```
root@pergamon:~# puppet agent --test
...
Notice: Applied catalog in 9.86 seconds
root@pergamon:~# systemctl status thanos-gateway
● thanos-gateway.service - Thanos gateway
Loaded: loaded (/etc/systemd/system/thanos-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-07-08 09:00:26 UTC; 5s ago
Main PID: 85598 (thanos)
Tasks: 7 (limit: 3707)
Memory: 17.1M
CGroup: /system.slice/thanos-gateway.service
└─85598 /opt/thanos/current/thanos store --data-dir=/var/lib/prometheus/metrics2 --objstore.config-file=/e
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.259354681Z caller=store.go:446 msg="starting
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.259556378Z caller=intrumentation.go:75 msg="c
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.259587995Z caller=http.go:73 service=http/ser
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.259694901Z caller=tls_config.go:195 service=h
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.259744252Z caller=store.go:364 msg="initializ
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.260939868Z caller=fetcher.go:470 component=bl
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.261146288Z caller=store.go:370 msg="bucket st
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.261259279Z caller=intrumentation.go:56 msg="c
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.261306061Z caller=grpc.go:131 service=gRPC/se
Jul 08 09:00:26 pergamon thanos[85598]: level=info ts=2022-07-08T09:00:26.2618187Z caller=fetcher.go:470 component=bloc
root@pergamon:~# systemctl cat thanos-gateway | grep -C3 thanos
# /etc/systemd/system/thanos-gateway.service
# File managed by puppet (class profile::thanos::gateway)
# Manual changes will be overwritten
[Unit]
--
[Service]
Restart=on-failure
User=prometheus
ExecStart=/opt/thanos/current/thanos store --data-dir=/var/lib/prometheus/metrics2 \
--objstore.config-file=/etc/thanos/objstore.yml \
--http-address=10.168.100.29:19192 \
--grpc-address=10.168.100.29:19093
ExecReload=/bin/kill -HUP $MAINPID
```
On thanos query node, the new gateway entry is collected and referenced:
```
root@thanos:~# puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for thanos.internal.admin.swh.network
Info: Applying configuration version '1657270718'
Notice: /Stage[main]/Profile::Thanos::Query/Concat[/etc/thanos/sd.yaml]/File[/etc/thanos/sd.yaml]/content:
--- /etc/thanos/sd.yaml 2022-07-07 16:25:50.740000000 +0000
+++ /tmp/puppet-file20220708-22259-1vf8pqc 2022-07-08 08:58:42.384000000 +0000
@@ -2,3 +2,4 @@
- targets:
- mmca.softwareheritage.org:443
- 10.168.100.29:19090
+ - 10.168.100.29:19093
Info: Computing checksum on file /etc/thanos/sd.yaml
Info: /Stage[main]/Profile::Thanos::Query/Concat[/etc/thanos/sd.yaml]/File[/etc/thanos/sd.yaml]: Filebucketed /etc/thanos/sd.yaml to puppet with sum 77d68d103f0856f313d20e91be03e9db
Notice: /Stage[main]/Profile::Thanos::Query/Concat[/etc/thanos/sd.yaml]/File[/etc/thanos/sd.yaml]/content: content changed '{md5}77d68d103f0856f313d20e91be03e9db' to '{md5}de855daece8f43fc0edbb966172bc6a4'
Info: Concat[/etc/thanos/sd.yaml]: Scheduling refresh of Service[thanos-query]
Notice: /Stage[main]/Profile::Thanos::Query/Service[thanos-query]: Triggered 'refresh' from 1 event
Notice: Applied catalog in 1.62 seconds
```