Update/Enhance documentation #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_specchange 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 somethinguv 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 viassh <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.While at, it might also be useful to point out the
--sudooption and not leave users of this repo under the impressions they'd have to login as root with pyinfra for this to work.