octo-diff:
```
$ $SWH_PUPPET_ENVIRONMENT_HOME/bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging pergamon
Found host pergamon.softwareheritage.org
WARN -> Environment "staging-add-prometheus-metrics" contained non-word characters, correcting name to staging_add_prometheus_metrics
WARN -> Environment "staging-bullseye-rabbitmq-plugin" contained non-word characters, correcting name to staging_bullseye_rabbitmq_plugin
WARN -> Environment "staging-check-journal-client" contained non-word characters, correcting name to staging_check_journal_client
WARN -> Environment "staging-check-journal-client-2nd-implementation" contained non-word characters, correcting name to staging_check_journal_client_2nd_implementation
WARN -> Environment "staging-check-journal-client-first-implem" contained non-word characters, correcting name to staging_check_journal_client_first_implem
WARN -> Environment "staging-pin" contained non-word characters, correcting name to staging_pin
Cloning into '/tmp/swh-ocd.rfvhKq9B/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.rfvhKq9B/environments/staging/data/private'...
done.
*** Running octocatalog-diff on host pergamon.softwareheritage.org
I, [2022-01-25T16:01:14.141841 #91685] INFO -- : Catalogs compiled for pergamon.softwareheritage.org
W, [2022-01-25T16:01:15.692803 #91685] WARN -- : Resource File[/tmp/ocd-ipc-20220125-91685-6cqz5s/ocd-builddir-20220125-91687-1hr7d4k/routes.yaml] appears to depend on catalog compilation directory. Suppressed from results.
W, [2022-01-25T16:01:15.692937 #91685] WARN -- : Resource File[/tmp/ocd-ipc-20220125-91685-6cqz5s/ocd-builddir-20220125-91686-mfzgo5/routes.yaml] appears to depend on catalog compilation directory. Suppressed from results.
W, [2022-01-25T16:01:15.693063 #91685] WARN -- : Resource key Ini_setting[puppetdbserver_urls] parameters => path may depend on catalog compilation directory, but there may be differences. This is included in results for now, but please verify.
W, [2022-01-25T16:01:15.693086 #91685] WARN -- : Resource key Ini_setting[puppetdbserver_urls] parameters => path appears to depend on catalog compilation directory. Suppressed from results.
W, [2022-01-25T16:01:15.693142 #91685] WARN -- : Resource key Ini_setting[soft_write_failure] parameters => path may depend on catalog compilation directory, but there may be differences. This is included in results for now, but please verify.
W, [2022-01-25T16:01:15.693167 #91685] WARN -- : Resource key Ini_setting[soft_write_failure] parameters => path appears to depend on catalog compilation directory. Suppressed from results.
I, [2022-01-25T16:01:15.693370 #91685] INFO -- : Diffs computed for pergamon.softwareheritage.org
diff origin/production/pergamon.softwareheritage.org current/pergamon.softwareheritage.org
*******************************************
+ Concat_fragment[profile::cron::weekly-planning-bot] =>
parameters =>
"order": "10"
"tag": "profile::cron::default"
"target": "profile::cron::default"
"content": >>>
# Cron snippet weekly-planning-bot
30 8 * * mon nobody /usr/local/bin/weekly-planning-bot
<<<
*******************************************
File[/etc/bind/keys/local-update] =>
parameters =>
content =>
@@ -2,4 +2,4 @@
key local-update {
algorithm hmac-sha256;
- secret "bwjW2k91TAkoZMUT9YExu3HD4KKetYYL66vnfHWktAtWIxIs8o4DeEz7xH5tT3vZZN+shmP9fzCfwTSlvnpbIw==";
+ secret "/mkbmWwqztUZt8WtDI950FCqjZ/0ojarwxxeTmLAD9xgfGNW+3q6aXstdoXFEAXr0v6pqWLyr2SvzTFFxWhTSw==";
};
*******************************************
File[/etc/bind/rndc.key] =>
parameters =>
content =>
@@ -2,4 +2,4 @@
key rndc-key {
algorithm hmac-md5;
- secret "ZhfozTlvtLeQYGyDljaMlfkYteqAvVl0hRcQZd8mJLT4YOdke4/z0BRO6NjfLDUfXJn6l60UMxlb7ECb3n8f/g==";
+ secret "GERLxmY6Nl0r7YeAYSCMzqBnL7aNNmx/5gh+XFH2DlgrmRdpDi0m5mhlfvaeUb6t1OcsFpl5qfulNM4zXyLbtQ==";
};
*******************************************
+ File[/usr/local/bin/weekly-planning-bot] =>
parameters =>
"ensure": "present"
"group": "root"
"mode": "0755"
"owner": "root"
"content": >>>
#!/usr/bin/env bash
DEST=swh-team@inria.fr
AUTHOR=swh-team@inria.fr
TEMPLATE_ID="6YKT5osoST-amJQ0MusH2Q"
URL="https://hedgedoc.softwareheritage.org"
DATE=`date +%G-W%V`
# Retrieve the template's content
TEMPLATE=`http --session weeklybot -pb "${URL}/${TEMPLATE_ID}/download"`
TEMPLATE=$(echo "$TEMPLATE" | sed -e "s/\$DATE/$DATE/g")
# Create a new page initialized with the template content
RESP=`http --session weeklybot -ph POST "${URL}/new" content-type:text/markdown <<< "$TEMPLATE"`
LOCATION=`echo "$RESP" | grep "Location:" | cut -c 11-`
if [ -n "$LOCATION" ] ; then
# /usr/lib/sendmail -t <<EOF
cat <<EOF
From: Weekly planning bot <$AUTHOR>
To: $DEST
Subject: [Weekly Planning] Week $DATE
Beep boop, I'm a bot.
Here is the pad for the next weekly planning meeting:
$LOCATION
Please take a few minutes to pre-fill your part.
Remote attendees:
https://meet.jit.si/EquivalentCoincidencesVentureOnlySwhTeam
-- The Software Heritage weekly bot
EOF
fi
<<<
*******************************************
+ Package[httpie] =>
parameters =>
"ensure": "present"
*******************************************
+ Profile::Cron::D[weekly-planning-bot] =>
parameters =>
"command": "/usr/local/bin/weekly-planning-bot"
"hour": 8
"minute": 30
"target": "default"
"unique_tag": "weekly-planning-bot"
"user": "nobody"
"weekday": "mon"
*******************************************
*** End octocatalog-diff on pergamon.softwareheritage.org
```