Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Provisioning the TigerOS Webhost

Aidan Kahrs edited this page Mar 30, 2018 · 2 revisions
  1. Login to proxmox and open the console for the VM named TigerOS-mirror
  2. Login at the prompt.
  3. If not installed, install wget and vim
  4. wget the playbook from the buildscripts directory of this repo
  5. On your local computer, using a python virtual environment, pip install passlib and then run python3 -c "from passlib.hash import sha512_crypt; import getpass; hash=sha512_crypt.using(rounds=5000).hash(getpass.getpass());print(hash)"
  6. Type the password you want for the mirror user of the mirror VM at the prompt.
  7. Copy the resulting hash and add it in place of the existing one in the playbook on the remote VM. a. Alternatively you can leave the default and manually reset the password after the playbook runs.
  8. Run ansible-playbook playbook.yml
  9. The server is now provisioned.
  10. On your local machine, generate a new ssh keypair. Upload the public half to a pastebin such as fpaste.org.
  11. Use wget to download the raw paste to the VM and add it to /home/mirror/.ssh/authorized_keys.
  12. Disable password auth in /etc/ssh/sshd_config and restart sshd
  13. You should now be able to login to the VM remotely.