mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-25 06:31:27 +00:00
gitlab external database prep
This commit is contained in:
parent
5f2426d840
commit
b8ea1c51a1
@ -69,7 +69,7 @@
|
||||
- name: Apply fcontext to GitLab unix socket for nginx
|
||||
command: restorecon -v /var/opt/gitlab/gitlab-workhorse/sockets/socket
|
||||
register: restorecon_result
|
||||
changed_when: "restorecon_result == 0"
|
||||
changed_when: "restorecon_result.rc == 0"
|
||||
|
||||
- name: Add firewall rules - http/s
|
||||
ansible.posix.firewalld:
|
||||
|
@ -122,3 +122,13 @@ registry_nginx['ssl_certificate_key'] = "{{ gitlab_registry_nginx_ssl_certificat
|
||||
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#changing-gitlab-yml-settings
|
||||
nginx['enable'] = false
|
||||
nginx['external_users'] = ['nginx']
|
||||
|
||||
{% if gitlab_external_db %}
|
||||
postgresql['enable'] = false
|
||||
gitlab_rails['db_adapter'] = 'postgresql'
|
||||
gitlab_rails['db_encoding'] = 'unicode'
|
||||
gitlab_rails['db_host'] = '{{ gitlab_external_db_host }}'
|
||||
gitlab_rails['db_port'] = '{{ gitlab_external_db_port }}'
|
||||
gitlab_rails['db_username'] = '{{ gitlab_external_db_user }}'
|
||||
gitlab_rails['db_password'] = '{{ gitlab_external_db_password }}'
|
||||
{% endif %}
|
||||
|
@ -61,3 +61,8 @@ gitlab_nginx_listen_port: 8080
|
||||
gitlab_nginx_listen_https: "false"
|
||||
|
||||
gitlab_default_theme: 2
|
||||
|
||||
gitlab_external_db: false
|
||||
gitlab_external_db_host: db.rockylinux.org
|
||||
gitlab_external_db_user: gitlab
|
||||
gitlab_external_db_password: gitlab
|
||||
|
Loading…
Reference in New Issue
Block a user