description 'GitLab setup with ssl_cert cookbook'
run_list(
- 'recipe[ssl_cert::server_key_pairs]',
+ #'recipe[ssl_cert::server_key_pairs]', # gitlab-grid <= 0.1.3
'recipe[gitlab-grid::server]',
)
gitlab_registry_port = '5050'
run_list(
- 'recipe[ssl_cert::server_key_pairs]',
+ #'recipe[ssl_cert::server_key_pairs]', # gitlab-grid <= 0.1.3
'role[docker]',
'recipe[gitlab-grid::docker-compose]',
)
description 'GitLab-runner'
run_list(
- #'recipe[ssl_cert::ca_certs]',
+ #'recipe[ssl_cert::ca_certs]', # gitlab-grid <= 0.1.3
'role[docker]',
'recipe[gitlab-grid::runner-docker-compose]',
)
```ruby
run_list(
- 'recipe[ssl_cert::server_key_pairs]',
+ #'recipe[ssl_cert::server_key_pairs]', # gitlab-grid <= 0.1.3
'recipe[gitlab-grid::server]',
#'recipe[gitlab-grid::docker-compose]',
)
force_override_gitlab_rb = node.force_override['gitlab-grid']['gitlab.rb']
if node['gitlab-grid']['with_ssl_cert_cookbook']
+ include_recipe 'ssl_cert::server_key_pairs'
::Chef::Recipe.send(:include, SSLCert::Helper)
+
# GitLab
cn = node['gitlab-grid']['ssl_cert']['common_name']
cert_path = server_cert_path(cn)
vols = config['services']['gitlab']['volumes'].to_a
if node['gitlab-grid']['with_ssl_cert_cookbook']
+ include_recipe 'ssl_cert::server_key_pairs'
+
# GitLab
# These paths are already set in the `gitlab-grid::commons` recipe.
cert_path = force_override_gitlab_rb['nginx']['ssl_certificate']
vols.push("#{etc_dir}:/etc/gitlab-runner")
if node['gitlab-grid']['with_ssl_cert_cookbook'] && node['gitlab-grid']['runner-docker-compose']['import_ca']
+ include_recipe 'ssl_cert::ca_certs'
::Chef::Recipe.send(:include, SSLCert::Helper)
vols.push("#{ca_cert_path(node['gitlab-grid']['ssl_cert']['ca_name'])}:/etc/gitlab-runner/certs/ca.crt:ro")
end