Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
59065142
Verified
Commit
59065142
authored
11 months ago
by
Jérôme Charaoui
Browse files
Options
Downloads
Patches
Plain Diff
replace deprecated lsbdistcodename fact
parent
390a0188
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
howto/puppet.md
+1
-1
1 addition, 1 deletion
howto/puppet.md
howto/upgrades.md
+2
-2
2 additions, 2 deletions
howto/upgrades.md
with
3 additions
and
3 deletions
howto/puppet.md
+
1
−
1
View file @
59065142
...
...
@@ -780,7 +780,7 @@ As a bonus, this query will show the number of hosts running each release:
This will show all hosts running Debian bookworm:
curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=
nodes { facts { name = "lsb
distcodename
" and value
= "bookworm"
}
}' | jq -r .[].certname
curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=
inventory[certname] { facts.os.
dist
ro.
codename = "bookworm" }' | jq -r
"
.[].certname
"
*
Using
[
howto/cumin
](
howto/cumin
)
...
...
This diff is collapsed.
Click to expand it.
howto/upgrades.md
+
2
−
2
View file @
59065142
...
...
@@ -89,7 +89,7 @@ block certain upgrades. If you want to bypass that, use regular `apt`:
Another example, this will upgrade all servers running
`bookworm`
:
cumin -b 10 'F:
lsb
distcodename=bookworm' 'apt update ; unattended-upgrade ; TERM=doit dsa-update-apt-status'
cumin -b 10 'F:
os.
dist
ro.
codename=bookworm' 'apt update ; unattended-upgrade ; TERM=doit dsa-update-apt-status'
# Special cases and manual restarts
...
...
@@ -301,7 +301,7 @@ defined to `justdoit` or `rotation`:
Another example, this will reboot all hosts running Debian
`bookworm`
:
./reboot -H $(ssh puppetdb-01.torproject.org "curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=
nodes { facts { name = \"lsb
distcodename
\" and value
= \"bookworm\"
}
}'" | jq -r .[].certname | sort -R)
./reboot -H $(ssh puppetdb-01.torproject.org "curl -s -G http://localhost:8080/pdb/query/v4 --data-urlencode 'query=
inventory[certname] { facts.os.
dist
ro.
codename = \"bookworm\" }'" | jq -r
'
.[].certname
'
| sort -R)
## Rebooting Ganeti nodes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment