This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
default.rb
130 lines (104 loc) · 6.66 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Alfresco components that are not enabled by default:
# analytics - Alfresco Reporting and Analytics feature; enterprise-only
# aos - Alfresco Office Services (WARs); enterprise-only
# media - Alfresco media-management; enterprise-only
# rsyslog - Remote logging
# logstash-forwarder - Remote logging
#
# Default Alfresco components
#
default['alfresco']['components'] = %w(haproxy nginx tomcat transform repo share solr mysql rm googledocs yourkit)
# See .kitchen.yml
# default['alfresco']['s3_databag'] = ""
# default['alfresco']['s3_databag_item'] = ""
# default['alfresco']['hz_share_databag'] = ""
# default['alfresco']['hz_share_databag_item'] = ""
# default["alfresco"]["jmxremote_databag"] = "credentials"
# default["alfresco"]["jmxremote_databag_items"] = ["systemsmonitor", "systemscontrol"]
# default["alfresco"]["mailsmtp_databag"] = "credentials"
# default["alfresco"]["mailsmtp_databag_item"] = "outbound-email"
# TODO: - use this attribute for nossl and related attributes across chef-alfresco
default['alfresco']['ssl_enabled'] = true
default['alfresco']['db_ssl_enabled'] = false
default['alfresco']['use_libreoffice_os_repo'] = false
default['alfresco']['enable_tarpit'] = true
default['alfresco']['internal_hostname'] = '127.0.0.1'
default['alfresco']['internal_port'] = '9000'
default['alfresco']['internal_secure_port'] = '9001'
default['alfresco']['internal_portssl'] = '9443'
default['alfresco']['internal_protocol'] = 'http'
default['alfresco']['public_hostname'] = 'localhost'
default['alfresco']['public_port'] = '80'
default['alfresco']['public_portssl'] = '443'
default['alfresco']['public_protocol'] = 'https'
default['alfresco']['rmi_server_hostname'] = node['alfresco']['public_hostname']
# Alfresco version; you can use Enterprise versions, ie. '5.0.1'
default['alfresco']['groupId'] = 'org.alfresco'
default['alfresco']['version'] = '5.2.d'
default['alfresco']['edition'] = 'community'
default['alfresco']['home'] = '/usr/share/tomcat'
default['alfresco']['user'] = 'tomcat'
default['alfresco']['skip_certificate_creation'] = true
# Use log4j json as output
default['alfresco']['log.json.enabled'] = false
# Patch alfresco web.xml to disable SSL restrictions and use secureComms=none
default['alfresco']['enable.web.xml.nossl.patch'] = true
# Generates alfresco-global.properties using all node['alfresco']['properties'] key/value attributes
default['alfresco']['generate.global.properties'] = true
# Generates share-config-custom.xml using a pre-defined template (check templates/default) and configuring http endpoint and disabling CSRF
default['alfresco']['generate.share.config.custom'] = true
default['alfresco']['generate.solr.core.config'] = true
# Generates repo-log4j.properties using all node['alfresco']['repo-log4j'] key/value attributes
default['alfresco']['generate.repo.log4j.properties'] = true
# Patches an existing share-config-custom.xml using node['alfresco']['properties'] key/value attributes and replacing all @@key@@ occurrencies
# Note! To enable this, you must provide your own share-config-custom.xml in
# #{node['alfresco']['shared']}/classes/alfresco/web-extension/share-config-custom.xml
default['alfresco']['patch.share.config.custom'] = false
# License defaults
default['alfresco']['license_source'] = 'alfresco-license'
default['alfresco']['license_cookbook'] = 'alfresco'
# Using Alfresco Nexus public by default (in case databags aren't in place)
default['artifact-deployer']['maven']['repositories']['public']['url'] = 'https://artifacts.alfresco.com/nexus/content/groups/public'
# ImageMagick
default['alfresco']['install_imagemagick'] = true
# Since ImageMagic can cause a lot of dependancy problems, we try to use the OS provided package rather than installing it manually
default['alfresco']['use_imagemagick_os_repo'] = true
# The values below are only used in the case of use_imagemagick_os_repo==false, ignored otherwise
default['alfresco']['imagemagick_version'] = '6.9.5-9'
default['alfresco']['imagemagick_libs_name'] = "ImageMagick-libs-#{node['alfresco']['imagemagick_version']}.x86_64.rpm"
default['alfresco']['imagemagick_libs_url'] = "ftp://ftp.icm.edu.pl/vol/rzm4/ImageMagick/linux/CentOS/x86_64/#{node['alfresco']['imagemagick_libs_name']}"
default['alfresco']['imagemagick_name'] = "ImageMagick-#{node['alfresco']['imagemagick_version']}.x86_64.rpm"
default['alfresco']['imagemagick_url'] = "ftp://ftp.icm.edu.pl/vol/rzm4/ImageMagick/linux/CentOS/x86_64/#{node['alfresco']['imagemagick_name']}"
# default libreoffice_version for Alfresco 5.2
default['alfresco']['libreoffice_version'] = '5.2.1.2'
default['alfresco']['install_fonts'] = false
# swftools are no longer used in Alfresco 5.2
default['alfresco']['install_swftools'] = false
# Exclude chkfontpath due to unsatisfied dependency on xfs
default['alfresco']['exclude_font_packages'] = 'tv-fonts chkfontpath pagul-fonts\*'
default['logging']['log4j.rootLogger'] = 'warn, File'
# No need for console logs, just dump to file
# default['logging']['log4j.appender.Console'] = "org.apache.log4j.DailyRollingFileAppender"
# default['logging']['log4j.appender.Console.layout'] = "org.apache.log4j.PatternLayout"
# default['logging']['log4j.appender.Console.layout.ConversionPattern'] = "%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n"
# default['logging']['log4j.appender.Console.layout.ConversionPattern'] = "%d{ISO8601} %-5p [%c] %m%n"
default['logging']['log4j.appender.File'] = 'org.apache.log4j.DailyRollingFileAppender'
default['logging']['log4j.appender.File.Append'] = 'true'
default['logging']['log4j.appender.File.DatePattern'] = "'.'yyyy-MM-dd"
default['logging']['log4j.appender.File.layout'] = 'org.apache.log4j.PatternLayout'
default['logging']['log4j.appender.File.layout.ConversionPattern'] = '%d{ABSOLUTE} %-5p [%c] %m%n'
default['logging']['log4j.appender.File.File'] = '${logfilename}'
# DB params shared between client and server
default['alfresco']['db']['server_root_password'] = 'alfresco'
default['alfresco']['db']['root_user'] = 'root'
default['alfresco']['db']['allowed_host'] = '%'
# Alfresco services configuration
default['alfresco']['start_service'] = true
default['alfresco']['restart_services'] = []
default['alfresco']['restart_services'].push('tomcat-solr') if node['alfresco']['components'].include?('solr')
default['alfresco']['restart_services'].push('tomcat-alfresco') if node['alfresco']['components'].include?('repo')
default['alfresco']['restart_services'].push('tomcat-share') if node['alfresco']['components'].include?('share')
default['alfresco']['restart_services'].push('solr') if node['alfresco']['components'].include?('solr6')
default['alfresco']['restart_action'] = [:enable, :restart]
# Not needed on standard a installation, unless DB ssl or SOLR ssl is enabled
default['artifacts']['keystore']['enabled'] = false