Skip to content
Snippets Groups Projects
Commit d4d7f7c5 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Add ci-unicorn service

parent 55723a04
No related branches found
No related tags found
1 merge request!225Bundle GitLab CI
Loading
Loading
@@ -384,3 +384,18 @@ default['gitlab']['gitlab-ci']['smtp_authentication'] = nil
default['gitlab']['gitlab-ci']['smtp_enable_starttls_auto'] = nil
default['gitlab']['gitlab-ci']['smtp_tls'] = nil
default['gitlab']['gitlab-ci']['smtp_openssl_verify_mode'] = nil
####
# CI Unicorn
####
default['gitlab']['ci-unicorn']['enable'] = true
default['gitlab']['ci-unicorn']['ha'] = false
default['gitlab']['ci-unicorn']['log_directory'] = "/var/log/gitlab/ci-unicorn"
default['gitlab']['ci-unicorn']['worker_processes'] = 2
default['gitlab']['ci-unicorn']['listen'] = '127.0.0.1'
default['gitlab']['ci-unicorn']['port'] = 8181
default['gitlab']['ci-unicorn']['socket'] = '/var/opt/gitlab/gitlab-ci/sockets/gitlab.socket'
default['gitlab']['ci-unicorn']['pidfile'] = '/opt/gitlab/var/ci-unicorn/unicorn.pid'
default['gitlab']['ci-unicorn']['tcp_nopush'] = true
default['gitlab']['ci-unicorn']['backlog_socket'] = 1024
default['gitlab']['ci-unicorn']['worker_timeout'] = 60
#
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# Copyright:: Copyright (c) 2014 GitLab B.V.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
unicorn_service 'ci-unicorn' do
rails_service 'gitlab-ci'
user node['gitlab']['gitlab-ci']['username']
end
#
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# Copyright:: Copyright (c) 2014 GitLab B.V.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
runit_service "ci-unicorn" do
action :disable
end
Loading
Loading
@@ -56,6 +56,7 @@ include_recipe "gitlab::selinux"
# the corresponding service recipe is not loaded below.
[
"unicorn",
"ci-unicorn",
"sidekiq"
].each do |dummy|
service dummy do
Loading
Loading
@@ -71,6 +72,7 @@ include_recipe "runit"
"redis",
"postgresql", # Postgresql depends on Redis because of `rake db:seed_fu`
"unicorn",
"ci-unicorn",
"sidekiq",
"nginx",
"remote-syslog",
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