Closed citizen428 closed 3 years ago
The Vault secret and inventory example copy steps are now idempotent:
OK, I think it now made all the changes requested as well as the ones that came up during the discussions. I also updated the README so I'll take this PR out of draft now.
I think this is good to merge @citizen428. Thanks for your hard work here!
While going through the selfhost setup process myself, I noticed a few things that can be automated. This PR adds a script that does the following:
pip
is available (either aspip3
orpip
, now that Python 2 is EOL not everyone usespip3
explicitly). If it's not, an error will be shown and the script terminates.~/.forem_selfhost_ansible_vault_password
)inventory/example/setup.yml
toinventory/forem/setup.yml
inventory/forem/setup.yml
and activatingpipenv
in their shell viapipenv shell
before they continue.There's definitely a bit more we could do (e.g. generating the SSH key) but I was at a good stopping point for opening a draft PR.