Update/Enhance documentation #9

Open
opened 2026-11-06 16:46:41 +00:00 by bpoldrack · 1 comment
Member

Trying to deploy forgejo-aneksajo on a VPS, I ran into a couple of things that are misleading or incomplete or simply outdated.
As far as I'm aware, for documentation there's this repo's README, the comment/docstring at the top of the deployment files, and the (different) README in deployment-utilities.

  • The README in deployment-utilities is actually the better entry point to get some basic idea of how to use this. However, that one is a private repo (for obvious reasons). I think, we should suck it in here.

  • The change to the new approach isn't documented. That involves the user->user_spec change for the inventories (and the respective example snippets in the deploy scripts, as well as the fact that the new implementations required an additional script that imports and calls the deploy functions, contradicting the documented way of calling something uv run pyinfra <inventory> <deployment script>. These wrappers exist in the private repo but not here. Hence calling what's here the way examples suggest fails.

  • We should probably add a section talking about SSH. Examples suggest to use --ssh-user, etc. I think, something should point out, that pyinfra just calls ssh, so the most straightforward way is to have user, key, etc. set up in one's ssh config properly for the respective host. I did run into a still somewhat unclear issue, though. While the ssh config is fine and I can in fact login via ssh <host>, pyinfra only succeded to do so in one of two ways: Either explicitly pass the key via --ssh-key path/to/key (despite it being set in ssh config) or use ssh-agent.

Trying to deploy forgejo-aneksajo on a VPS, I ran into a couple of things that are misleading or incomplete or simply outdated. As far as I'm aware, for documentation there's this repo's README, the comment/docstring at the top of the deployment files, and the (different) README in [deployment-utilities](https://hub.psychoinformatics.de/infra/deployment-utilities). - The README in [deployment-utilities](https://hub.psychoinformatics.de/infra/deployment-utilities) is actually the better entry point to get some basic idea of how to use this. However, that one is a private repo (for obvious reasons). I think, we should suck it in here. - The change to the new approach isn't documented. That involves the `user`->`user_spec` change for the inventories (and the respective example snippets in the deploy scripts, as well as the fact that the new implementations required an additional script that imports and calls the deploy functions, contradicting the documented way of calling something `uv run pyinfra <inventory> <deployment script>`. These wrappers exist in the private repo but not here. Hence calling what's here the way examples suggest fails. - We should probably add a section talking about SSH. Examples suggest to use `--ssh-user`, etc. I think, something should point out, that pyinfra just calls ssh, so the most straightforward way is to have user, key, etc. set up in one's ssh config properly for the respective host. I did run into a still somewhat unclear issue, though. While the ssh config is fine and I can in fact login via `ssh <host>`, pyinfra only succeded to do so in one of two ways: Either explicitly pass the key via `--ssh-key path/to/key` (despite it being set in ssh config) or use ssh-agent.
Author
Member

While at, it might also be useful to point out the --sudo option and not leave users of this repo under the impressions they'd have to login as root with pyinfra for this to work.

While at, it might also be useful to point out the `--sudo` option and not leave users of this repo under the impressions they'd have to login as root with pyinfra for this to work.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab-in-a-box/liab-deployments#9
No description provided.