-
Notifications
You must be signed in to change notification settings - Fork 43
/
default.rb
75 lines (65 loc) · 3.4 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
#
# Cookbook:: activemq
# Attributes:: default
#
# Copyright:: 2013-2019, Chef Software, Inc. <legal@chef.io>
#
# 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['push_jobs']['package_url'] = nil
default['push_jobs']['package_checksum'] = ''
default['push_jobs']['package_version'] = nil
default['push_jobs']['local_package_path'] = nil
default['push_jobs']['config']['template_cookbook'] = nil
default['push_jobs']['whitelist'] = { 'chef-client' => 'chef-client' }
default['push_jobs']['environment_variables'] = { 'LC_ALL' => 'en_US.UTF-8' }
# must be set to true in order to communicate with Push Jobs 1.X server
default['push_jobs']['allow_unencrypted'] = false
# These variables control whether we validate ssl
default['push_jobs']['chef']['verify_api_cert'] = true
default['push_jobs']['chef']['ssl_verify_mode'] = :verify_peer
# These can be overridden so that we can use chef_zero based installers to set up push
default['push_jobs']['chef']['chef_server_url'] = nil
default['push_jobs']['chef']['node_name'] = nil
# Show timestamps in log by default.
default['push_jobs']['chef']['include_timestamp'] = true
# Forward proxy configuration, url and optional user/pass for each http and https protocol
default['push_jobs']['proxy']['http']['url'] = nil
default['push_jobs']['proxy']['http']['user'] = nil
default['push_jobs']['proxy']['http']['pass'] = nil
default['push_jobs']['proxy']['https']['url'] = nil
default['push_jobs']['proxy']['https']['user'] = nil
default['push_jobs']['proxy']['https']['pass'] = nil
# Domains or suffixes to bypass proxy usage
default['push_jobs']['no_proxy'] = nil
case node['platform_family']
when 'debian', 'rhel', 'suse', 'amazon'
default['push_jobs']['init_style'] = nil # auto detect based on system
default['push_jobs']['service_name'] = 'chef-push-jobs-client'
default['push_jobs']['chef']['include_timestamp'] = false
default['push_jobs']['chef']['client_key_path'] = '/etc/chef/client.pem'
default['push_jobs']['chef']['trusted_certs_path'] = '/etc/chef/trusted_certs'
default['push_jobs']['chef']['install_path'] = nil
default['push_jobs']['chef']['exec_name'] = nil
default['push_jobs']['logging_dir'] = '/var/log/chef'
when 'windows'
default['push_jobs']['service_string'] = 'service[push-jobs-client]'
default['push_jobs']['logging_dir'] = nil
# default is this comes from url, but make it overrideable
default['push_jobs']['package_name'] = nil
default['push_jobs']['service_name'] = nil
default['push_jobs']['chef']['client_key_path'] = 'C:\chef\client.pem'
default['push_jobs']['chef']['trusted_certs_path'] = 'C:\chef\trusted_certs'
default['push_jobs']['logging_dir'] = 'C:\chef\log'
end
default['push_jobs']['logging_level'] = 'info'