No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

master.yaml 2.0KB

hace 4 años
hace 4 años
hace 4 años
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ---
  2. - name: pip3 packages for buildbot master
  3. pip:
  4. name:
  5. - buildbot
  6. - buildbot-www
  7. - buildbot-waterfall-view
  8. - buildbot-console-view
  9. - buildbot-grid-view
  10. - buildbot-badges
  11. - buildbot_gitea
  12. - service_identity
  13. - zope.interface>=4.4.2
  14. executable: pip3
  15. - name: buildbot system group
  16. group:
  17. name: buildbot
  18. system: yes
  19. - name: buildbot system user
  20. user:
  21. name: buildbot
  22. group: buildbot
  23. system: yes
  24. home: /var/lib/buildbot
  25. shell: /usr/bin/fish
  26. generate_ssh_key: true
  27. ssh_key_type: ed25519
  28. - name: buildbot var directory
  29. file:
  30. path: /var/lib/buildbot
  31. state: directory
  32. owner: buildbot
  33. group: buildbot
  34. mode: 0700
  35. - name: buildbot run directory
  36. file:
  37. path: /run/buildbot
  38. state: directory
  39. owner: buildbot
  40. group: www-data
  41. mode: u=rwx,g=rx,o=
  42. # source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service
  43. - name: buildbot systemd service unit
  44. copy:
  45. src: systemd/buildbot@.service
  46. dest: /etc/systemd/system/buildbot@.service
  47. notify: systemd daemon reload
  48. - name: initiate buildbot master
  49. command: buildbot create-master --db {{buildbot_database_url}} --relocatable master
  50. become: true
  51. become_user: buildbot
  52. args:
  53. chdir: /var/lib/buildbot
  54. creates: /var/lib/buildbot/master
  55. - name: buildbot master config file
  56. template:
  57. src: buildbot/master.cfg.j2
  58. dest: /var/lib/buildbot/master/master.cfg
  59. notify: restart buildbot service
  60. - meta: flush_handlers
  61. - name: ensure buildbot master service is running
  62. systemd:
  63. state: started
  64. name: buildbot@master.service
  65. - include_role:
  66. name: certificate
  67. vars:
  68. certificate_name: buildbot
  69. certificate_directory: /etc/ssl
  70. certificate_key_usage:
  71. - digitalSignature
  72. - keyEncipherment
  73. certificate_extended_key_usage:
  74. - serverAuth
  75. certificate_common_name: "{{ buildbot_server_name }}"
  76. - include_role:
  77. name: nginx
  78. vars:
  79. nginx_vhosts: "{{ buildbot_nginx_vhosts }}"