OSDN Git Service

adds autopilot features.
[metasearch/grid-chef-repo.git] / cookbooks / samba-grid / attributes / default.rb
1 #
2 # Cookbook Name:: samba-grid
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['samba-grid']['group']['sambashare'] = {
21   'gid' => nil,
22   'members' => [],
23 }
24 default['samba-grid']['autopilot'] = {
25   'enabled' => false,
26   'log_dir' => '/var/log',
27   'wait_time' => '180s',
28 }
29 default['samba-grid']['smb.conf'] = {
30   'global' => {
31     #'workgroup' => 'WORKGROUP',
32     #'wide links' => 'yes',
33     #'follow symlinks' => 'yes',
34     #'unix extensions' => 'no',
35     #'dos charset' => 'CP932',
36   },
37   'homes' => {},
38   'printers' => {},
39   'printD' => {},  # for [print$] section
40   # Share Definitions
41   # ...
42 }
43 default['samba-grid']['smbldap-tools']['smbldap.conf'] = {
44   'SID' => '',
45   'sambaDomain' => 'DOMSMB',
46   'slaveLDAP' => 'ldap://ldap.example.com/',
47   'masterLDAP' => 'ldap://ldap.example.com/',
48   'ldapTLS' => '1',
49   'suffix' => 'dc=example,dc=com',
50   'mailDomain' => 'example.com',
51 }
52 default['samba-grid']['smbldap-tools']['smbldap_bind.conf'] = {
53   'slaveDN' => 'cn=Manager,dc=example,dc=com',
54   'slavePw_vault_item' => {
55 =begin
56     'vault' => 'smbldap_bind_pws',
57     'name' => 'slavePw',
58     # single password or nested hash password path delimited by slash
59     'env_context' => false,
60     'key' => 'password',  # real hash path: "/password"
61     # or nested hash password path delimited by slash
62     #'env_context' => true,
63     #'key' => 'hash/path/to/password',  # real hash path: "/#{node.chef_environment}/hash/path/to/password"
64 =end
65   },
66   'masterDN' => 'cn=Manager,dc=example,dc=com',
67   'masterPw_vault_item' => {
68 =begin
69     #'vault' => 'smbldap_bind_pws',
70     #'name' => 'masterPw',
71     #'env_context' => false,
72     #'key' => 'password',
73 =end
74   },
75 }