OSDN Git Service

c37353e85eecea22584cda6b986128d594f91bdc
[metasearch/grid-chef-repo.git] / cookbooks / platform_utils / attributes / default.rb
1 #
2 # Cookbook Name:: platform_utils
3 # Attributes:: default
4 #
5 # Copyright 2016-2018, whitestar
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19
20 default['platform_utils']['kernel_modules']['loaded_modules'] = []
21
22 default['platform_utils']['grub_default'] = {
23   #'ENV_VAR_NAME' => 'value',
24   #'GRUB_TIMEOUT_STYLE' => 'menu',
25   #'GRUB_TIMEOUT' => '5',
26   #'GRUB_CMDLINE_LINUX_DEFAULT' => '""',
27 }
28
29 default['platform_utils']['mount']['autopilot'] = {
30   # for delayed hotplug devices (e.g. usb)
31   'enabled' => false,
32   'log_dir' => '/var/log',
33   'wait_time' => '60s',
34   'mount_points' => [],
35 }
36 default['platform_utils']['networking']['autopilot'] = {
37   # for delayed unstable networking
38   'enabled' => false,
39   'log_dir' => '/var/log',
40   'wait_time' => '60s',
41   'init_type' => nil,  # 'init', 'systemd', 'netplan'
42 }
43
44 default['platform_utils']['platform_update']['auto_update'] = true
45 default['platform_utils']['platform_update']['timer'] = :delayed
46 default['platform_utils']['platform_update']['apt-get']['command'] = 'apt-get upgrade -y'
47 default['platform_utils']['platform_update']['yum']['command'] = 'yum update -y'
48
49 default['platform_utils']['rc_local'] = []
50
51 default['platform_utils']['resolved']['autopilot'] = {
52   # for local dns server used by the systemd-resolved
53   'enabled' => false,
54   'log_dir' => '/var/log',
55   'wait_time' => '120s',
56 }
57
58 default['platform_utils']['subid']['users'] = []
59 default['platform_utils']['subid']['notifies'] = [
60 =begin
61   # multiple notifies
62   [
63     :restart,
64     'service[docker]',
65     :immediately,  # option, default: :delayed
66   ],
67   # or
68   {
69     'action' => :restart,
70     'resource' => 'service[docker]',
71     'timer' => :immediately,  # option, default: :delayed
72   },
73 =end
74 ]
75 =begin
76 # single notifies
77 # or
78 [
79   :restart,
80   'service[docker]',
81   :immediately,  # option, default: :delayed
82 ],
83 # or
84 {
85   'action' => :restart,
86   'resource' => 'service[docker]',
87   'timer' => :immediately,  # option, default: :delayed
88 },
89 =end
90
91 default['platform_utils']['sudo']['sudoers.d'] = {
92   #'file_name' => [
93   #  'each_line',
94   #]
95 }
96 default['platform_utils']['sudo']['group']['members'] = []
97
98 default['platform_utils']['sysctl']['configs'] = {
99 =begin
100   '80-by_chef' => {
101     'action' => :create,
102     'params' => {
103       'key' => 'value',
104     },
105   },
106   '88-unwanted' => {
107     'action' => :delete,
108   },
109 =end
110 }
111
112 default['platform_utils']['tcp_wrappers']['hosts_allow'] = []
113 default['platform_utils']['tcp_wrappers']['hosts_deny'] = []