2 # Cookbook Name:: platform_utils
5 # Copyright 2016-2018, whitestar
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
11 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 default['platform_utils']['kernel_modules']['loaded_modules'] = []
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' => '""',
29 default['platform_utils']['mount']['autopilot'] = {
30 # for delayed hotplug devices (e.g. usb)
32 'log_dir' => '/var/log',
36 default['platform_utils']['networking']['autopilot'] = {
37 # for delayed unstable networking
39 'log_dir' => '/var/log',
41 'init_type' => nil, # 'init', 'systemd', 'netplan'
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'
49 default['platform_utils']['rc_local'] = []
51 default['platform_utils']['resolved']['autopilot'] = {
52 # for local dns server used by the systemd-resolved
54 'log_dir' => '/var/log',
55 'wait_time' => '120s',
58 default['platform_utils']['subid']['users'] = []
59 default['platform_utils']['subid']['notifies'] = [
65 :immediately, # option, default: :delayed
70 'resource' => 'service[docker]',
71 'timer' => :immediately, # option, default: :delayed
81 :immediately, # option, default: :delayed
86 'resource' => 'service[docker]',
87 'timer' => :immediately, # option, default: :delayed
91 default['platform_utils']['sudo']['sudoers.d'] = {
96 default['platform_utils']['sudo']['group']['members'] = []
98 default['platform_utils']['sysctl']['configs'] = {
112 default['platform_utils']['tcp_wrappers']['hosts_allow'] = []
113 default['platform_utils']['tcp_wrappers']['hosts_deny'] = []