dubzland.gitlab.gitlab_server role – Installs and configures the GitLab DevOps server.
Note
This role is part of the dubzland.gitlab collection (version 1.1.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install dubzland.gitlab
.
To use it in a playbook, specify: dubzland.gitlab.gitlab_server
.
Entry point main
– Installs and configures the GitLab DevOps server.
Synopsis
Sets up the GitLab apt repository
Installs the gitlab-ee package
Creates and applies the GitLab configuration
Parameters
Parameter |
Comments |
---|---|
Amount of time (in seconds) to keep old backup files. |
|
Directory on the GitLab server to hold backup data. |
|
Default theme for the GitLab web UI. Default: |
|
Name displayed as the sender on outbound emails. |
|
Enables email originating from the GitLab server. Choices:
|
|
Email address listed as the sender on outbound emails. |
|
Reply-to address for outbound emails. |
|
Should GitLab manage the permissions and ownership of the directory specified in Choices:
|
|
Maximum payload size allowed by Nginx. Default: |
|
Local addresses the GitLab Nginx server should bind to. Default: |
|
Listen on https (443). Set to Choices:
|
|
If present, specifies the port Nginx should listen on. |
|
HTTP header containing upstream proxy addresses. |
|
Enable Nginx Real-Ip recursive search. Choices:
|
|
List of upstream reverse proxies. |
|
Should http requests to the server be redirected to https. Choices:
|
|
Name of the bucket used for artifact storage. |
|
Name of the bucket used for storing secured files used during CI runs. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/secure_files.html) for details.” at index 77: Cannot find comma separating parameter 1 from the next one |
|
Name of the bucket used for dependency proxy caching. |
|
Name of the bucket used for merge request diffs. |
|
Name of the bucket used for Large File Storage. |
|
Name of the bucket used for project packages. |
|
Name of the bucket used for storing Gitlab Pages. |
|
Name of the bucket used for storing Terraform state. |
|
Name of the bucket used for uploads. |
|
Connection configuration for the object store. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/object_storage.html) for details.” at index 53: Cannot find comma separating parameter 1 from the next one |
|
AWS credentials. |
|
AWS credentials. |
|
Can be used to configure an S3 compatible service (like Minio). |
|
Set to Choices:
|
|
Choices:
|
|
AWS Region (us-east-1 for Minio) |
|
Enables the consoldated configuration for Object Storage. Choices:
|
|
Proxy all object requests through the GitLab server. Choices:
|
|
Certificate file used by the GitLab Pages server. |
|
Certificate key file used by the GitLab Pages server. |
|
Enable GitLab Pages functionality. Choices:
|
|
List of IP addresses the Pages daemon will bind to (for http). Necessary if you want to use custom domains. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/pages/index.html#advanced-configuration)\n for more information.” at index 121: Cannot find comma separating parameter 1 from the next one |
|
List of IP addresses the Pages daemon will bind to (for https). Necessary if you want to use custom domains. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/pages/index.html#advanced-configuration)\n for more information.” at index 122: Cannot find comma separating parameter 1 from the next one |
|
Base URL under which GitLab will server Pages projects. |
|
Controls the GitLab Pages Nginx instance. If you are planning on utilizing custom domains, this should be disabled. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/pages/index.html#advanced-configuration)\n for more information.” at index 131: Cannot find comma separating parameter 1 from the next one Choices:
|
|
Redirect Pages traffic from HTTP to HTTPS Choices:
|
|
Enable the omnibus embedded PostgreSQL server. Set to “false” to use an external PostgreSQL server. Choices:
|
|
Encoding used by the external PostgreSQL server.
Note: This setting only applies if |
|
Hostname or IP address of an external PostgreSQL server. See the
[GitLab documentation](https://docs.gitlab.com/ee/administration/postgresql/external.html)
for more information on configuring an external PostgreSQL server.
Note: This setting only applies if |
|
Password used to authenticate with the external PostgreSQL server.
Note: This setting only applies if |
|
Port the external PostgreSQL server is accepting connections on. See the
[GitLab documentation](https://docs.gitlab.com/ee/administration/postgresql/external.html)
for more information on configuring an external PostgreSQL server.
Note: This setting only applies if |
|
Number of Puma workers to run. Set to 0 to disable Puma clustered mode. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/operations/puma.html#disable-puma-clustered-mode-in-memory-constrained-environments)\n for more information. Generally speaking, this setting should not be\n used. Primarily exists for reducing resource usage during CI runs.” at index 83: Cannot find closing “)” after last parameter |
|
Enables the GitLab Container Registry. Choices:
|
|
URL under which the Container Registry is available. |
|
Host running the Docker registry daemon. |
|
Enable the Nginx server for Registry access. Choices:
|
|
Enable or disable HTTPS for the Registry Nginx instance. Choices:
|
|
Port the Registry Nginx server should listen on. |
|
Directory on the GitLab server where registry data should be stored. |
|
Port the |
|
Connection configuration for the object store. See ERROR while parsing: While parsing “L(https://docs.gitlab.com/ee/administration/object_storage.html) for details.” at index 53: Cannot find comma separating parameter 1 from the next one |
|
AWS credentials. |
|
Name of the bucket used to store container image data. |
|
Disables redirection of registry requests to the storage server. Choices:
|
|
Enable server side encryption of Registry data. Choices:
|
|
Set to Choices:
|
|
Choices:
|
|
AWS Region (us-east-1 for Minio) |
|
Can be used to configure an S3 compatible service (like Minio). |
|
AWS credentials. |
|
Enables TLS encryption to the storage server. Choices:
|
|
Address of the SMTP server used for sending emails. |
|
Authentication method to use with the SMTP server. Choices:
|
|
Actual CA certificate. |
|
Path to the CA to use for validating peer cerficates. |
|
Domain to authenticate to. |
|
Enables sending email via an external server, as opposed to using Sendmail or Postfix directly. Choices:
|
|
Use STARTTLS on the SMTP server if present. Choices:
|
|
Sets how OpenSSL checks the certificate. See ActionMailer for more information. Choices:
|
|
Password that corresponds to |
|
Enables SMTP connection pooling. Choices:
|
|
Port the |
|
Enables TLS authentication with the SMTP server. Choices:
|
|
Username used to authenticate to the SMTP server. |