-
Notifications
You must be signed in to change notification settings - Fork 69
/
template.yaml
74 lines (66 loc) · 3.42 KB
/
template.yaml
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
###############################################################################
# Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors
#
# SPDX-License-Identifier: Apache-2.0
#
# 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.
#
###############################################################################
alias: sag-spm-boot-winrm
description: WinRM-enabled remote installation using CC bootstrap installer
#dslVersion: 1.1
version: 0.1
environments:
default:
# REQUIRED
nodes: ${} # Remote hostnames to bootstrap, e.g ["host1","host2"]
cc.installer: ${} # Command Central bootstrap installer for Windows, e.g. cc-def-10.2-fix1-w64.zip
os.username: changeme # Remote connection user account username
os.password: changeme # Remove connection user account password
os.base64credentials: changeme # Remote connection credentials in form user:pass base64 encoded
# OPTIONAL
install.dir: C:\SoftwareAG # Remote installation directory
spm.port: 8092 # SPM HTTP port
spm.secure.port: 8093 # SPM HTTPS port
os.temp.dir: C:\Windows\Temp # %TEMP% folder on the remote machine
skip.nodes.validation: true
actions:
bootstrap.bat:
target: WINDOWS
description: Bootstrap SPM on remote Windows hosts from Command Central Windows host
phase: pre
script: |
powershell.exe -command ${com.softwareag.install.root}\profiles\CCE\data\templates\composite\sag-spm-boot-winrm\push-bootstrap.ps1 -Computername '${nodes}' -RemoteTempPath ${os.temp.dir} -LocalInstaller ${com.softwareag.install.root}\profiles\CCE\data\installers\${cc.installer} -RemoteInstallPath ${install.dir} -HttpPort ${spm.port} -HttpsPort ${spm.secure.port} -AcceptLicense -PlainCredentials ${os.username}:${os.password} -Base64Credentials ${os.base64credentials}
bootstrap.sh:
target: POSIX
description: Bootstrap SPM on remote Windows hosts from Command Central Linux/Mac host
phase: pre
script: |
pwsh -f ${com.softwareag.install.root}/profiles/CCE/data/templates/composite/sag-spm-boot-winrm/push-bootstrap.ps1 -Computername '${nodes}' -RemoteTempPath ${os.temp.dir} -LocalInstaller ${com.softwareag.install.root}/profiles/CCE/data/installers/${cc.installer} -RemoteInstallPath ${install.dir} -HttpPort ${spm.port} -HttpsPort ${spm.secure.port} -AcceptLicense -PlainCredentials ${os.username}:${os.password} -Base64Credentials ${os.base64credentials}
layers:
infra:
templates:
- spm
templates:
spm:
products:
SPM:
OSGI-SPM: # REQUIRED for registering OSGI-SPM as infrastructure layer instance
provision:
default:
infra: ${nodes}
nodes:
default:
default:
port: ${spm.port}
secure: false # always start with HTTP