Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit cba5f25

Browse files
committed
updates for ML9 - mostly new roxy version
1 parent 9392640 commit cba5f25

31 files changed

+6685
-343
lines changed

deploy/build.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ modules-prefix=/
3232
# the location of your marklogic configuration file
3333
#
3434
# config.file=${basedir}/deploy/ml-config.xml
35+
application-conf-file=
3536

3637
#
3738
# the location of your triggers configuration file
@@ -161,7 +162,7 @@ app-type=rest
161162
# The major version of MarkLogic server you are using
162163
# 6, 7, 8
163164
#
164-
server-version=8
165+
server-version=9
165166

166167
#
167168
# the location of your REST API options

deploy/default.properties

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ app-role=${app-name}-role
108108
content-db=${app-name}-content
109109
modules-db=${app-name}-modules
110110

111+
# Note: purely for legacy support!
112+
app-modules-db=${modules-db}
113+
111114
#
112115
# Number of forests to create per host in the group for the content-db
113116
#
@@ -193,6 +196,12 @@ install-xcc=true
193196
#
194197
use-https=false
195198

199+
#
200+
# set this to true if you are accessing your rest server through
201+
# a proxy that uses https (but your rest server does not)
202+
#
203+
use-https-for-rest=false
204+
196205
## Security
197206
#
198207
# The authentication used for your appserver
@@ -210,13 +219,16 @@ ssl-certificate-template=
210219
#
211220
# The default values point to Roxy file
212221
#
213-
# url-rewriter=/roxy/rewrite.xqy
214-
# error-handler=/roxy/error.xqy
222+
url-rewriter=/roxy/rewrite.xqy
223+
error-handler=/roxy/error.xqy
215224
rewrite-resolves-globally=
216225

217226
# Environments recognized by Roxy
218227
environments=local,dev,prod
219228

229+
# Environments that can be wiped without confirmation
230+
wipe_environments=local
231+
220232
#
221233
# The Major version of ML server across your environments (6, 7, or 8). You can override
222234
# this value in build.properties if all of your servers are the same version
@@ -260,3 +272,19 @@ http.retry-count=3
260272
http.open-timeout=5
261273
http.read-timeout=300
262274
http.retry-delay=15
275+
276+
#
277+
# Application configuration files
278+
#
279+
application-conf-file=src/app/config/config.xqy
280+
281+
# Verified restart config
282+
#
283+
verify_retry_max=5
284+
verify_retry_interval=10
285+
286+
#
287+
# CPF Pipeline configuration file
288+
#
289+
# can be overridden from {env}.properties
290+
pipeline-config-file=${basedir}/deploy/pipeline-config.xml

deploy/lib/Help.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,14 @@ def self.restart
213213
214214
General options:
215215
-v, [--verbose] # Verbose output
216+
--no-verify # Skip verifying the restart
217+
--legacy # Don't use Management REST api
216218
217219
Restart the MarkLogic process in the given environment on each host in the
218220
specified group. If no group is specified, restart the MarkLogic process
219221
on each host in the group to which the target host belongs. Use 'cluster'
220-
to restart all hosts within the cluster to which the target belongs.
222+
to restart all hosts within the cluster to which the target belongs. Restart
223+
is verified by default, Management REST api is used if available.
221224
DOC
222225
end
223226

deploy/lib/MLClient.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def MLClient.no_prompt=(no_prompt)
2828

2929
def initialize(options)
3030
@ml_username = options[:user_name]
31-
@ml_password = options[:password].xquery_unsafe
31+
@ml_password = options[:password]
3232
@logger = options[:logger] || logger
3333
@request = {}
3434

@@ -88,13 +88,15 @@ def build_request_params(url, verb)
8888
}
8989
end
9090

91-
def go(url, verb, headers = {}, params = nil, body = nil, xcc = false)
91+
def go(url, verb, headers = nil, params = nil, body = nil, xcc = false)
9292
logger.debug(%Q{[#{verb.upcase}]\t#{url}})
9393
password_prompt
9494
request_params = build_request_params(url, verb)
9595
# configure headers
96-
headers.each do |k, v|
97-
request_params[:request][k] = v
96+
if headers
97+
headers.each do |k, v|
98+
request_params[:request][k] = v
99+
end
98100
end
99101

100102
raise ExitException.new("Don't combine params and body. One or the other please") if (params && body)
295 KB
Binary file not shown.

deploy/lib/java/xstream-1.4.10.jar

576 KB
Binary file not shown.

deploy/lib/ml.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ def need_help?
154154
if need_help? && Help.respond_to?(command)
155155
Help.doHelp(@logger, command)
156156
break
157-
elsif command.start_with?("--ml.")
158-
break
159157
elsif ServerConfig.instance_methods.include?(command.to_sym) || ServerConfig.instance_methods.include?(command)
160158
raise HelpException.new(command, "Missing environment for #{command}") if @properties["environment"].nil?
161159
raise ExitException.new("Missing ml-config.xml file. Check config.file property") if @properties["ml.config.file"].nil?

0 commit comments

Comments
 (0)