From 02165f3256b51b20c0788d2ce3e536cabd006acf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Charaoui?= <jerome@riseup.net>
Date: Wed, 8 Nov 2023 09:38:33 -0500
Subject: [PATCH] use placeholder for static source hostname

---
 howto/static-component.md | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/howto/static-component.md b/howto/static-component.md
index 60b589fe..b0fd0ffc 100644
--- a/howto/static-component.md
+++ b/howto/static-component.md
@@ -135,17 +135,16 @@ This procedure is common to all cases:
 
           Use vanity-host onionperf.torproject.org ^/(.*)$ https://gitlab.torproject.org/tpo/metrics/team/-/wikis/onionperf
 
- 7. deploy the changes globally:
+ 7. deploy the changes globally, replacing {staticsource} with the components
+    source server hostname, often `staticiforme` or `static-gitlab-shim`
 
-        ssh staticiforme puppet agent -t
-        ssh static-gitlab-shim puppet agent -t
+        ssh {staticsource} puppet agent -t
         ssh static-master-fsn puppet agent -t
         cumin 'C:roles::static_mirror_web or C:roles::static_mirror_web_vanity' 'puppet agent -t'
 
- 8. remove the home directory specified on the server (often
-    `staticiforme`, but can be elsewhere) and mirrors, for example:
+ 8. remove the home directory specified on the server:
  
-        ssh staticiforme "mv /srv/onionperf.torproject.org/htdocs/ /srv/onionperf.torproject.org/htdocs-OLD ; echo rm -rf /srv/onionperf.torproject.org/htdocs-OLD | at now + 7 days"
+        ssh {staticsource} "mv /srv/onionperf.torproject.org/htdocs/ /srv/onionperf.torproject.org/htdocs-OLD ; echo rm -rf /srv/onionperf.torproject.org/htdocs-OLD | at now + 7 days"
         ssh static-master-fsn "rm -rf /srv/static.torproject.org/master/onionperf.torproject.org*"
         cumin -o txt 'C:roles::static_mirror_web' 'mv /srv/static.torproject.org/mirrors/onionperf.torproject.org /srv/static.torproject.org/mirrors/onionperf.torproject.org-OLD'
         cumin -o txt 'C:roles::static_mirror_web' 'echo rm -rf /srv/static.torproject.org/mirrors/onionperf.torproject.org-OLD | at now + 7 days'
-- 
GitLab