Changes
Page history
s/tsa-misc/fabric-tasks/ everywhere (
#41219
)
authored
Apr 11, 2024
by
anarcat
Hide whitespace changes
Inline
Side-by-side
howto/fabric.md
View page @
29658d38
...
@@ -23,8 +23,8 @@ which we use [howto/puppet](howto/puppet).
...
@@ -23,8 +23,8 @@ which we use [howto/puppet](howto/puppet).
All of the instructions below assume you have a copy of the TPA fabric
All of the instructions below assume you have a copy of the TPA fabric
library, fetch it with:
library, fetch it with:
git clone
git@git-rw
.torproject.org
:admin/tsa-misc
.git &&
git clone
https://gitlab
.torproject.org
/tpo/tpa/fabric-tasks
.git &&
cd
tsa-misc
cd
fabric-tasks
## Running a command on hosts
## Running a command on hosts
...
@@ -50,7 +50,7 @@ This is equivalent to:
...
@@ -50,7 +50,7 @@ This is equivalent to:
## Listing tasks and self-documentation
## Listing tasks and self-documentation
The
`
tsa-misc
`
repository has a good library of tasks that can be ran
The
`
fabric-tasks
`
repository has a good library of tasks that can be ran
from the commandline. To show the list, use:
from the commandline. To show the list, use:
fab -l
fab -l
...
@@ -141,11 +141,11 @@ To use tpa's fabric code, you will most likely also need at least python ldap su
...
@@ -141,11 +141,11 @@ To use tpa's fabric code, you will most likely also need at least python ldap su
apt install python3-ldap
apt install python3-ldap
Fabric code grew out of the installer and reboot scripts in the
Fabric code grew out of the installer and reboot scripts in the
`
tsa-misc
`
repository. To get access to the code, simply clone the
`
fabric-tasks
`
repository. To get access to the code, simply clone the
repository and run from the top level directory:
repository and run from the top level directory:
git clone
git@git-rw
.torproject.org
:admin/tsa-misc
.git &&
git clone
https://gitlab
.torproject.org
/tpo/tpa/fabric-tasks
.git &&
cd
tsa-misc
&&
cd
fabric-tasks
&&
fab -l
fab -l
This code could also be moved to its own repository altogether.
This code could also be moved to its own repository altogether.
...
@@ -174,10 +174,10 @@ N/A
...
@@ -174,10 +174,10 @@ N/A
## Design
## Design
TPA's fabric library lives in the
`
tsa-misc
`
repository and consists
TPA's fabric library lives in the
`
fabric-tasks
`
repository and consists
of multiple Python modules, at the time of writing:
of multiple Python modules, at the time of writing:
anarcat@curie:
tsa-misc
(master)$ wc -l fabric_tpa/*.py
anarcat@curie:
fabric-tasks
(master)$ wc -l fabric_tpa/*.py
463 fabric_tpa/ganeti.py
463 fabric_tpa/ganeti.py
297 fabric_tpa/host.py
297 fabric_tpa/host.py
46 fabric_tpa/__init__.py
46 fabric_tpa/__init__.py
...
...
...
...