Merge branch '2119-start-services' into 'master'

Start all services after upgrade that weren't down before

Closes #2119

See merge request !1427
This commit is contained in:
Marin Jankovski 2017-04-04 12:37:31 +00:00 committed by James Lopez
parent 5fdbbca7a6
commit 42c9af272e
6 changed files with 33 additions and 0 deletions

View File

@ -44,3 +44,9 @@ runit_service 'gitaly' do
}.merge(params))
log_options node['gitlab']['logging'].to_hash.merge(node['gitlab']['gitaly'].to_hash)
end
if node['gitlab']['bootstrap']['enable']
execute "/opt/gitlab/bin/gitlab-ctl start gitaly" do
retries 20
end
end

View File

@ -48,3 +48,8 @@ runit_service "gitlab-monitor" do
log_options node['gitlab']['logging'].to_hash.merge(node['gitlab']['registry'].to_hash)
end
if node['gitlab']['bootstrap']['enable']
execute "/opt/gitlab/bin/gitlab-ctl start gitlab-monitor" do
retries 20
end
end

View File

@ -46,3 +46,9 @@ runit_service 'node-exporter' do
node['gitlab']['node-exporter'].to_hash
)
end
if node['gitlab']['bootstrap']['enable']
execute "/opt/gitlab/bin/gitlab-ctl start node-exporter" do
retries 20
end
end

View File

@ -40,3 +40,8 @@ runit_service 'postgres-exporter' do
log_options node['gitlab']['logging'].to_hash.merge(node['gitlab']['registry'].to_hash)
end
if node['gitlab']['bootstrap']['enable']
execute "/opt/gitlab/bin/gitlab-ctl start postgres-exporter" do
retries 20
end
end

View File

@ -52,3 +52,9 @@ runit_service 'prometheus' do
node['gitlab']['prometheus'].to_hash
)
end
if node['gitlab']['bootstrap']['enable']
execute "/opt/gitlab/bin/gitlab-ctl start prometheus" do
retries 20
end
end

View File

@ -34,3 +34,8 @@ runit_service 'redis-exporter' do
log_options node['gitlab']['logging'].to_hash.merge(node['gitlab']['registry'].to_hash)
end
if node['gitlab']['bootstrap']['enable']
execute "/opt/gitlab/bin/gitlab-ctl start redis-exporter" do
retries 20
end
end