Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

master.yaml 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ---
  2. - name: buildbot system group
  3. group:
  4. name: buildbot
  5. system: yes
  6. - name: buildbot system user
  7. user:
  8. name: buildbot
  9. group: buildbot
  10. system: yes
  11. home: /var/lib/buildbot
  12. shell: /usr/bin/fish
  13. generate_ssh_key: true
  14. ssh_key_type: ed25519
  15. - name: buildbot var directory
  16. file:
  17. path: /var/lib/buildbot
  18. state: directory
  19. owner: buildbot
  20. group: buildbot
  21. mode: 0700
  22. # source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service
  23. - name: buildbot systemd service unit
  24. copy:
  25. src: systemd/buildbot@.service
  26. dest: /etc/systemd/system/buildbot@.service
  27. notify: systemd daemon reload
  28. - name: initiate buildbot master configurations
  29. command: buildbot create-master --db {{buildbot_database_url}} --relocatable master
  30. become: true
  31. become_user: buildbot
  32. args:
  33. chdir: /var/lib/buildbot
  34. creates: /var/lib/buildbot/master
  35. - name: buildbot master config file
  36. template:
  37. src: buildbot/master.cfg.j2
  38. dest: /var/lib/buildbot/master/master.cfg
  39. notify: restart buildbot service
  40. - meta: flush_handlers
  41. - name: ensure buildbot master service is running
  42. systemd:
  43. state: started
  44. name: buildbot@master.service
  45. - include_role:
  46. name: certificate
  47. vars:
  48. certificate_name: buildbot
  49. certificate_directory: /etc/ssl
  50. certificate_key_usage:
  51. - digitalSignature
  52. - keyEncipherment
  53. certificate_extended_key_usage:
  54. - serverAuth
  55. certificate_common_name: "{{ buildbot_server_name }}"
  56. - include_role:
  57. name: nginx
  58. vars:
  59. nginx_vhosts: "{{ buildbot_nginx_vhosts }}"