Browse Source

roles/gitlab: initial_root_password

python3
Zolfa 5 years ago
parent
commit
d44c630c9e
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 14 additions and 9 deletions
  1. +10
    -9
      roles/gitlab/README.md
  2. +4
    -0
      roles/gitlab/templates/gitlab.rb.j2

+ 10
- 9
roles/gitlab/README.md View File

@ -4,15 +4,16 @@ Set-up a Omnibus GitLab server
## Configuration variables ## Configuration variables
| Name | Description |
|-----------------|-------------------------------------------------|
| `server_fqdn` | [`$hostname.$domain`] |
| `ssh_port` | External SSH port. [`22`] |
| `ldap_server`* | LDAP server fqdn [`'ldap1.dmz.$domain'`] |
| `ldap_domain` | LDAP domain, used to derive base dn [`$domain`] |
| `enable_https` | Enable HTTPS. [`false`] |
| `ldap_admin_dn` | DN of a LDAP user with admin privileges. |
| `ldap_admin_pw` | Bind password of that user. |
| Name | Description |
|-------------------------|-------------------------------------------------|
| `server_fqdn` | [`$hostname.$domain`] |
| `ssh_port` | External SSH port. [`22`] |
| `ldap_server`* | LDAP server fqdn [`'ldap1.dmz.$domain'`] |
| `ldap_domain` | LDAP domain, used to derive base dn [`$domain`] |
| `enable_https` | Enable HTTPS. [`false`] |
| `ldap_admin_dn` | DN of a LDAP user with admin privileges. |
| `ldap_admin_pw` | Bind password of that user. |
| `initial_root_password` | Available only before initialization. |
**Note**: The Ansible controller must have OpenLDAP properly configured **Note**: The Ansible controller must have OpenLDAP properly configured
with root ca set in `~/.ldaprc`. with root ca set in `~/.ldaprc`.


+ 4
- 0
roles/gitlab/templates/gitlab.rb.j2 View File

@ -529,7 +529,11 @@ external_url 'http://{{ server_fqdn }}'
#### Change the initial default admin password and shared runner registration tokens. #### Change the initial default admin password and shared runner registration tokens.
####! **Only applicable on initial setup, changing these settings after database ####! **Only applicable on initial setup, changing these settings after database
####! is created and seeded won't yield any change.** ####! is created and seeded won't yield any change.**
{% if initial_root_password is defined %}
gitlab_rails['initial_root_password'] = "{{ initial_root_password }}"
{% else %}
# gitlab_rails['initial_root_password'] = "password" # gitlab_rails['initial_root_password'] = "password"
{% endif %}
# gitlab_rails['initial_shared_runners_registration_token'] = "token" # gitlab_rails['initial_shared_runners_registration_token'] = "token"
#### Set path to an initial license to be used while bootstrapping GitLab. #### Set path to an initial license to be used while bootstrapping GitLab.


Loading…
Cancel
Save