More progress on GitLab installation
This commit is contained in:
parent
5fa716d470
commit
2247a9db5d
@ -85,6 +85,16 @@
|
||||
force: yes
|
||||
repo: "https://gitlab.com/gitlab-org/gitlab-foss.git"
|
||||
version: 12-10-stable
|
||||
- name: Create public directory
|
||||
file:
|
||||
path: "/home/git/public"
|
||||
mode: "0755"
|
||||
state: directory
|
||||
- name: Create uploads directory
|
||||
file:
|
||||
path: "/home/git/public/uploads"
|
||||
mode: "0700"
|
||||
state: directory
|
||||
- name: Copy secrets
|
||||
copy:
|
||||
src: "/home/git/gitlab/config/secrets.yml.example"
|
||||
@ -97,6 +107,8 @@
|
||||
loop:
|
||||
- { src: "gitlab.yml", dest: "/home/git/gitlab/config/gitlab.yml" }
|
||||
- { src: "pumba.rb", dest: "/home/git/gitlab/config/puma.rb" }
|
||||
- { src: "rack_attack.rb", dest: "/home/git/gitlab/config/initializers/rack_attack.rb" }
|
||||
- { src: "resque.yml", dest: "/home/git/gitlab/config/resque.yml" }
|
||||
- name: Change permissions
|
||||
file:
|
||||
path: "{{ item.src }}"
|
||||
@ -110,16 +122,16 @@
|
||||
- { src: "/home/git/gitlab/builds", mode: "u+rwX" }
|
||||
- { src: "/home/git/gitlab/shared/artifacts", mode: "u+rwX" }
|
||||
- { src: "/home/git/gitlab/shared/pages", mode: "u+rwX" }
|
||||
- name: Create public directory
|
||||
file:
|
||||
path: "/home/git/public"
|
||||
mode: "0755"
|
||||
state: directory
|
||||
- name: Create uploads directory
|
||||
file:
|
||||
path: "/home/git/public/uploads"
|
||||
mode: "0700"
|
||||
state: directory
|
||||
- name: Configure git
|
||||
git_config:
|
||||
name: "{{ item.name }}"
|
||||
value: "{{ item.value }}"
|
||||
loop:
|
||||
- { name: "core.autocrlf", value: "input" }
|
||||
- { name: "gc.auto", value: "0" }
|
||||
- { name: "repack.writeBitmaps", value: "true" }
|
||||
- { name: "receive.advertisePushOptions", value: "true" }
|
||||
- { name: "core.fsyncObjectFiles", value: "true" }
|
||||
become: yes
|
||||
become_user: git
|
||||
- name: Set up Apache
|
||||
|
10
roles/gitlab/templates/database.yml
Normal file
10
roles/gitlab/templates/database.yml
Normal file
@ -0,0 +1,10 @@
|
||||
production:
|
||||
adapter: mysql2
|
||||
encoding: utf8
|
||||
collation: utf8_general_ci
|
||||
reconnect: false
|
||||
database: gitlab
|
||||
pool: 10
|
||||
username: gitlab
|
||||
password: {{ gitlab_mysql_password }}
|
||||
host: localhost
|
Loading…
Reference in New Issue
Block a user