README 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. boklm-tbb-nightly-build:
  16. This target is used by boklm to deploy a nightly build machine. If
  17. anybody else wants to set up their own nightly builds, it is possible to
  18. do it by adding a new host to the inventory file and making copies of
  19. group_vars/boklm-tbb-nightly/ and boklm-tbb-nightly-build.yml.
  20. For more details, see also this ticket:
  21. https://trac.torproject.org/projects/tor/ticket/33948
  22. Adding, removing, updating users on the Tor Browser team build machine
  23. ======================================================================
  24. The tbb-build.yml playbook is used to set up the Tor Browser team build
  25. machine (build-sunet-a.torproject.net).
  26. To add a new user:
  27. - add the new username to roles/tbb-team/defaults/main.yml
  28. - add the ssh key file to roles/tbb-team/files/${username}.pub
  29. - run "make ansible-tbb-build"
  30. To update the ssh key for an existing user:
  31. - update roles/tbb-team/files/${username}.pub
  32. - run "make ansible-tbb-build"
  33. To remove a user and their home directory from the build machine:
  34. - in roles/tbb-team/defaults/main.yml, move the user from
  35. tbb_team_members to tbb_team_alums
  36. - remove roles/tbb-team/files/${username}.pub
  37. - run "make ansible-tbb-build"
  38. To install additional packages you can add them to
  39. roles/tbb-builder/tasks/main.yml if they are necessary to build
  40. Tor Browser, or to roles/useful-packages/tasks/main.yml otherwise.
  41. If you don't want to apply the changes directly, but first want to check
  42. what would be the changes done by ansible, you can edit the ansible-playbook
  43. command in the Makefile to add the --check argument.