The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  3. #
  4. - name: Snapshot ansible roles
  5. shell: snapshot_ansible.sh
  6. - name: Touch first-time setup file
  7. shell: su - bubble bash -c "if [[ ! -f /home/bubble/first_time_marker ]] ; then echo -n install > /home/bubble/first_time_marker ; fi"
  8. when: restore_key is not defined
  9. - name: Touch first-time setup file (restore)
  10. shell: su - bubble bash -c "if [[ ! -f /home/bubble/first_time_marker ]] ; then echo -n restore > /home/bubble/first_time_marker ; fi"
  11. when: restore_key is defined
  12. - name: Install mitmproxy CA cert in local CA store
  13. shell: install_cert.sh /home/mitmproxy/.mitmproxy/{{ server_alias }}-ca-cert.pem 600
  14. when: install_type == 'node'
  15. - name: Install copy_certs_to_bubble.sh helper
  16. copy:
  17. src: "copy_certs_to_bubble.sh"
  18. dest: /usr/local/bin/copy_certs_to_bubble.sh
  19. owner: bubble
  20. group: root
  21. mode: 0550
  22. when: install_type == 'node'
  23. - name: Install mitmproxy public certs in bubble dir
  24. shell: /usr/local/bin/copy_certs_to_bubble.sh {{ server_alias }}
  25. when: install_type == 'node'
  26. - name: Install bubble-nodemanager
  27. copy:
  28. src: "bubble-nodemanager"
  29. dest: /usr/sbin/bubble-nodemanager
  30. owner: root
  31. group: root
  32. mode: 0500
  33. - name: Install bubble-nodemanager supervisor conf file
  34. copy:
  35. src: "supervisor_bubble_nodemanager.conf"
  36. dest: /etc/supervisor/conf.d/nodemanager.conf
  37. - name: Install bubble supervisor conf file
  38. template:
  39. src: "supervisor_bubble.conf.j2"
  40. dest: /etc/supervisor/conf.d/bubble.conf
  41. # We cannot receive notifications until nginx is running, so start bubble API as the very last step
  42. - name: Ensure bubble and bubble_nodemanager are started
  43. supervisorctl:
  44. name: '{{ item }}'
  45. state: restarted
  46. with_items:
  47. - bubble
  48. - nodemanager
  49. - name: Ensure authorized SSH keys are up-to-date
  50. shell: su - bubble bash -c "touch /home/bubble/.refresh_ssh_keys"