Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- ---
-
- - name: buildbot system group
- group:
- name: buildbot
- system: yes
-
- - name: buildbot system user
- user:
- name: buildbot
- group: buildbot
- system: yes
- home: /var/lib/buildbot
- shell: /usr/bin/fish
- generate_ssh_key: true
- ssh_key_type: ed25519
-
- - name: buildbot var directory
- file:
- path: /var/lib/buildbot
- state: directory
- owner: buildbot
- group: buildbot
- mode: 0700
-
- # source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/master/contrib/systemd/buildbot%40.service
- - name: buildbot systemd service unit
- copy:
- src: systemd/buildbot@.service
- dest: /etc/systemd/system/buildbot@.service
- notify: systemd daemon reload
-
- - name: initiate buildbot master configurations
- command: buildbot create-master --db {{buildbot_database_url}} --relocatable master
- become: true
- become_user: buildbot
- args:
- chdir: /var/lib/buildbot
- creates: /var/lib/buildbot/master
-
- - name: buildbot master config file
- template:
- src: buildbot/master.cfg.j2
- dest: /var/lib/buildbot/master/master.cfg
- notify: restart buildbot service
-
- - meta: flush_handlers
-
- - name: ensure buildbot master service is running
- systemd:
- state: started
- name: buildbot@master.service
-
- - include_role:
- name: certificate
- vars:
- certificate_name: buildbot
- certificate_directory: /etc/ssl
- certificate_key_usage:
- - digitalSignature
- - keyEncipherment
- certificate_extended_key_usage:
- - serverAuth
- certificate_common_name: "{{ buildbot_server_name }}"
-
- - include_role:
- name: nginx
- vars:
- nginx_vhosts: "{{ buildbot_nginx_vhosts }}"
|