README 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. This directory contains some ansible script that we use to set up some
  2. machines that we use for Tor Browser development.
  3. To deploy some changes you need the ansible package to be installed on
  4. your machine, and be able to log in with ssh as root on the machine(s)
  5. where the changes need to be deployed.
  6. You can then use one of the following makefile targets:
  7. ansible-tbb-build:
  8. Deploy changes to the machine used by Tor Browser team members to do
  9. some Tor Browser builds. See below for more details about adding,
  10. removing and updating users on this machine.
  11. fpcentral:
  12. Deploy fpcentral to forrestii.torproject.org. To be able to run this
  13. you need to be in the fpcentral tpo ldap group. Your ldap password will
  14. be asked, to sudo to the fpcentral user.
  15. Adding, removing, updating users on the Tor Browser team build machine
  16. ======================================================================
  17. The tbb-build.yml playbook is used to set up the Tor Browser team build
  18. machine (build-sunet-a.torproject.net).
  19. To add a new user:
  20. - add the new username to roles/tbb-team/defaults/main.yml
  21. - add the ssh key file to roles/tbb-team/files/${username}.pub
  22. - run "make ansible-tbb-build"
  23. To update the ssh key for an existing user:
  24. - update roles/tbb-team/files/${username}.pub
  25. - run "make ansible-tbb-build"
  26. To remove a user and their home directory from the build machine:
  27. - in roles/tbb-team/defaults/main.yml, move the user from
  28. tbb_team_members to tbb_team_alums
  29. - remove roles/tbb-team/files/${username}.pub
  30. - run "make ansible-tbb-build"
  31. To install additional packages you can add them to
  32. roles/tbb-builder/tasks/main.yml if they are necessary to build
  33. Tor Browser, or to roles/useful-packages/tasks/main.yml otherwise.
  34. If you don't want to apply the changes directly, but first want to check
  35. what would be the changes done by ansible, you can edit the ansible-playbook
  36. command in the Makefile to add the --check argument.