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:
parent
5fdbbca7a6
commit
42c9af272e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue