OSDN Git Service

initial revision of the athenz cookbook.
[metasearch/grid-chef-repo.git] / roles / athenz-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 'athenz-on-docker'
18 description 'Athenz on Docker'
19
20 #athenz_cn = 'athenz.io.example.com'  # default: node['fqdn']
21 #athenz_zms_port = '4443'  # default: 4443
22 #athenz_zts_port = '8443'  # default: 8443
23 #athenz_ui_port  = '9443'  # default: 9443
24
25 run_list(
26   'role[docker]',
27   'recipe[athenz::docker-compose]',
28 )
29
30 #env_run_lists()
31
32 #default_attributes()
33
34 override_attributes(
35   'docker-grid' => {
36     'engine' => {
37       'skip_setup' => false,
38     },
39     'compose' => {
40       'skip_setup' => false,
41     },
42   },
43   'athenz' => {
44     'docker-compose' => {
45       'config' => {
46         'services' => {
47           'athenz' => {
48             #'ports' => [
49             #  "#{athenz_zms_port}:4443",
50             #  "#{athenz_zts_port}:8443",
51             #  "#{athenz_ui_port}:9443",
52             #],
53             'environment' => {
54             },
55           },
56         },
57       },
58     },
59   },
60 )