-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.rb
111 lines (99 loc) · 5.71 KB
/
default.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
# Cookbook Name:: chef-guard
# Attribute:: default
#
# Copyright 2014, Sander van Harmelen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
default['chef-guard']['version'] = '0.7.1'
default['chef-guard']['install_dir'] = '/opt/chef-guard'
default['chef-guard']['vault'] = 'chef-guard'
default['chef-guard']['vault_item'] = 'chef.bookshelf'
if node['kernel']['machine'] == 'x86_64'
default['chef-guard']['url'] = "https://github.com/xanzy/chef-guard/releases/download/v#{node['chef-guard']['version']}/chef-guard-v#{node['chef-guard']['version']}-linux-x64.tar.gz"
default['chef-guard']['checksum'] = '922e07e452e04728e7de7ee816f58afff853b0513e5bfbcde5527ec1d9a39940'
else
default['chef-guard']['url'] = "https://github.com/xanzy/chef-guard/releases/download/v#{node['chef-guard']['version']}/chef-guard-v#{node['chef-guard']['version']}-linux-x86.tar.gz"
default['chef-guard']['checksum'] = 'b1369268b3aa4c041134f18f952c78f1acbe0b42c4a084a0b9c85982d2c71f6c'
end
# These options are used for the 'Default' section
default['chef-guard']['config']['default']['listenip'] = '127.0.0.2'
default['chef-guard']['config']['default']['listenport'] = '8000'
default['chef-guard']['config']['default']['logfile'] = '/var/log/chef-guard.log'
default['chef-guard']['config']['default']['tempdir'] = '/var/tmp/chef-guard'
default['chef-guard']['config']['default']['mode'] = 'silent'
default['chef-guard']['config']['default']['maildomain'] = ''
default['chef-guard']['config']['default']['mailserver'] = ''
default['chef-guard']['config']['default']['mailport'] = '25'
default['chef-guard']['config']['default']['mailrecipient'] = ''
default['chef-guard']['config']['default']['validatechanges'] = 'permissive'
default['chef-guard']['config']['default']['commitchanges'] = true
default['chef-guard']['config']['default']['mailchanges'] = true
default['chef-guard']['config']['default']['searchgit'] = true
default['chef-guard']['config']['default']['publishcookbook'] = true
default['chef-guard']['config']['default']['blacklist'] = ''
default['chef-guard']['config']['default']['gitconfig'] = 'chef-guard'
default['chef-guard']['config']['default']['gitcookbookconfigs'] = ''
default['chef-guard']['config']['default']['includefcs'] = ''
default['chef-guard']['config']['default']['excludefcs'] = ''
# These options are used for the 'Chef' section
default['chef-guard']['config']['chef']['type'] = 'enterprise'
default['chef-guard']['config']['chef']['version'] = 11
default['chef-guard']['config']['chef']['server'] = 'chef.company.com'
default['chef-guard']['config']['chef']['port'] = '443'
default['chef-guard']['config']['chef']['sslnoverify'] = false
default['chef-guard']['config']['chef']['erchefip'] = '127.0.0.1'
default['chef-guard']['config']['chef']['erchefport'] = '8000'
default['chef-guard']['config']['chef']['user'] = 'chef-guard'
default['chef-guard']['config']['chef']['key'] = "#{node['chef-guard']['install_dir']}/chef.pem"
# This option is used for the 'ChefClients' section
default['chef-guard']['config']['chefclients']['path'] = "#{node['chef-guard']['install_dir']}/clients"
# These options are used for the 'Community' section
default['chef-guard']['config']['community']['supermarket'] = 'https://supermarket.getchef.com'
default['chef-guard']['config']['community']['forks'] = ''
# These options are used for the 'Supermarket' section
#
# If you don't have an internal Supermarket, replace the values below with just:
#default['chef-guard']['config']['supermarket'] = nil
default['chef-guard']['config']['supermarket']['server'] = 'supermarket.company.com'
default['chef-guard']['config']['supermarket']['port'] = 443
default['chef-guard']['config']['supermarket']['sslnoverify'] = false
default['chef-guard']['config']['supermarket']['user'] = 'chef-guard'
default['chef-guard']['config']['supermarket']['key'] = "#{node['chef-guard']['install_dir']}/supermarket.pem"
# These options are used for the 'Tests' section
default['chef-guard']['config']['tests']['foodcritic'] = '/opt/chef/embedded/bin/foodcritic'
default['chef-guard']['config']['tests']['rubocop'] = '/opt/chef/embedded/bin/rubocop'
# Add a regex used to determine if the custom foodcritic tests should be run against
# the cookbook being uploaded. It will match the regex against the cookbook name.
default['chef-guard']['foodcritic']['matches'] = '.*'
# These options are used to configure the used Git organizations
#default['chef-guard']['config']['git']['org1'] = {
# 'type' => 'github',
# 'serverurl' => '',
# 'token' => 'xxx'
#}
#default['chef-guard']['config']['git']['org2'] = {
# 'type' => 'gitlab',
# 'serverurl' => 'https://gitlab.company.com',
# 'token' => 'xxx'
#}
# These options are used to configure the Chef organizations (only used with Enterpise Chef or Chef 12)
#default['chef-guard']['config']['customers']['demo1'] = {
# 'mailchanges' => false,
# 'searchgit' => false
#}
#default['chef-guard']['config']['customers']['demo2'] = {
# 'mailrecipient' => 'demo2@company.com',
# 'gitcookbookconfigs' => 'config1, config2'
#}