2020-04-11 13:16:20 +00:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
external_url '{{ gitlab_url }}'
|
2021-08-24 06:03:45 +00:00
|
|
|
{% if gitlab_pages_url is defined %}
|
|
|
|
pages_external_url '{{ gitlab_pages_url }}'
|
|
|
|
{% endif %}
|
2021-08-24 05:59:04 +00:00
|
|
|
{% if gitlab_data_dir is defined %}
|
2020-04-11 13:16:20 +00:00
|
|
|
git_data_dirs({
|
|
|
|
"default" => {
|
|
|
|
"path" => "{{ gitlab_data_dir }}"
|
|
|
|
}
|
|
|
|
})
|
2021-08-24 05:59:04 +00:00
|
|
|
{% endif %}
|
2020-04-11 13:16:20 +00:00
|
|
|
{% for module, options in gitlab_config.items() %}
|
|
|
|
|
|
|
|
{% for option, value in options.items() %}
|
|
|
|
{{ module }}['{{ option }}'] = {% if value is sameas true %}true
|
|
|
|
{% elif value is sameas false %}false
|
|
|
|
{% elif value is string %}'{{ value }}'
|
|
|
|
{% elif value is number %}{{ value }}
|
2021-08-24 06:13:21 +00:00
|
|
|
{% else %}YAML.load <<-EOS
|
|
|
|
{{ value|to_nice_yaml }}
|
|
|
|
EOS
|
2020-04-11 13:16:20 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|