OSDN Git Service

adds the `supermarket-omnibus-cookbook` cookbook dependency.
[metasearch/grid-chef-repo.git] / roles / gitlab-runner.rb
1 name 'gitlab-runner'
2 description 'GitLab-runner'
3
4 run_list(
5   #'recipe[ssl_cert::ca_certs]',
6   'role[docker]',
7   'recipe[gitlab-grid::runner-docker-compose]',
8 )
9
10 #env_run_lists()
11
12 #default_attributes()
13
14 ca_name = 'grid_ca'  # Internal CA
15
16 override_attributes(
17   'ssl_cert' => {
18     'ca_names' => [
19       ca_name,
20     ],
21   },
22   'gitlab-grid' => {
23     #'with_ssl_cert_cookbook' => true,
24     'ssl_cert' => {
25       'ca_name' => ca_name,
26     },
27     'runner-docker-compose' => {
28       #'import_ca' => true,
29       'config' => {
30         'services' => {
31           'runner' => {
32             'volumes' => [
33               # for Docker executor
34               '/var/run/docker.sock:/var/run/docker.sock',
35             ],
36           },
37         },
38       },
39     },
40   },
41 )