summaryrefslogtreecommitdiff
path: root/per-service/git-servers/gitolite.yml
blob: 87b780e898d4fdb33cc7a33f42301abedc09175c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- hosts:
    - git
  become: yes
  gather_facts: no
  vars_files:
    - ["{{secrets_dir}}/host_vars/{{inventory_hostname}}", "vars/empty.yml"]
  roles:
    - common
    - hosttype
    - users
    - git-config
    - install-deps
    - linaro-git-tools
    - {role: gitolite, when: hosttype == 'git-main'}
    - apache-conf
    - {role: apache-auth, host_name: "{{git_host}}", when: server_access == "private", tags: [apache-auth, website-conf]}
    - apache-website
    - {role: apache-site, src: "{{git_host}}.conf", config: "{{git_host}}", tags: [apache, website-conf] }
    - {role: cronjobs}
    - {role: gitweb, tags: [gitweb]}
    - {role: upstart-git-daemon, when: server_access == "public", tags: [upstart]}
    - {role: grokmirror, when: grokmirror_slave or grokmirror_master, tags: [grokmirror]}

- hosts:
    - git-us.linaro.org
  become: yes
  gather_facts: no
  vars_files:
    - ["{{secrets_dir}}/host_vars/{{inventory_hostname}}", "vars/empty.yml"]
  roles:
    - {role: mirroring, when: hosttype != 'git-slave'}