Skip to content
Snippets Groups Projects
Commit 1c9d4c81 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Merge branch 'pages-inplace-chroot' into 'master'

Add support for the pages -daemon-inplace-chroot option

See merge request gitlab-org/omnibus-gitlab!2483
parents 54fcd297 c131a9fb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -24,6 +24,18 @@ omnibus-gitlab repository.
- Patch bzip2 against CVE-2016-3189 552730bfa
- Fix pgbouncer recipe to use the correct user for standalone instances
 
10.7.3
- Add support for the `-daemon-inplace-chroot` command-line flag to GitLab Pages
10.7.2
- No changes
10.7.1
- No changes
10.7.0
 
- Geo: Increase default WAL standby settings from 30s to 60s
Loading
Loading
Loading
Loading
@@ -1094,6 +1094,10 @@ external_url 'GENERATED_EXTERNAL_URL'
# gitlab_pages['artifacts_server_url'] = nil # Defaults to external_url + '/api/v4'
# gitlab_pages['artifacts_server_timeout'] = 10
 
##! Environments that do not support bind-mounting should set this parameter to
##! true. This is incompatible with the artifacts server
# gitlab_pages['inplace_chroot'] = false
##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics
# gitlab_pages['metrics_address'] = ":9235"
 
Loading
Loading
Loading
Loading
@@ -579,6 +579,7 @@ default['gitlab']['gitlab-pages']['log_format'] = nil
default['gitlab']['gitlab-pages']['artifacts_server'] = true
default['gitlab']['gitlab-pages']['artifacts_server_url'] = nil
default['gitlab']['gitlab-pages']['artifacts_server_timeout'] = 10
default['gitlab']['gitlab-pages']['inplace_chroot'] = false
 
####
# Nginx
Loading
Loading
Loading
Loading
@@ -31,6 +31,7 @@ exec /usr/bin/env SSL_CERT_FILE=/opt/gitlab/embedded/ssl/certs/cacert.pem \
<% end %>
-daemon-uid="$(id -u "<%= node['gitlab']['user']['username'] %>")" \
-daemon-gid="$(id -g "<%= node['gitlab']['user']['username'] %>")" \
-daemon-inplace-chroot=<%= node['gitlab']['gitlab-pages']['inplace_chroot'] %> \
\
-pages-domain="<%= node['gitlab']['gitlab-pages']['domain'] %>" \
-pages-root="<%= node['gitlab']['gitlab-pages']['pages_root'] %>" \
Loading
Loading
Loading
Loading
@@ -25,6 +25,7 @@ describe 'gitlab::gitlab-pages' do
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-use-http2=true})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-artifacts-server="https://gitlab.example.com/api/v4"})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-artifacts-server-timeout=10})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-daemon-inplace-chroot=false})
 
expect(chef_run).not_to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-listen-http})
expect(chef_run).not_to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-listen-https})
Loading
Loading
@@ -54,6 +55,7 @@ describe 'gitlab::gitlab-pages' do
artifacts_server_url: "https://gitlab.elsewhere.com/api/v5",
artifacts_server_timeout: 60,
status_uri: '/@status',
inplace_chroot: true,
log_format: 'json'
}
)
Loading
Loading
@@ -77,6 +79,7 @@ describe 'gitlab::gitlab-pages' do
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-artifacts-server="https://gitlab.elsewhere.com/api/v5"})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-artifacts-server-timeout=60})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-pages-status="/@status"})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-daemon-inplace-chroot=true})
expect(chef_run).to render_file("/opt/gitlab/sv/gitlab-pages/run").with_content(%r{-log-format="json"})
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment