OSDN Git Service

updates screwdriver roles.
[metasearch/grid-chef-repo.git] / roles / aptly-on-docker.rb
1 #
2 # Copyright 2017, whitestar
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 name 'aptly-on-docker'
18 description 'aptly on Docker'
19
20 #aptly_cn = 'aptly.io.example.com'
21 #aptly_port = '7080'  # default: 8080
22 #aptly_api_port = '7081'  # default: 8081
23
24 run_list(
25   'role[docker]',
26   'recipe[apt_utils::aptly-docker-compose]',
27 )
28
29 #env_run_lists()
30
31 #default_attributes()
32
33 override_attributes(
34   'docker-grid' => {
35     'engine' => {
36       'skip_setup' => false,
37     },
38     'compose' => {
39       'skip_setup' => false,
40     },
41   },
42   'apt_utils' => {
43     'aptly' => {
44       'docker-compose' => {
45         'config' => {
46           'services' => {
47             'reverseproxy' => {
48               #'ports' => [
49                 #"#{aptly_port}:8080",
50                 #"#{aptly_api_port}:8081",
51               #],
52             },
53             'aptly' => {
54               'volumes' => [
55                 '/root/.gnupg:/root/.gnupg:rw',
56               ],
57             },
58           },
59         },
60       },
61     },
62   },
63 )