Welcome to mirror list, hosted at ThFree Co, Russian Federation.

initialize.yml « tasks « gitaly « roles « benchmarking « _support - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 98ec67a90444b8510c25baa440e83bf34e614def (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
33
34
35
36
37
38
39
40
41
42
43
44
---
- name: Install client SSH pubkey
  authorized_key:
    user: root
    key: "{{ hostvars[groups['client'][0]]['client_ssh_key'] | b64decode }}"

# Set high uid to ensure it's not squashed by another service
- name: Create 'git' user
  user:
    name: git
    uid: 1999
    groups: admin
    append: true

- name: Mount repositories disk
  mount:
    path: /mnt/git-repositories
    src: /dev/disk/by-id/google-repository-disk
    fstype: ext4
    opts: discard,defaults
    state: mounted

- name: Set git as owner of git-repositories directory
  file:
    path: /mnt/git-repositories
    owner: git
    group: git
    state: directory
    recurse: yes

- name: Create /src directory
  file:
    path: /src
    state: directory
    mode: '0755'
    owner: git
    group: git

# Match limits set by Omnibus
- name: Set file-max
  shell: echo "1000000" > /proc/sys/fs/file-max

- name: Update apt cache
  apt: update_cache=yes