OSDN Git Service

add yarn-installer recipe to the nodejs_utils cookbook.
[metasearch/grid-chef-repo.git] / roles / docker-old-repo.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 'docker-old-repo'
18 description 'Docker Engine by the old repository'
19
20 run_list(
21   'recipe[docker-grid::engine]',
22   'recipe[docker-grid::compose]',
23 )
24
25 #env_run_lists
26
27 default_attributes(
28 )
29
30 override_attributes(
31   'docker-grid' => {
32     'install_flavor' => 'dockerproject',
33     'dockerproject' => {
34       'enable_new_repo' => false,
35     },
36     'compose' => {
37       #'skip_setup' => true,  # default: false
38     },
39     'engine' => {
40       'version' => '',  # latest
41       #'skip_setup' => true,  # default: false
42       # old package: `docker-engine`
43       #'version_on_centos' => '17.03.1.ce-1',
44       #'version_on_centos' => '1.13.1-1',
45       #'version_on_centos' => '1.12.6-1',
46       #'version_on_centos' => '1.11.2-1',
47       #'version_on_centos' => '1.10.3-1',
48       #'version_on_ubuntu' => '17.05.0~ce-0',
49       #'version_on_ubuntu' => '17.03.1~ce-0',
50       #'version_on_ubuntu' => '1.13.1-0',
51       #'version_on_ubuntu' => '1.12.6-0',
52       #'version_on_ubuntu' => '1.11.2-0',
53       'storage-driver_on_centos' => 'overlay',  # defacto: 'devicemapper'
54       'storage-driver_on_ubuntu' => 'overlay',  # defacto: 'aufs'
55       #'userns-remap' => 'default',
56       'daemon_extra_options' => [
57         '-H fd://',
58         #'-H fd:// --bip=192.168.100.1/24 --fixed-cidr=192.168.100.0/24',
59         # for docker >= 1.10, docker-engine >= 1.12 (on rhel family)
60         # '-H fd://' option automatically removed by this cookbook.
61         # See https://github.com/docker/docker/issues/22847
62       ].join(' '), 
63     },
64   },
65 )