├── .env ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── environments ├── db2 │ └── env.properties ├── dev │ └── env.properties ├── devcc │ └── env.properties ├── mysql │ └── env.properties ├── oracle │ └── env.properties ├── prod │ └── env.properties └── sqlserver │ └── env.properties ├── licenses ├── licenses.zip ├── licenses.zip.enc └── product_licenses.zip.enc ├── scripts ├── cleanup.sh ├── entrypoint.sh ├── generateAsset.sh ├── init.sh ├── inventory.sh └── provision.sh └── templates ├── hello-world ├── README.md └── template.yaml ├── import.bat ├── import.sh ├── jenkins ├── env.properties ├── provision.xml ├── template.yaml ├── test.xml └── webapps │ └── context-jenkins.properties ├── sag-abe ├── template.yaml └── test.sh ├── sag-apigateway-cluster ├── README.md ├── template.yaml └── test.sh ├── sag-apigateway-config ├── README.md └── template.yaml ├── sag-apigateway-server ├── README.md ├── template.yaml └── test.sh ├── sag-cc-all-layer-defs ├── README.md └── template.yaml ├── sag-cc-builder-dev ├── README.md ├── template.yaml └── test.xml ├── sag-cc-builder-repos ├── README.md └── template.yaml ├── sag-cc-creds-dev ├── README.md ├── template.yaml └── test.xml ├── sag-cc-creds-ssh ├── README.md ├── template.yaml └── test.xml ├── sag-cc-creds ├── README.md └── template.yaml ├── sag-cc-layer-defs ├── README.md └── template.yaml ├── sag-cc-ldap ├── README.md └── template.yaml ├── sag-cc-mirrors ├── README.md └── template.yaml ├── sag-cc-repo-custom ├── README.md ├── template.yaml └── test.xml ├── sag-cc-repos-asset ├── README.md └── template.yaml ├── sag-cc-repos-dev ├── README.md └── template.yaml ├── sag-cc-repos-ga ├── README.md └── template.yaml ├── sag-cc-repos ├── README.md ├── env.properties ├── template.yaml └── test.xml ├── sag-cc-secure ├── README.md └── template.yaml ├── sag-cc-tuneup ├── README.md ├── template.yaml └── test.xml ├── sag-db-db2 ├── Dockerfile ├── README.md ├── docker-compose.yml ├── init_db2.sh ├── template.yaml └── test.sh ├── sag-db-mysql-103 ├── README.md ├── docker-compose.yml ├── mysql-connector-java-5.1.47.jar ├── mysql.cnf ├── template.yaml └── test.sh ├── sag-db-mysql ├── README.md ├── docker-compose.yml ├── mysql-connector-java-5.1.47.jar ├── mysql.cnf ├── template.yaml └── test.sh ├── sag-db-oracle-103-and-lower ├── README.md ├── docker-compose.yml ├── template.yaml └── test.sh ├── sag-db-oracle ├── README.md ├── docker-compose.yml ├── template.yaml └── test.sh ├── sag-db-sqlserver-103-and-lower ├── README.md ├── docker-compose.yml ├── template.yaml └── test.sh ├── sag-db-sqlserver-is-schemas ├── README.md ├── docker-compose.yml ├── template.yaml └── test.sh ├── sag-db-sqlserver ├── README.md ├── docker-compose.yml ├── template.yaml └── test.sh ├── sag-des-config ├── README.md └── template.yaml ├── sag-des ├── README.md ├── template.yaml └── test.sh ├── sag-designer-applatform ├── README.md └── template.yaml ├── sag-designer-cloudstreams ├── README.md └── template.yaml ├── sag-designer-services ├── README.md └── template.yaml ├── sag-exx-broker-attr ├── README.md └── template.yaml ├── sag-exx-broker ├── README.md └── template.yaml ├── sag-exx-c-rpc-server ├── README.md └── template.yaml ├── sag-exx-csl-rpc-server ├── README.md └── template.yaml ├── sag-exx-ims-rpc-server ├── README.md └── template.yaml ├── sag-exx-java-rpc-server-config ├── README.md └── template.yaml ├── sag-exx-java-rpc-server ├── Readme.md └── template.yaml ├── sag-exx-mf-broker ├── README.md └── template.yaml ├── sag-exx-mq-rpc-server ├── README.md └── template.yaml ├── sag-exx-net-rpc-server ├── README.md └── template.yaml ├── sag-exx-xml-rpc-server ├── Readme.md └── template.yaml ├── sag-infradc ├── readme.md └── template.yaml ├── sag-internaldatastore ├── README.md ├── template.yaml └── test.sh ├── sag-is-activetransfer └── template.yaml ├── sag-is-applatform ├── README.md └── template.yaml ├── sag-is-cloudstreams ├── README.md ├── template.yaml └── test.sh ├── sag-is-cluster ├── README.md ├── template.yaml └── test.sh ├── sag-is-config ├── README.md └── template.yaml ├── sag-is-mft ├── README.md ├── template.yaml └── test.sh ├── sag-is-server ├── README.md ├── template.yaml └── test.sh ├── sag-is-stateful-cluster ├── README.md ├── template.yaml └── test.sh ├── sag-mft-config ├── README.md ├── template.yaml └── test.sh ├── sag-msc-server-103-and-lower ├── README.md ├── template.yaml └── test.sh ├── sag-msc-server ├── README.md ├── template.yaml └── test.sh ├── sag-mws-applatform ├── README.md └── template.yaml ├── sag-mws-infradcui ├── README.md └── template.yaml ├── sag-mws-mftui ├── README.md ├── template.yaml └── test.sh ├── sag-mws-server ├── README.md └── template.yaml ├── sag-ninja-cluster └── template.yaml ├── sag-ninja-server ├── Dockerfile ├── README.md ├── docker-compose.yml ├── entrypoint.sh ├── template.yaml └── test.sh ├── sag-onedata └── template.yaml ├── sag-optimize-analysis ├── README.md ├── template.yaml └── test.sh ├── sag-optimize-wsdc ├── README.md ├── template.yaml └── test.sh ├── sag-spm-boot-local ├── README.md ├── env.properties └── template.yaml ├── sag-spm-boot-ssh ├── README.md ├── env.properties └── template.yaml ├── sag-spm-boot-winrm ├── README.md ├── push-bootstrap.ps1 └── template.yaml ├── sag-spm-config ├── README.md ├── template.yaml ├── test.properties └── test.sh ├── sag-spm-connect ├── README.md ├── docker-compose.yml ├── env.properties ├── template.yaml └── test.sh ├── sag-spm-proxy ├── README.md └── template.yaml ├── sag-tc-cluster └── template.yaml ├── sag-tc-server ├── README.md ├── template.yaml └── test.sh ├── sag-tdb-server └── template.yaml ├── sag-um-cluster-migrate ├── README.md └── template.yaml ├── sag-um-cluster ├── README.md ├── template.yaml └── test.sh ├── sag-um-config-join ├── README.md └── template.yaml ├── sag-um-config └── template.yaml ├── sag-um-server-migrate ├── README.md └── template.yaml ├── sag-um-server ├── README.md ├── template.yaml └── test.sh └── sag-update └── template.yaml /.env: -------------------------------------------------------------------------------- 1 | # Target Docker registry/org 2 | REG=softwareag 3 | # Target release tag 4 | TAG=10.3 5 | 6 | # Docker registry/org with CC images 7 | CC_REG=store/softwareag 8 | # CC images release tag 9 | CC_TAG=10.3 10 | 11 | # Default CC server address for CLI tools 12 | CC_SERVER=https://cc:8091 13 | # Default timeout (seconds) for CLI tools 14 | CC_WAIT=3600 15 | CC_PASSWORD=manage 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/* 2 | templates/jenkins/webapps/*.war 3 | /.project 4 | **/*.ascii 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please see [Contributing section on wiki](https://github.com/SoftwareAG/sagdevops-templates/wiki/Contributing) -------------------------------------------------------------------------------- /environments/db2/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | # properties for local development/testing on TRUNK 20 | db.host=db2 21 | db.admin.username=DB2INST1 22 | db.admin.password=manage 23 | db.username=webm 24 | db.password=manage 25 | db.name=webm 26 | db.url="jdbc:wm:db2://db2:50000;databaseName=WEBM" 27 | db.tablespace.dir="home/EUR/bpas/yana/db2" 28 | db.type=db2luw 29 | db.fixes=[] 30 | opt.fixes=[] 31 | #db.STR.components=[] 32 | 33 | -------------------------------------------------------------------------------- /environments/dev/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | # properties for local development/testing on TRUNK 20 | 21 | db.host=oracle 22 | um.fixes=[] 23 | um.url=nsp://localhost:9000 24 | tc.fixes=[] 25 | is.fixes=[] 26 | is.um.url=nsp://localhost:9000 27 | des.fixes=[] 28 | des.um.url=nsp://localhost:9000 29 | abe.fixes=[] 30 | designer.fixes=[] 31 | cst.fixes=[] 32 | exx.broker.fixes=[] 33 | exx.server.fixes=[] 34 | infradc.jms.host=localhost 35 | infradc.fixes=[] 36 | mws.infradcui.fixes=[] 37 | agw.fixes=[] 38 | ids.fixes=[] 39 | db.fixes=[] 40 | 41 | cc.installer=cc-def-10.4-fix2-lnxamd64.sh 42 | os.credentials.key=NONE 43 | -------------------------------------------------------------------------------- /environments/devcc/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | mirror.repo.product=products 21 | mirror.repo.fix=fixes 22 | # mirror only specific product ids 23 | mirror.products=NUMRealmServer 24 | # mirror specific platforms 25 | # mirror.platforms=LNXAMD64 26 | # installers=cc-def-10.1-fix15-lnxamd64,cc-def-10.3-fix6-lnxamd64,cc-def-10.4-fix1-lnxamd64 27 | release=10.4 28 | -------------------------------------------------------------------------------- /environments/mysql/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | # properties for local development/testing on TRUNK 20 | 21 | db.host=mysql 22 | db.type=mysql 23 | db.TYPE=MYSQL 24 | db.username=webm 25 | db.password=webm 26 | db.name=webm 27 | db.admin.url="jdbc:mysql://mysql:3306" 28 | db.url="jdbc:mysql://mysql:3306/webm" 29 | db.admin.password=root 30 | db.admin.username=root 31 | 32 | db.fixes=[] 33 | um.fixes=[] 34 | um.url=nsp://localhost:9000 35 | tc.fixes=[] 36 | is.fixes=[] 37 | is.um.url=nsp://localhost:9000 38 | des.fixes=[] 39 | des.um.url=nsp://localhost:9000 40 | cst.fixes=[] 41 | infradc.jms.host=localhost 42 | infradc.fixes=[] 43 | mws.infradcui.fixes=[] 44 | -------------------------------------------------------------------------------- /environments/oracle/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | # properties for local development/testing on TRUNK 20 | 21 | db.host=oracle 22 | db.type=oracle # for instance API db.type parameter 23 | db.TYPE=ORACLE # for COMMON-JDBC pool defs 24 | db.username=webm 25 | db.password=webm 26 | db.name=webm 27 | db.url="jdbc:wm:oracle://oracle:1521;SID=XE" 28 | 29 | db.fixes=[] 30 | um.fixes=[] 31 | um.url=nsp://localhost:9000 32 | tc.fixes=[] 33 | is.fixes=[] 34 | is.um.url=nsp://localhost:9000 35 | des.fixes=[] 36 | des.um.url=nsp://localhost:9000 37 | cst.fixes=[] 38 | infradc.jms.host=localhost 39 | infradc.fixes=[] 40 | mws.infradcui.fixes=[] 41 | -------------------------------------------------------------------------------- /environments/prod/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | # Properties for production testing for GA versions with fixes 20 | 21 | um.fixes=ALL 22 | um.url=nsp://localhost:9000 23 | tc.fixes=ALL 24 | is.fixes=ALL 25 | is.um.url=nsp://localhost:9000 26 | des.fixes=ALL 27 | des.um.url=nsp://localhost:9000 28 | abe.fixes=ALL 29 | designer.fixes=ALL 30 | cst.fixes=ALL 31 | exx.broker.fixes=ALL 32 | exx.server.fixes=ALL 33 | infradc.jms.host=localhost 34 | infradc.fixes=ALL 35 | mws.infradcui.fixes=ALL 36 | -------------------------------------------------------------------------------- /environments/sqlserver/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | # properties for local development/testing on TRUNK 20 | 21 | db.host=sqlserver 22 | db.type=sqlserver # for instance db.type 23 | db.TYPE=SQLSERVER # for COMMON-JDBC type 24 | db.username=webm 25 | db.password=webm 26 | db.name=webm 27 | db.url="jdbc:wm:sqlserver://sqlserver:1433;databaseName=webm" 28 | db.admin.password=MaNaGe123 29 | 30 | db.fixes=[] 31 | um.fixes=[] 32 | um.url=nsp://localhost:9000 33 | tc.fixes=[] 34 | is.fixes=[] 35 | is.um.url=nsp://localhost:9000 36 | des.fixes=[] 37 | des.um.url=nsp://localhost:9000 38 | cst.fixes=[] 39 | infradc.jms.host=localhost 40 | infradc.fixes=[] 41 | mws.infradcui.fixes=[] 42 | mws.applatform.fixes=[] 43 | -------------------------------------------------------------------------------- /licenses/licenses.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/licenses/licenses.zip -------------------------------------------------------------------------------- /licenses/licenses.zip.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/licenses/licenses.zip.enc -------------------------------------------------------------------------------- /licenses/product_licenses.zip.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/licenses/product_licenses.zip.enc -------------------------------------------------------------------------------- /scripts/cleanup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #******************************************************************************* 3 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | echo "Cleaning up $SAG_HOME ..." 22 | cd $SAG_HOME 23 | 24 | echo 'Disk usage before cleaning:' 25 | du -h -d 2 26 | 27 | echo "Removing Update Manager but keep metadata (SAGUpdateManager/UpdateManager/profile/p2) ..." 28 | cd SAGUpdateManager && rm -rf bin jvm logs osgi && \ 29 | cd UpdateManager && rm -rf bootstrap conf logs readme repository workdata restart_script && \ 30 | cd profile && rm -rf *.xml *.ini configuration plugins && \ 31 | cd $SAG_HOME 32 | 33 | echo "Removing Installer but keep install/products metadata ..." 34 | rm -fr install/repo install/logs install/jars install/bpms install/etc 35 | rm -f sagProducts.xml sagMetadata.xml p2.index 36 | 37 | echo "Removing Licenses and doc ..." 38 | rm -fr Licenses/ _documentation/ 39 | 40 | echo "Removing log files ..." 41 | rm -f `find ./ -name *.log` 42 | 43 | echo "Removing Common ..." 44 | # rm -rf common/db/ 45 | # rm -rf common/runtime/install/ 46 | # rm -rf common/runtime/agent/ 47 | 48 | echo "Removing Java ..." 49 | rm -fr jvm/ 50 | 51 | echo 'Disk usage after cleaning:' 52 | du -h -d 2 53 | -------------------------------------------------------------------------------- /scripts/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/scripts/entrypoint.sh -------------------------------------------------------------------------------- /scripts/inventory.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/scripts/inventory.sh -------------------------------------------------------------------------------- /templates/hello-world/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Hello world 21 | 22 | Use this template to confirm you can run and test templates in your development environment. 23 | 24 | ## Requirements 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.3 and higher 29 | 30 | ### Supported platforms 31 | 32 | All supported Windows and UNIX platforms. 33 | 34 | ## Testing the template 35 | 36 | See [Testing existing templates](https://github.com/SoftwareAG/sagdevops-templates/wiki/Testing-existing-templates) 37 | 38 | Run provision wrapper script from the root of the project: 39 | 40 | ```bash 41 | ./provisionw hello-world 42 | ``` 43 | 44 | Notice the log output includes a line that looks like this: 45 | 46 | ```bash 47 | 2018/09/21 20:32:23 INFO #119 hello: exit code: 0 std out: ************** Hello World! *************** 48 | ``` 49 | 50 | Run provision wrapper and pass a parameter: 51 | 52 | ```bash 53 | ./provisionw hello-world hello.name=There 54 | ``` 55 | 56 | Notice the log ouput changes: 57 | 58 | ```bash 59 | 2018/09/21 20:32:23 INFO #119 hello: exit code: 0 std out: ************** Hello There! *************** 60 | ``` 61 | 62 | ## Applying the template 63 | 64 | See [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli) 65 | -------------------------------------------------------------------------------- /templates/hello-world/template.yaml: -------------------------------------------------------------------------------- 1 | alias: hello-world 2 | 3 | environments: 4 | default: 5 | hello.name: World 6 | actions: 7 | hello: 8 | script: echo "************** Hello ${hello.name}! ***************" 9 | -------------------------------------------------------------------------------- /templates/import.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | WHERE sagcc >nul 2>nul 4 | IF %ERRORLEVEL% NEQ 0 ECHO Error: sagcc is not installed. 5 | 6 | set template=template.yaml 7 | for /D %%D in (*) do ( 8 | ECHO "Uploading %%D\%template%" 9 | cmd /c sagcc exec templates composite import -i %%D\%template% overwrite=true 10 | ) 11 | 12 | ECHO "Register layer definitions" 13 | cmd /c sagcc exec templates composite apply sag-cc-layer-defs --wait-for-cc 120 --sync-job -w 3600 14 | 15 | 16 | -------------------------------------------------------------------------------- /templates/import.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if ! [ -x "$(command -v sagcc)" ]; then 4 | echo "Error: sagcc is not installed." >&2 5 | exit 1 6 | fi 7 | 8 | template=template.yaml; 9 | for dir in */ ; do 10 | if [[ -d "$dir" && ! -L "$dir" ]]; then 11 | template_path=$dir$template; 12 | echo "Importing $template_path"; 13 | sagcc exec templates composite import -i $template_path overwrite=true 14 | fi; 15 | done 16 | 17 | echo "Register layer definitions" 18 | sagcc exec templates composite apply sag-cc-layer-defs --wait-for-cc 120 --sync-job -w 3600 19 | 20 | -------------------------------------------------------------------------------- /templates/jenkins/env.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/jenkins/env.properties -------------------------------------------------------------------------------- /templates/jenkins/provision.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | Downloading Jenkins from ${jenkins.download.url} ... 25 | 26 | 27 | 28 | 29 | Waiting for Jenkins intialization 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | Jenkins Administrator password: ${jenkins.admin.password} 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /templates/jenkins/test.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /templates/jenkins/webapps/context-jenkins.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/jenkins/webapps/context-jenkins.properties -------------------------------------------------------------------------------- /templates/sag-abe/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-abe 20 | description: Software AG Asset Build Environment 21 | 22 | environments: 23 | default: 24 | abe.fixes: ALL 25 | 26 | layers: 27 | tools: 28 | productRepo: ${repo.product} 29 | fixRepo: ${repo.fix} 30 | templates: 31 | - abe 32 | 33 | templates: 34 | abe: 35 | fixes: ${abe.fixes} 36 | products: 37 | CLI: 38 | acdl: 39 | 40 | provision: 41 | default: 42 | tools: ${nodes} 43 | -------------------------------------------------------------------------------- /templates/sag-abe/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-abe/test.sh -------------------------------------------------------------------------------- /templates/sag-apigateway-cluster/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-apigateway-cluster/test.sh -------------------------------------------------------------------------------- /templates/sag-apigateway-server/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | # if managed image 22 | if [ -d $SAG_HOME/profiles/SPM ] ; then 23 | # point to local SPM 24 | export CC_SERVER=http://localhost:8092/spm 25 | export __is_instance_name=${__is_instance_name:-apigateway} 26 | 27 | echo "Verifying managed container $CC_SERVER ..." 28 | sagcc get inventory products -e integrationServer --wait-for-cc 29 | sagcc get inventory products -e YAI --wait-for-cc 30 | 31 | 32 | export CC_WAIT=180 33 | 34 | echo "Verifying fixes ..." 35 | sagcc get inventory fixes 36 | # -e wMFix.integrationServer.Core 37 | 38 | echo "Verifying instances ..." 39 | sagcc get inventory components -e "OSGI-IS_${__is_instance_name}" 40 | 41 | echo "Start the instance ..." 42 | sagcc exec lifecycle components "OSGI-IS_${__is_instance_name}" start -e DONE --sync-job 43 | 44 | echo "Verifying status ..." 45 | sagcc get monitoring runtimestatus "OSGI-IS_${__is_instance_name}" -e ONLINE 46 | sagcc get monitoring runtimestatus "integrationServer-${__is_instance_name}" -e ONLINE 47 | 48 | echo "Verifying configs ..." 49 | sagcc get configuration data "OSGI-IS_${__is_instance_name}" COMMON-JVM-OPTIONS -f text -e gc_agw.log 50 | 51 | fi 52 | 53 | echo "Verifying product runtime ..." 54 | echo "Verifying IS..." 55 | curl -u Administrator:manage -s http://`hostname`:5555/ 56 | echo "Verifying API GATEWAY..." 57 | curl -u Administrator:manage -s http://`hostname`:9072/ 58 | echo "DONE testing" 59 | -------------------------------------------------------------------------------- /templates/sag-cc-all-layer-defs/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Command Central Layer Type Definitions 21 | 22 | Creates configuration instances of layer type definitions that you use when defining layers in a Software AG product stack. 23 | 24 | ## Requirements 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 and higher 29 | 30 | ### Supported platforms 31 | 32 | All supported Windows and UNIX platforms. 33 | 34 | ## Running as a standalone composite template 35 | 36 | To create configuration instances of the layer definitions defined in the template: 37 | 38 | ```bash 39 | sagcc exec templates composite apply sag-cc-all-layer-defs --sync-job -- wait 360 40 | ``` 41 | 42 | > IMPORTANT: If you use Command Central 10.1 you have to monitor the job completion with a separate command, instead of the `--sync-job` option: 43 | 44 | ```bash 45 | sagcc list jobmanager jobs --wait 360 -e DONE 46 | ``` -------------------------------------------------------------------------------- /templates/sag-cc-builder-dev/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Internal Repositories for the Command Central Docker Builder 20 | 21 | Use this template to add internal product, fix, and asset repositories (located inside the Software AG network) to use with the Command Central Docker builder when building images for internal development or testing. 22 | 23 | ## Requirements 24 | 25 | None. 26 | 27 | ### Supported Software AG releases 28 | 29 | * Command Central 10.1 and higher 30 | 31 | ### Supported platforms 32 | 33 | All supported Windows and UNIX platforms. 34 | 35 | ## Running as a standalone composite template 36 | 37 | To add internal product, fix, and asset repositories to use with Command Central Docker builder: 38 | 39 | ```bash 40 | sagcc exec templates composite apply sag-cc-builder-dev --sync-job --wait 360 41 | ``` 42 | -------------------------------------------------------------------------------- /templates/sag-cc-builder-dev/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-builder-dev 20 | description: Product, fix and asset repos 21 | version: 10.3 22 | 23 | environments: 24 | default: 25 | repo.product: 103oct2018_SIC # product repo 26 | repo.fix: GA_Fix_Repo_WM # fix repo 27 | repo.asset.url: http://irepo.eur.ad.sag/scm/devops/assets-repo.git # asset repo URL 28 | 29 | repo.host: aquarius-eu.infra.webmethods.io # closest AQU server mirror host 30 | repo.product.host: ${repo.host} 31 | repo.fix.host: aquarius-eu.infra.webmethods.io 32 | 33 | repositories: 34 | product: 35 | products: 36 | description: Products mirror 37 | host: ${repo.product.host} 38 | name: ${repo.product} 39 | credentials: REPO-PRODUCT 40 | 41 | fix: 42 | fixes: 43 | description: Fixes mirror 44 | host: ${repo.fix.host} 45 | name: ${repo.fix} 46 | credentials: REPO-FIX 47 | 48 | asset: 49 | assets: 50 | type: git 51 | description: Sample assets 52 | location: ${repo.asset.url} 53 | credentials: NONE 54 | -------------------------------------------------------------------------------- /templates/sag-cc-builder-dev/test.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /templates/sag-cc-builder-repos/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Software AG Repositories for the Command Central Docker Builder 21 | 22 | Use this template to add public Software AG product and fix repositories to use with the Command Central Docker builder. 23 | 24 | ## Requirements 25 | 26 | Create Empower credentials by running the sag-cc-creds template: 27 | 28 | ```bash 29 | sagcc exec templates composite apply sag-cc-creds \ 30 | credentials.username=yourusername \ 31 | credentials.password=yourpassword \ 32 | credentials.key=EMPOWER \ 33 | --sync-job --wait 360 34 | ``` 35 | 36 | For more information, see [sag-cc-creds](https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-cc-creds). 37 | 38 | ### Supported Software AG releases 39 | 40 | * Command Central 10.1 and higher 41 | 42 | ### Supported platforms 43 | 44 | All supported Windows and UNIX platforms. 45 | 46 | ## Running as a standalone composite template 47 | 48 | To add Software AG repositories to use with the Command Central Docker builder: 49 | 50 | ```bash 51 | sagcc exec templates composite apply sag-cc-builder-repos \ 52 | repo.product.url=https://sdc.softwareag.com/dataservewebM103/repository \ 53 | repo.product.credentials.key=EMPOWER \ 54 | repo.product.name=webM103 \ 55 | repo.fix.url=https://sdc.softwareag.com/updates/prodRepo \ 56 | repo.fix.credentials.key=EMPOWER \ 57 | repo.fix.name=fixRepo103 \ 58 | --sync-job --wait 360 59 | ``` 60 | 61 | -------------------------------------------------------------------------------- /templates/sag-cc-builder-repos/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-builder-repos 20 | description: Register products and fixes repos 21 | 22 | environments: 23 | default: 24 | repo.product.url: ${} 25 | repo.product.credentials.key: ${} 26 | repo.product.name: ${} 27 | repo.fix.url: ${} 28 | repo.fix.credentials.key: ${} 29 | repo.fix.name: ${} 30 | 31 | repositories: 32 | product: 33 | "${repo.product.name}": 34 | location: ${repo.product.url} 35 | credentials: ${repo.product.credentials.key} 36 | 37 | fix: 38 | "${repo.fix.name}": 39 | location: ${repo.fix.url} 40 | credentials: ${repo.fix.credentials.key} 41 | -------------------------------------------------------------------------------- /templates/sag-cc-creds-dev/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central credential keys configuration examples 20 | 21 | Use this template to configure credentials for accessing repositories and remote hosts. The following authentication types are available: 22 | 23 | * Basic username/password authentication type. 24 | * SSH private key authentication type. Note that Command Central supports only the PKCS #1 definition of the ASN.1 syntax for representing the SSH private keys. 25 | * Encrypted passwords. 26 | 27 | ## Requirements 28 | 29 | ### Supported Software AG releases 30 | 31 | * Command Central 10.1 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ## Running as a standalone composite template 38 | 39 | Configure credentials: 40 | 41 | ```bash 42 | sagcc exec templates composite apply sag-cc-creds-dev cc.password=mycustompass --sync-job --wait 20 -c 5 43 | ``` 44 | 45 | ## Encrypting passwords 46 | 47 | Run the 'sagcc exec security encrypt' command in the Command Central CLI specifying the password to encrypt. Use the encrypted password value that the CLI returns. 48 | 49 | Alternatively, in the Command Central web user interface: 50 | 1. Navigate to CCE > Command Central > Configurations > Credentials. 51 | 2. Click the **+** icon and select **Username and password** type from the menu. 52 | 3. Fill in the required fields, including password and save the configuration. 53 | 4. Click on the newly created configuration and click **Export**. 54 | 5. Use the encrypted value of the `Password:` property. 55 | 56 | The encrypted password can be stored in a YAML file, or a properties file and added to a version control system. 57 | -------------------------------------------------------------------------------- /templates/sag-cc-creds-dev/test.xml: -------------------------------------------------------------------------------- 1 | 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 | -------------------------------------------------------------------------------- /templates/sag-cc-creds-ssh/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central credentials for SSH public key authentication 20 | 21 | Use this template to configure the credentials alias for SSH public key authentication 22 | that Command Central uses when accessing remote hosts. 23 | 24 | ## Requirements 25 | 26 | None. 27 | 28 | ### Supported Software AG releases 29 | 30 | * Command Central 10.1 and higher 31 | 32 | ### Supported platforms 33 | 34 | All supported Windows and UNIX platforms. 35 | 36 | ## Running as a standalone composite template 37 | 38 | To configure the SSH credentials and set the SSH credentials alias: 39 | 40 | ```bash 41 | sagcc exec templates composite apply sag-cc-creds-ssh \ 42 | ssh.credentials.alias=mysshkey \ 43 | ssh.credentials.username=mysshuser \ 44 | ssh.credentials.key.path=/home/user/id_rsa \ 45 | ssh.credentials.key.password=mysshkeypassword \ 46 | --sync-job --wait 20 -c 5 47 | ``` 48 | 49 | ## Encrypting passwords 50 | 51 | * Open the Command Central web user interface. 52 | * Navigate to CCE > Command Central > Configurations > Credentials. 53 | * Click the **+** icon and select the **Username and password** type from the menu. 54 | * Fill in the required fields, including the password and save the configuration. 55 | * Click the alias of the new configuration and then **Export**. 56 | * Use the encrypted value of the `Password:` property. 57 | 58 | Store the encrypted password in a YAML or properties file, which you can add to a version control system. -------------------------------------------------------------------------------- /templates/sag-cc-creds-ssh/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-creds-ssh 20 | description: SSH credentials 21 | version: 10.2 22 | 23 | environments: 24 | default: 25 | ssh.credentials.alias: sshkey 26 | ssh.credentials.username: ${} # REQUIRED, username 27 | ssh.credentials.key.path: ${} # REQUIRED, key file path 28 | ssh.credentials.key.password: "" 29 | 30 | layers: 31 | cce: 32 | templates: 33 | - creds 34 | 35 | templates: 36 | creds: 37 | products: 38 | CCE: 39 | default: 40 | configuration: 41 | OSGI-CCE-ENGINE: 42 | COMMON-CREDENTIALS: 43 | COMMON-CREDENTIALS-${ssh.credentials.alias}: 44 | '@alias': ${ssh.credentials.alias} 45 | AuthenticationType: SSH 46 | UserName: ${ssh.credentials.username} 47 | PrivateKeySource: KeyFileOnCommandCentral 48 | PrivateKeyPath: ${ssh.credentials.key.path} 49 | PrivateKeyPassword: ${ssh.credentials.key.password} 50 | provision: 51 | default: 52 | cce: 53 | - local # apply to local CCE -------------------------------------------------------------------------------- /templates/sag-cc-creds-ssh/test.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /templates/sag-cc-creds/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Credentials for Basic Authentication 20 | 21 | Use this template to configure user credentials that Command Central uses when connecting to managed products using basic authentication. You can also use the template to define a credentials key alias for the user credentials used for basic authentication. 22 | 23 | ## Requirements 24 | 25 | None. 26 | 27 | ### Supported Software AG releases 28 | 29 | * Command Central 10.1 and higher 30 | 31 | ### Supported platforms 32 | 33 | All supported Windows and UNIX platforms. 34 | 35 | ## Running as a standalone composite template 36 | 37 | To configure credentials that Command Central uses for basic authentication for a user with username "myuser", password "secret", and credentials key alias "MY_USER": 38 | 39 | ```bash 40 | sagcc exec templates composite apply sag-cc-creds \ 41 | credentials.username=myuser \ 42 | credentials.password=secret \ 43 | credentials.key=MY_USER \ 44 | --sync-job --wait 360 45 | ``` 46 | -------------------------------------------------------------------------------- /templates/sag-cc-creds/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-creds 20 | description: Basic outbound credentials 21 | version: 10.2 22 | 23 | environments: 24 | default: 25 | credentials.username: ${} # REQUIRED, username 26 | credentials.password: ${} # REQUIRED, password 27 | credentials.key: ${} 28 | 29 | layers: 30 | cce: 31 | templates: 32 | - creds 33 | 34 | templates: 35 | creds: 36 | products: 37 | CCE: 38 | default: 39 | configuration: 40 | OSGI-CCE-ENGINE: 41 | COMMON-CREDENTIALS: # Credentials configuration type 42 | COMMON-CREDENTIALS-${credentials.key}: 43 | "@alias": ${credentials.key} 44 | AuthenticationType: BASIC # MUST be BASIC authentication 45 | UserName: "${credentials.username}" # Username 46 | Password: "${credentials.password}" # Password 47 | provision: 48 | default: 49 | cce: 50 | - local # apply to local CCE -------------------------------------------------------------------------------- /templates/sag-cc-layer-defs/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Command Central Layer Type Definitions 21 | 22 | Creates configuration instances of layer type definitions for default templates that you use when defining layers in a Software AG product stack. 23 | 24 | ## Requirements 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 and higher 29 | 30 | ### Supported platforms 31 | 32 | All supported Windows and UNIX platforms. 33 | 34 | ## Running as a standalone composite template 35 | 36 | To create configuration instances of the layer definitions defined in the template: 37 | 38 | ```bash 39 | sagcc exec templates composite apply sag-cc-layer-defs --sync-job -- wait 360 40 | ``` 41 | 42 | > IMPORTANT: If you use Command Central 10.1 you have to monitor the job completion with a separate command, instead of the `--sync-job` option: 43 | 44 | ```bash 45 | sagcc list jobmanager jobs --wait 360 -e DONE 46 | ``` -------------------------------------------------------------------------------- /templates/sag-cc-ldap/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Users, Roles, and Groups for an LDAP Directory and the Command Central Internal User Repository 20 | 21 | Use this template to configure users, roles, and groups for: 22 | - an external LDAP directory (including the LDAP domain parameter that helps Command Central determine whether to verify the user against the LDAP user store or the internal user repository) 23 | - the Command Central internal user repository 24 | 25 | ## Requirements 26 | 27 | None. 28 | 29 | ### Supported Software AG releases 30 | 31 | * Command Central 10.1 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ## Running as a standalone composite template 38 | 39 | To configure users, roles, and groups that Command Central uses to authenticate users and determine what permissions they have: 40 | 41 | ```bash 42 | sagcc exec templates composite apply sag-cc-ldap --sync-job --wait 360 43 | ``` -------------------------------------------------------------------------------- /templates/sag-cc-mirrors/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Remote Mirrors Registration 20 | 21 | Use this template to add remote mirror repositories for products and fixes. This template connects Command Central to the mirror repositories that already exist on a remote Platform Manager node. 22 | 23 | ## Requirements 24 | 25 | Create administrator credentials for the Platform Manager hosting the mirrors by running the sag-cc-creds template: 26 | 27 | ```bash 28 | sagcc exec templates composite apply sag-cc-creds \ 29 | credentials.username=Administrator \ 30 | credentials.password=manage \ 31 | credentials.key=DEFAULT_ADMINISTRATOR \ 32 | --sync-job --wait 360 33 | ``` 34 | 35 | For more information, see [sag-cc-creds](https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-cc-creds). 36 | 37 | ### Supported Software AG releases 38 | 39 | * Command Central 10.1 and higher 40 | 41 | ### Supported platforms 42 | 43 | All supported Windows and UNIX platforms. 44 | 45 | ## Running as a standalone composite template 46 | 47 | To add remote mirror repositories: 48 | 49 | ```bash 50 | sagcc exec templates composite apply sag-cc-mirrors --sync-job --wait 360 51 | ``` 52 | -------------------------------------------------------------------------------- /templates/sag-cc-mirrors/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | alias: sag-cc-mirrors 21 | description: Default registration for remote mirrors 22 | version: 10.2 23 | 24 | environments: 25 | default: 26 | release: "10.2" # mirror products/fixes release 27 | mirror.spm: http://localhost:8092 # mirror hosting SPM address. HTTPS is not yet supported! 28 | mirror.credentials.key: DEFAULT_ADMINISTRATOR # mirror hosting SPM credentials 29 | mirror.name.suffix: "_ext" # optional extension, can be empty 30 | 31 | repositories: 32 | product: 33 | products-${release}${mirror.name.suffix}: 34 | location: ${mirror.spm}/products-${release}/repository/ 35 | credentials: ${mirror.credentials.key} 36 | fix: 37 | fixes-${release}${mirror.name.suffix}: 38 | location: ${mirror.spm}/fix-fixes-${release}/repository/ 39 | credentials: ${mirror.credentials.key} 40 | -------------------------------------------------------------------------------- /templates/sag-cc-repo-custom/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Public Product and Fix Master Repositories 20 | 21 | Use this template to add Software AG product and fix repositories with custom repository names and for specific officially supported releases. 22 | 23 | ## Requirements 24 | 25 | Create Empower credentials by running the sag-cc-creds template: 26 | 27 | ```bash 28 | sagcc exec templates composite apply sag-cc-creds \ 29 | credentials.username=yourusername \ 30 | credentials.password=yourpassword \ 31 | credentials.key=EMPOWER \ 32 | --sync-job --wait 360 33 | ``` 34 | 35 | For more information, see [sag-cc-creds](https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-cc-creds). 36 | 37 | 38 | ### Supported Software AG releases 39 | 40 | * Command Central 10.1 and higher 41 | 42 | ### Supported platforms 43 | 44 | All supported Windows and UNIX platforms. 45 | 46 | ## Running as a standalone composite template 47 | 48 | To add a Software AG product repository with name 'myspecific-product-repo' for version 10.5 49 | and a fix repository with name 'myspecific-fix-repo' for all officially supported releases. 50 | 51 | 52 | ```bash 53 | sagcc exec templates composite apply sag-cc-repo-custom \ 54 | sdc.credentials.key=Empower \ 55 | master.repo.product.version=105 \ 56 | master.repo.product.name=myspecific-product-repo \ 57 | master.repo.fix.name=myspecific-fix-repo \ 58 | --sync-job --wait 360 59 | ``` 60 | -------------------------------------------------------------------------------- /templates/sag-cc-repo-custom/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-repos-custom 20 | description: Custom SAG master repositories 21 | version: 10.5 22 | 23 | environments: 24 | default: 25 | sdc.url: http://sdc.softwareag.com # SDC url 26 | sdc.credentials.key: EMPOWER # SDC/Empower credentials key 27 | master.repo.product.name: webMethods-10.5 28 | master.repo.product.version: 105 29 | master.repo.fix.name: Empower 30 | 31 | repositories: 32 | product: 33 | ${master.repo.product.name}: 34 | location: ${sdc.url}/dataservewebM${master.repo.product.version}/repository/ 35 | credentials: ${sdc.credentials.key} 36 | 37 | fix: 38 | ${master.repo.fix.name}: 39 | location: ${sdc.url}/updates/prodRepo 40 | credentials: ${sdc.credentials.key} 41 | -------------------------------------------------------------------------------- /templates/sag-cc-repo-custom/test.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /templates/sag-cc-repos-asset/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Asset Repository 20 | 21 | Use this template to create a sample asset repository in Command Central. 22 | 23 | ## Requirements 24 | 25 | ### Supported Software AG releases 26 | 27 | * Command Central 10.1 and higher 28 | 29 | ### Supported platforms 30 | 31 | All supported Windows and UNIX platforms. 32 | 33 | ## Running as a standalone composite template 34 | 35 | To create a sample asset repository in Command Central: 36 | 37 | ```bash 38 | sagcc exec templates composite apply sag-cc-repos-asset --sync-job --wait 360 39 | ``` 40 | 41 | > IMPORTANT: If you use Command Central 10.1 you have to monitor the job completion with a separate command, instead of the `--sync-job` option: 42 | 43 | ```bash 44 | sagcc list jobmanager jobs --wait 360 -e DONE 45 | ``` -------------------------------------------------------------------------------- /templates/sag-cc-repos-asset/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-repos-asset 20 | description: Sample assets repository 21 | version: 0.1 22 | changes: 23 | - 0.1 Initial draft 24 | 25 | environments: 26 | default: 27 | repo.asset: assets-repo 28 | repo.asset.url: https://irepo.eur.ad.sag/scm/devops/assets-repo.git 29 | 30 | repositories: 31 | asset: 32 | ${repo.asset}: 33 | type: git 34 | description: Samples assets 35 | location: ${repo.asset.url} 36 | credentials: NONE 37 | -------------------------------------------------------------------------------- /templates/sag-cc-repos-dev/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Internal CD Product and Fix Repositories 20 | 21 | Only for internal use. With this template, you can add the development or testing sandboxes, located on the Software AG internal install servers, as product and fix repositories in Command Central. 22 | 23 | ## Requirements 24 | 25 | Configure custom credentials by running the sag-cc-creds-dev template: 26 | 27 | ```bash 28 | sagcc exec templates composite apply sag-cc-creds-dev cc.password=mycustompass --sync-job --wait 20 -c 5 29 | ``` 30 | 31 | For more information, see [sag-cc-creds-dev](https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-cc-creds-dev). 32 | 33 | ### Supported Software AG releases 34 | 35 | * Command Central 10.1 and higher 36 | 37 | ### Supported platforms 38 | 39 | All supported Windows and UNIX platforms. 40 | 41 | ## Running as a standalone composite template 42 | 43 | To add internal sandboxes with product and fix builds as repositories in Command Central: 44 | 45 | ```bash 46 | sagcc exec templates composite apply sag-cc-repos-dev --sync-job --wait 360 47 | ``` 48 | -------------------------------------------------------------------------------- /templates/sag-cc-repos-dev/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-repos-dev 20 | description: SAG INTERNAL CD product and fix repos 21 | version: 10.3.0 22 | changes: 23 | - 10.0.1 Added centralized credentials 24 | - 10.1.0 Added 10.1 sandbox as trunk 25 | - 10.2.0 Added 10.2 sandbox as trunk 26 | - 10.3.0 Added 10.3 sandbox as trunk 27 | 28 | environments: 29 | default: 30 | aqu.host: aquarius-eu.infra.webmethods.io # closest AQU server 31 | sandbox: CC_PI_103oct2018 # product trunk sandbox 32 | sum.host: aquarius-eu.infra.webmethods.io # closest SUM server 33 | 34 | repositories: 35 | fix: # dev and qa fix repos only 36 | devRepo: 37 | description: LATEST Fix SNAPSHOTS 38 | host: ${sum.host} 39 | credentials: REPO-FIX 40 | 41 | QARepo_WM: 42 | description: LATEST Fix MILESTONE candidates 43 | host: ${sum.host} 44 | credentials: REPO-FIX 45 | 46 | product: # trunk product repos 47 | 48 | SuiteInt: 49 | description: Latest MILESTONES 50 | name: SuiteInt 51 | host: ${aqu.host} 52 | credentials: REPO-PRODUCT 53 | 54 | CC_XPC: 55 | description: CC XPC testing sandbox 56 | host: aquarius-eu.infra.webmethods.io 57 | name: CC_XPC 58 | credentials: REPO-PRODUCT 59 | 60 | ${sandbox}: 61 | description: Latest nightly SNAPSHOTS 62 | host: ${aqu.host} 63 | name: ${sandbox} 64 | credentials: REPO-PRODUCT 65 | -------------------------------------------------------------------------------- /templates/sag-cc-repos-ga/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Internal GA Product and Fix Repositories 20 | 21 | Only for internal use. With this template, you can add the General Availability (GA) or release-candidate sandboxes, located on the Software AG internal install servers, as product and fix repositories in Command Central. 22 | 23 | ## Requirements 24 | 25 | Configure custom credentials by running the sag-cc-creds-dev template: 26 | 27 | ```bash 28 | sagcc exec templates composite apply sag-cc-creds-dev cc.password=mycustompass --sync-job --wait 20 -c 5 29 | ``` 30 | 31 | For more information, see [sag-cc-creds-dev](https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-cc-creds-dev). 32 | 33 | ### Supported Software AG releases 34 | 35 | * Command Central 10.1 and higher 36 | 37 | ### Supported platforms 38 | 39 | All supported Windows and UNIX platforms. 40 | 41 | ## Running as a standalone composite template 42 | 43 | To add internal sandboxes with GA or release-candidate products and fixes as repositories in Command Central: 44 | 45 | ```bash 46 | sagcc exec templates composite apply sag-cc-repos-ga --sync-job --wait 360 47 | ``` 48 | -------------------------------------------------------------------------------- /templates/sag-cc-repos/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central Public Product and Fix Master Repositories 20 | 21 | Use this template to add Software AG product and fix repositories for all officially supported releases. 22 | 23 | ## Requirements 24 | 25 | Create Empower credentials by running the sag-cc-creds template: 26 | 27 | ```bash 28 | sagcc exec templates composite apply sag-cc-creds \ 29 | credentials.username=yourusername \ 30 | credentials.password=yourpassword \ 31 | credentials.key=EMPOWER \ 32 | --sync-job --wait 360 33 | ``` 34 | 35 | For more information, see [sag-cc-creds](https://github.com/SoftwareAG/sagdevops-templates/tree/master/templates/sag-cc-creds). 36 | 37 | 38 | ### Supported Software AG releases 39 | 40 | * Command Central 10.1 and higher 41 | 42 | ### Supported platforms 43 | 44 | All supported Windows and UNIX platforms. 45 | 46 | ## Running as a standalone composite template 47 | 48 | To add Software AG product and fix repositories for all officially supported releases: 49 | 50 | ```bash 51 | sagcc exec templates composite apply sag-cc-repos --sync-job --wait 360 52 | ``` 53 | -------------------------------------------------------------------------------- /templates/sag-cc-repos/env.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-cc-repos/env.properties -------------------------------------------------------------------------------- /templates/sag-cc-repos/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-cc-repos 20 | description: Default public SAG master repositories 21 | version: 10.2 22 | 23 | environments: 24 | default: 25 | sdc.url: http://sdc.softwareag.com # SDC url 26 | sdc.credentials.key: EMPOWER # SDC/Empower credentials key 27 | 28 | repositories: 29 | product: 30 | webMethods-10.5: 31 | location: ${sdc.url}/dataservewebM105/repository/ 32 | credentials: ${sdc.credentials.key} 33 | webMethods-10.3: 34 | location: ${sdc.url}/dataservewebM103/repository/ 35 | credentials: ${sdc.credentials.key} 36 | # webMethods-10.2: 37 | # location: ${sdc.url}/dataservewebM102/repository/ 38 | # credentials: ${sdc.credentials.key} 39 | webMethods-10.1: 40 | location: ${sdc.url}/dataservewebM101/repository/ 41 | credentials: ${sdc.credentials.key} 42 | 43 | webMethods-9.12: 44 | location: ${sdc.url}/dataservewebM912/repository/ 45 | credentials: ${sdc.credentials.key} 46 | webMethods-9.10: 47 | location: ${sdc.url}/dataservewebM910/repository/ 48 | credentials: ${sdc.credentials.key} 49 | webMethods-9.9: 50 | location: ${sdc.url}/dataservewebM99/repository/ 51 | credentials: ${sdc.credentials.key} 52 | 53 | 54 | fix: # public fix repository for all versions 55 | Empower: 56 | credentials: ${sdc.credentials.key} 57 | -------------------------------------------------------------------------------- /templates/sag-cc-repos/test.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /templates/sag-cc-secure/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Secure connections in Command Central and Platform Manager 20 | 21 | Use this template to configure secure connections (local and remote) in Command Central and Platform Manager. 22 | - The HTTPS port of Command Central using a custom keystore certificate 23 | - The HTTPS port of Platform Manager using a custom keystore certificate 24 | - Command Central SSL connection using custom Truststore certificate 25 | - Platform Manager SSL connection using custom Truststore certificate 26 | 27 | ## Requirements 28 | 29 | While applying this template the node which is going to be configured should be registered in Command Central using its HTTP port 30 | 31 | ### Supported Software AG releases 32 | 33 | * Command Central 10.1 and higher 34 | 35 | ### Supported platforms 36 | 37 | All supported Windows and UNIX platforms. 38 | 39 | ## Running as a standalone composite template 40 | 41 | To configure secure connections custom certificates in Command Central and local Platform Manager: 42 | 43 | ```bash 44 | sagcc exec templates composite apply sag-cc-secure \ 45 | spm.https.keystore.location=${user.home}/secure/KEY-CCE-SPM.jks \ 46 | spm.https.keystore.password=mySPMKeystorePass \ 47 | spm.https.key.alias=mySPMKeystoreAlias \ 48 | spm.truststore.location=${user.home}/secure/TRUST-SPM.jks \ 49 | spm.truststore.password=mySPMTrustorePass \ 50 | cce.https.keystore.location={user.home}/secure/KEY-CCE.jks \ 51 | cce.https.keystore.password=myCCEKeystorePass \ 52 | cce.https.key.alias=myCCEKeystoreAlias \ 53 | cce.truststore.location=${user.home}/secure/TRUST-CCE.jks \ 54 | cce.truststore.password=myCCETrustorePass \ 55 | --sync-job --wait 360 56 | ``` 57 | -------------------------------------------------------------------------------- /templates/sag-cc-tuneup/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Command Central and Platform Manager Server System Properties 20 | 21 | Use the template to configure system properties for Command Central and Platform Manager that modify the server behavior during operations, such as bootstrapping, installing products, or creating repositories. 22 | 23 | ## Requirements 24 | 25 | ### Supported Software AG releases 26 | 27 | * Command Central 10.1 and higher 28 | 29 | ### Supported platforms 30 | 31 | All supported Windows and UNIX platforms. 32 | 33 | ## Running as a standalone composite template 34 | 35 | To set up server system properties for Command Central and Platform Manager: 36 | 37 | ```bash 38 | sagcc exec templates composite apply sag-cc-tuneup --sync-job --wait 360 39 | ``` 40 | 41 | > IMPORTANT: If you use Command Central 10.1 you have to monitor the job completion with a separate command, instead of the `--sync-job` option: 42 | 43 | ```bash 44 | sagcc list jobmanager jobs --wait 360 -e DONE 45 | ``` -------------------------------------------------------------------------------- /templates/sag-cc-tuneup/test.xml: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | 29 | 30 | 31 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /templates/sag-db-db2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ibmcom/db2 2 | 3 | ENV LICENSE=accept 4 | ENV PERSISTENT_HOME=false 5 | ENV DB2INST1_PASSWORD=manage 6 | ENV AUTOCONFIG=false 7 | 8 | # Every bash file in the "/var/custom" folder will be run after the db2 is started 9 | RUN mkdir /var/custom 10 | COPY init_db2.sh /var/custom 11 | # Create user "webm" with password "manage" that will be used later to access the database 12 | RUN useradd -rm -d /home/webm -s /bin/bash -g root -u 1000 webm -p "$(openssl passwd -1 manage)" 13 | RUN chmod a+x /var/custom/init_db2.sh 14 | 15 | -------------------------------------------------------------------------------- /templates/sag-db-db2/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | services: 23 | # this is the oracle db itself 24 | db2: 25 | image: sag-db2:latest 26 | build: . 27 | ports: 28 | - 50000 29 | environment: 30 | - LICENSE=accept 31 | - DB2INST1_PASSWORD=manage 32 | #- DBNAME=webm 33 | - AUTOCONFIG=false 34 | privileged: true 35 | 36 | # provisioner for webm db schemas using template.yaml 37 | provision: 38 | image: ${CC_REG}/commandcentral-client:${CC_TAG} 39 | command: > 40 | bash -c ' 41 | echo "Waiting for repositories ..." && 42 | sagcc list repository products -e products -w 600 --wait-for-cc && 43 | sagcc list repository fixes -e fixes -w 600 --wait-for-cc && 44 | echo "Creating DB schemas ..." && 45 | sagcc exec templates composite apply sag-db-db2 \ 46 | repo.product=products repo.fix=fixes \ 47 | nodes=node db.host=db2 db.username=db2inst1 db.password=manage --wait-for-cc --wait 600 --sync-job' 48 | depends_on: 49 | - db2 50 | networks: 51 | default: 52 | external: 53 | name: sagdevops-templates_default 54 | -------------------------------------------------------------------------------- /templates/sag-db-db2/init_db2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo '------------------------------------------' 4 | echo 'start setting up webm db' 5 | 6 | # become db2inst1 user 7 | sudo -i -u db2inst1 bash << EOF 8 | 9 | # create "webm" database 10 | db2 create database webm using codeset UTF-8 territory DE pagesize 32768 11 | db2 update database configuration for webm using LOGFILSIZ 8192 LOGPRIMARY 40 LOGSECOND 20 applheapsz 60000 12 | 13 | db2 connect to webm 14 | # Grant "webm" user all rights on "webm" database 15 | db2 grant DATAACCESS on webm to user webm 16 | 17 | db2 connect reset 18 | 19 | echo 'done setting up webm db' 20 | echo '------------------------------------------' 21 | 22 | EOF 23 | -------------------------------------------------------------------------------- /templates/sag-db-db2/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=db2luw db.username=WEBM db.password=manage db.name=WEBM db.url="jdbc:wm:db2://db2:50000;databaseName=WEBM" \ 27 | -e "ISInternal & ProcessEngine & APIGatewayEvents" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-db-mysql-103/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | volumes: 23 | mysql_data: {} 24 | 25 | services: 26 | # this is the sqlserver itself 27 | mysql: 28 | image: mysql:5.7.24 29 | ports: 30 | - 3306 31 | volumes: 32 | - ./mysql.cnf:/etc/mysql/conf.d/mysql.cnf 33 | - mysql_data:/var/lib/mysql 34 | environment: 35 | - MYSQL_ROOT_PASSWORD=root 36 | - MYSQL_DATABASE=webm 37 | - MYSQL_USER=webm 38 | - MYSQL_PASSWORD=webm 39 | 40 | # provisioner for webm db schemas using template.yaml 41 | provision: 42 | image: daerepository03.eur.ad.sag:4443/ccdevops/commandcentral-client:10.3 43 | command: > 44 | sagcc exec templates composite apply sag-db-mysql-103 45 | repo.product=products repo.fix=fixes db.url="jdbc:mysql://mysql:3306/webm" db.name=webm 46 | release=10.3 nodes=node db.host=mysql db.admin.user=root db.admin.password=root db.username=webm db.password=webm db.components=[] --wait-for-cc --wait 600 --sync-job 47 | depends_on: 48 | - mysql 49 | 50 | networks: 51 | default: 52 | external: 53 | name: sagdevops-templates_default 54 | -------------------------------------------------------------------------------- /templates/sag-db-mysql-103/mysql-connector-java-5.1.47.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-db-mysql-103/mysql-connector-java-5.1.47.jar -------------------------------------------------------------------------------- /templates/sag-db-mysql-103/mysql.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | sql-mode="PIPES_AS_CONCAT,IGNORE_SPACE,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS" 3 | character-set-server=utf8 4 | collation-server=utf8_general_ci 5 | max_allowed_packet = 24M 6 | default-storage-engine = innodb 7 | lower_case_table_names = 1 8 | innodb_buffer_pool_size = 5G 9 | innodb_log_file_size = 80M 10 | -------------------------------------------------------------------------------- /templates/sag-db-mysql-103/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=mysql db.username=webm db.password=webm db.name=webm db.url="jdbc:mysql://mysql:3306/webm" \ 27 | -e "ISI" 28 | #-e "ISI & MWS & PRE" 29 | 30 | echo "TEST SUCCESSFUL" 31 | -------------------------------------------------------------------------------- /templates/sag-db-mysql/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | volumes: 23 | mysql_data: {} 24 | 25 | services: 26 | # this is the sqlserver itself 27 | mysql: 28 | image: mysql:5.7.24 29 | ports: 30 | - 3306 31 | volumes: 32 | - ./mysql.cnf:/etc/mysql/conf.d/mysql.cnf 33 | - mysql_data:/var/lib/mysql 34 | environment: 35 | - MYSQL_ROOT_PASSWORD=root 36 | - MYSQL_DATABASE=webm 37 | - MYSQL_USER=webm 38 | - MYSQL_PASSWORD=webm 39 | 40 | # provisioner for webm db schemas using template.yaml 41 | provision: 42 | image: daerepository03.eur.ad.sag:4443/ccdevops/commandcentral-client:10.3 43 | command: > 44 | sagcc exec templates composite apply sag-db-mysql 45 | repo.product=products repo.fix=fixes db.url="jdbc:mysql://mysql:3306/webm" db.name=webm 46 | release=10.3 nodes=node db.host=mysql db.admin.user=root db.admin.password=root db.username=webm db.password=webm db.components=[] --wait-for-cc --wait 600 --sync-job 47 | depends_on: 48 | - mysql 49 | 50 | networks: 51 | default: 52 | external: 53 | name: sagdevops-templates_default 54 | -------------------------------------------------------------------------------- /templates/sag-db-mysql/mysql-connector-java-5.1.47.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-db-mysql/mysql-connector-java-5.1.47.jar -------------------------------------------------------------------------------- /templates/sag-db-mysql/mysql.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | sql-mode="PIPES_AS_CONCAT,IGNORE_SPACE,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS" 3 | character-set-server=utf8 4 | collation-server=utf8_general_ci 5 | max_allowed_packet = 24M 6 | default-storage-engine = innodb 7 | lower_case_table_names = 1 8 | innodb_buffer_pool_size = 5G 9 | innodb_log_file_size = 80M 10 | -------------------------------------------------------------------------------- /templates/sag-db-mysql/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=mysql db.username=webm db.password=webm db.name=webm db.url="jdbc:mysql://mysql:3306/webm" \ 27 | -e "ISInternal & ProcessEngine & MywebMethodsServer" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-db-oracle-103-and-lower/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | services: 23 | # this is the oracle db itself 24 | oracle: 25 | image: wnameless/oracle-xe-11g:18.04 26 | ports: 27 | - 1521 28 | environment: 29 | - ORACLE_ALLOW_REMOTE=true 30 | 31 | # provisioner for webm db schemas using template.yaml 32 | provision: 33 | image: ${CC_REG}/commandcentral-client:${CC_TAG} 34 | command: > 35 | bash -c ' 36 | echo "Waiting for repositories ..." && 37 | sagcc list repository products -e products -w 600 --wait-for-cc && 38 | sagcc list repository fixes -e fixes -w 600 --wait-for-cc && 39 | echo "Creating DB schemas ..." && 40 | sagcc exec templates composite apply sag-db-oracle-103-and-lower \ 41 | repo.product=products repo.fix=fixes \ 42 | nodes=node db.host=oracle --wait-for-cc --wait 600 --sync-job' 43 | depends_on: 44 | - oracle 45 | 46 | networks: 47 | default: 48 | external: 49 | name: ${NET:-sagdevops-templates_default} 50 | -------------------------------------------------------------------------------- /templates/sag-db-oracle-103-and-lower/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=oracle db.username=webm db.password=webm db.name=webm db.url="jdbc:wm:oracle://oracle:1521;SID=XE" \ 27 | -e "ISI & MWS & PRE" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-db-oracle/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | services: 23 | # this is the oracle db itself 24 | oracle: 25 | image: wnameless/oracle-xe-11g:18.04 26 | ports: 27 | - 1521 28 | environment: 29 | - ORACLE_ALLOW_REMOTE=true 30 | 31 | # provisioner for webm db schemas using template.yaml 32 | provision: 33 | image: ${CC_REG}/commandcentral-client:${CC_TAG} 34 | command: > 35 | bash -c ' 36 | echo "Waiting for repositories ..." && 37 | sagcc list repository products -e products -w 600 --wait-for-cc && 38 | sagcc list repository fixes -e fixes -w 600 --wait-for-cc && 39 | echo "Creating DB schemas ..." && 40 | sagcc exec templates composite apply sag-db-oracle \ 41 | repo.product=products repo.fix=fixes \ 42 | nodes=node db.host=oracle --wait-for-cc --wait 600 --sync-job' 43 | depends_on: 44 | - oracle 45 | 46 | networks: 47 | default: 48 | external: 49 | name: ${NET:-sagdevops-templates_default} 50 | -------------------------------------------------------------------------------- /templates/sag-db-oracle/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=oracle db.username=webm db.password=webm db.name=webm db.url="jdbc:wm:oracle://oracle:1521;SID=XE" \ 27 | -e "ISInternal & ProcessEngine & APIGatewayEvents" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-db-sqlserver-103-and-lower/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | version: "3.2" 20 | 21 | services: 22 | # this is the sqlserver itself 23 | sqlserver: 24 | image: microsoft/mssql-server-linux:2017-latest 25 | ports: 26 | - 1433 27 | environment: 28 | - ACCEPT_EULA=Y 29 | - SA_PASSWORD=MaNaGe123 30 | 31 | # provisioner for webm db schemas using template.yaml 32 | provision: 33 | image: daerepository03.eur.ad.sag:4443/ccdevops/commandcentral-client:10.3 34 | command: > 35 | sagcc exec templates composite apply sag-db-sqlserver-103-and-lower 36 | repo.product=products repo.fix=fixes 37 | nodes=node db.host=sqlserver db.admin.password=MaNaGe123 --wait-for-cc --wait 600 --sync-job 38 | depends_on: 39 | - sqlserver 40 | 41 | networks: 42 | default: 43 | external: 44 | name: sagdevops-templates_default 45 | -------------------------------------------------------------------------------- /templates/sag-db-sqlserver-103-and-lower/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=sqlserver db.username=webm db.password=webm db.name=webm db.url="jdbc:wm:sqlserver://sqlserver:1433;databaseName=webm" \ 27 | -e "ISI & MWS & PRE" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-db-sqlserver-is-schemas/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | services: 23 | # this is the sqlserver itself 24 | sqlserver: 25 | image: microsoft/mssql-server-linux:2017-latest 26 | ports: 27 | - 1433 28 | environment: 29 | - ACCEPT_EULA=Y 30 | - SA_PASSWORD=MaNaGe123 31 | 32 | # provisioner for webm db schemas using template.yaml 33 | provision: 34 | image: daerepository03.eur.ad.sag:4443/ccdevops/commandcentral-client:10.3 35 | command: > 36 | sagcc exec templates composite apply sag-db-sqlserver-is-schemas 37 | repo.product=products repo.fix=fixes 38 | nodes=node db.host=sqlserver db.admin.password=MaNaGe123 --wait-for-cc --wait 600 --sync-job 39 | depends_on: 40 | - sqlserver 41 | 42 | networks: 43 | default: 44 | external: 45 | name: sagdevops-templates_default 46 | -------------------------------------------------------------------------------- /templates/sag-db-sqlserver-is-schemas/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=sqlserver db.username=webm db.password=webm db.name=webm db.url="jdbc:wm:sqlserver://sqlserver:1433;databaseName=webm" \ 27 | -e "ISInternal" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-db-sqlserver/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ######################################################################################## 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ######################################################################################### 20 | version: "3.2" 21 | 22 | services: 23 | # this is the sqlserver itself 24 | sqlserver: 25 | image: microsoft/mssql-server-linux:2017-latest 26 | ports: 27 | - 1433 28 | environment: 29 | - ACCEPT_EULA=Y 30 | - SA_PASSWORD=MaNaGe123 31 | 32 | # provisioner for webm db schemas using template.yaml 33 | provision: 34 | image: daerepository03.eur.ad.sag:4443/ccdevops/commandcentral-client:10.3 35 | command: > 36 | sagcc exec templates composite apply sag-db-sqlserver 37 | repo.product=products repo.fix=fixes 38 | nodes=node db.host=sqlserver db.admin.password=MaNaGe123 --wait-for-cc --wait 600 --sync-job 39 | depends_on: 40 | - sqlserver 41 | 42 | networks: 43 | default: 44 | external: 45 | name: sagdevops-templates_default 46 | -------------------------------------------------------------------------------- /templates/sag-db-sqlserver/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # point to local SPM 23 | export CC_SERVER=cc 24 | 25 | sagcc list administration product node DatabaseComponentConfigurator database catalog \ 26 | db.type=sqlserver db.username=webm db.password=webm db.name=webm db.url="jdbc:wm:sqlserver://sqlserver:1433;databaseName=webm" \ 27 | -e "ISInternal & ProcessEngine & APIGatewayEvents" 28 | 29 | echo "TEST SUCCESSFUL" 30 | -------------------------------------------------------------------------------- /templates/sag-des-config/README.md: -------------------------------------------------------------------------------- 1 | # Configuring Digital Event Services 2 | 3 | Use this template to configure Software AG Digital Event Services 10.2 to 10.15. 4 | 5 | ## Requirements 6 | 7 | ### Supported Software AG releases 8 | 9 | * Command Central 10.2 or higher 10 | * Digital Event Services 10.2 to 10.15 11 | 12 | ### Supported platforms 13 | 14 | All supported Windows and UNIX platforms. 15 | 16 | ### Supported use cases 17 | 18 | * Configuration of: 19 | * Truststores 20 | * Keystores 21 | * Messaging Services 22 | * Service Groups 23 | 24 | ## Running as a composite template 25 | 26 | ### Provisioning Digital Event Services into Integration Server 27 | 28 | Provision an default instance of [Integration Server](../sag-is-server/) on Windows: 29 | 30 | ```bash 31 | sagcc exec templates composite apply sag-is-server nodes=dev1 \ 32 | repo.product=products-10.1 \ 33 | repo.fix=fixes-10.1 \ 34 | --sync-job --wait 360 35 | ``` 36 | 37 | Provision Digital Event Services into the default Integration Server instance, configure truststore and keystore locations, 38 | configure the default messaging service with a username and a password for Universal Messaging, 39 | point the messaging service to the [Universal Messaging realm server](../sag-um-server/) that listens at `nsp://umhost:9000`, 40 | configure the messaging sevice to use the specified keystore and truststore, add a predefined digital event type to a service group, 41 | and configure that service group to use the messaging service: 42 | 43 | ```bash 44 | sagcc exec templates composite apply sag-des-config nodes=dev1 \ 45 | des.instance.id=OSGI-IS_default \ 46 | des.um.url=nsp://umhost:9000 \ 47 | des.truststore.location=C:\SoftwareAG\UniversalMessaging\server\default\bin\nirvanacacerts.jks \ 48 | des.keystore.location=C:\SoftwareAG\UniversalMessaging\server\default\bin\server.jks \ 49 | des.service.name=sampleService \ 50 | des.servicegroup.name=sampleServiceGroup 51 | ``` 52 | -------------------------------------------------------------------------------- /templates/sag-des/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Digital Event Services 20 | 21 | Use this template to provision Software AG Digital Event Services 10.1 to 10.15. 22 | 23 | ## Requirements 24 | 25 | ### Supported Software AG releases 26 | 27 | * Command Central 10.1 or higher 28 | * Digital Event Services 10.1 to 10.15 29 | 30 | ### Supported platforms 31 | 32 | All supported Windows and UNIX platforms. 33 | 34 | ### Supported use cases 35 | 36 | * Provisioning of new environments version 10.1 to 10.15 37 | * Installing latest fixes 38 | * Configuration of: 39 | * Messaging Services 40 | 41 | ## Running as a composite template 42 | 43 | Provision an instance of a runtime that is enabled for Digital Event Services, for example an [Integration Server](../sag-is-server/) default instance on Windows. 44 | 45 | Provision Digital Event Services into the default Integration Server instance and configure the default messaging service to point to the [Universal Messaging realm server](../sag-um-server/) that listens at `nsp://umhost:9000`: 46 | 47 | ```bash 48 | sagcc exec templates composite apply sag-des nodes=dev1 \ 49 | repo.product=webMethods-10.1 \ 50 | repo.fix=Empower \ 51 | des.fixes=ALL \ 52 | release.major=10 os.platform=w64 \ 53 | des.instance.id=OSGI-IS_default \ 54 | des.um.url=nsp://umhost:9000 55 | ``` 56 | -------------------------------------------------------------------------------- /templates/sag-des/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-des/test.sh -------------------------------------------------------------------------------- /templates/sag-designer-applatform/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Application Platform in Designer 21 | 22 | Use this template to provision Application Platform in Designer. 23 | 24 | ## Requirements and Limitations 25 | 26 | ### Supported Software AG releases 27 | 28 | * Designer 10.1 to 10.15 29 | * Application Platform 10.1 to 10.15 30 | * Command Central 10.1 and higher 31 | 32 | ### Supported platforms 33 | 34 | All supported Windows and UNIX platforms. 35 | 36 | ### Supported use cases 37 | 38 | Provisioning Application Platform in Software AG Designer 10.1 to 10.15. 39 | 40 | ## Running as a composite template 41 | 42 | 1. To import the sag-designer-appplatform/template.yaml file in Command Central, use one of the methods described in [Importing templates library](https://github.com/SoftwareAG/sagdevops-templates/wiki/Importing-templates-library) 43 | 44 | 2. To apply the template, follow the instructions in [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli) 45 | 46 | ### Provisioning Application Platform in Designer 47 | 48 | To provision Application Platform in a Designer installation with alias `dev1`: 49 | 50 | ```bash 51 | sagcc exec templates composite apply sag-designer-appplatform nodes=dev1 \ 52 | repo.product=products-10.3 \ 53 | repo.fix=fixes-10.3 \ 54 | --sync-job --wait 360 55 | ``` 56 | -------------------------------------------------------------------------------- /templates/sag-designer-applatform/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | alias: sag-designer-appplatform 21 | description: Software AG Designer > Application platform 22 | 23 | environments: 24 | default: 25 | designer.fixes: [] 26 | 27 | templates: 28 | appPlatform: 29 | fixes: ${designer.fixes} 30 | products: 31 | PLDCoreBundles: 32 | PLDMWSBundles: 33 | PLDISBundles: 34 | DesignerLegacy: 35 | DesignerTask: 36 | 37 | layers: 38 | designer: 39 | productRepo: ${repo.product} # install products from 40 | fixRepo: ${repo.fix} # install fixes from 41 | templates: appPlatform 42 | 43 | provision: 44 | default: 45 | designer: ${nodes} 46 | -------------------------------------------------------------------------------- /templates/sag-designer-cloudstreams/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # CloudStreams Designer 21 | 22 | Use this template to provision CloudStreams Designer. 23 | 24 | ## Requirements 25 | None 26 | 27 | ### Supported Software AG releases 28 | 29 | * Designer 10.2 and higher 30 | * Command Central 10.2 and higher 31 | 32 | ### Supported platforms 33 | 34 | All supported Windows and UNIX platforms. 35 | 36 | ### Supported use cases 37 | 38 | Provisioning of a new instance of CloudStreams Designer 10.2 or higher 39 | 40 | ## Running as a composite template 41 | 42 | 1. To import the sag-designer-cloudstreams/template.yaml file in Command Central, use one of the methods described in [Importing templates library](https://github.com/SoftwareAG/sagdevops-templates/wiki/Importing-templates-library) 43 | 2. To apply the template, follow the instructions in [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli) 44 | 45 | ### Example 46 | To provision CloudStreams Designer on the installation with alias `dev1`: 47 | 48 | ```bash 49 | sagcc exec templates composite apply sag-designer-cloudstreams nodes=dev1 \ 50 | repo.product=products-10.2 \ 51 | repo.fix=fixes-10.2 \ 52 | --sync-job --wait 360 53 | ``` 54 | -------------------------------------------------------------------------------- /templates/sag-designer-cloudstreams/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | alias: sag-designer-cloudstreams 21 | description: Software AG Designer > Services 22 | 23 | environments: 24 | default: 25 | designer.fixes: [] 26 | 27 | templates: 28 | cloudstreams: 29 | fixes: ${designer.fixes} 30 | products: 31 | LDev: # Service Development 32 | wcd: # CloudStreams plugin 33 | 34 | layers: 35 | designer: 36 | productRepo: ${repo.product} # install products from 37 | fixRepo: ${repo.fix} # install fixes from 38 | templates: cloudstreams 39 | 40 | provision: 41 | default: 42 | designer: ${nodes} 43 | -------------------------------------------------------------------------------- /templates/sag-designer-services/README.md: -------------------------------------------------------------------------------- 1 | # Designer Services 2 | 3 | Use this template to provision Designer Services: Designer Service Development, Local Version Control 4 | Integration, and Unit Test Framework 5 | 6 | ## Requirements 7 | 8 | ### Supported Software AG releases 9 | 10 | * Designer 10.2 and higher 11 | * Command Central 10.2 and higher 12 | 13 | ### Supported platforms 14 | 15 | All supported Windows and UNIX platforms. 16 | 17 | ### Supported use cases 18 | 19 | * Provisioning of new 10.2 or higher Designer Services 20 | * Installing latest fixes 21 | 22 | ## Provisioning of new Designer Services instance 23 | 24 | Consult [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli) for additional information about applying templates. 25 | 26 | Provision Designer Services with alias `dev1`: 27 | 28 | ```bash 29 | sagcc exec templates composite apply sag-designer-services nodes=dev1 \ 30 | repo.product=products-10.2 \ 31 | repo.fix=fixes-10.2 \ 32 | --sync-job --wait 360 33 | ``` 34 | 35 | -------------------------------------------------------------------------------- /templates/sag-designer-services/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | alias: sag-designer-services 21 | description: Software AG Designer > Services 22 | 23 | environments: 24 | default: 25 | repo.product: ${} # product repository is required 26 | repo.fix: "" # fix repository is required for fix installation only 27 | nodes: ${} # local or any other node alias 28 | 29 | designer.gwmdes.license.key: "*_GWMTS_10.*_*_*" # Default license key lookup 30 | designer.fixes: [] # TODO: list minimally required fix names 31 | 32 | templates: 33 | designer-services: 34 | # License needs to be configured in Designer UI > preferences 35 | licenses: 36 | "Designer/WmTestSuiteLicense.xml": "${designer.gwmdes.license.key}" 37 | fixes: ${designer.fixes} 38 | products: 39 | LDev: # Service Development 40 | vcs: # Local Version Control Integration 41 | GWMDes: # Unit Test Framework 42 | 43 | layers: 44 | designer: 45 | productRepo: ${repo.product} # install products from 46 | fixRepo: ${repo.fix} # install fixes from 47 | templates: designer-services 48 | 49 | provision: 50 | default: 51 | designer: ${nodes} 52 | -------------------------------------------------------------------------------- /templates/sag-exx-broker-attr/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # EntireX Broker 21 | 22 | The current template provisions an EntireX Broker. 23 | 24 | This template demonstrates in detail how to install the EntireX Broker component and creating a new Broker instance with specifying a complete attribute file in the template. 25 | 26 | ## Requirements 27 | 28 | ### Supported Software AG releases 29 | 30 | * EntireX 10.3 and higher 31 | * Command Central 10.3 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported use cases 38 | 39 | * Provisioning new environments of version 10.3 and higher 40 | * Installing latest fixes 41 | * Creating an EntireX Broker 42 | * Configuration of: 43 | * EntireX Broker attribute file 44 | 45 | ## Running as a composite template 46 | 47 | When importing the composite template to Command Central: 48 | Add the `template.yaml` and import that file using the Command Central CLI with the following command: 49 | 50 | ``` 51 | sagcc exec templates composite import -i template.yaml 52 | ``` 53 | 54 | For more information about applying templates, see [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli). 55 | 56 | To provision an instance of an EntireX Broker, use the Command Central CLI with the following command: 57 | 58 | ``` 59 | sagcc exec templates composite apply sag-exx-broker nodes= \ 60 | repo.product= \ 61 | repo.fix= 62 | ``` 63 | -------------------------------------------------------------------------------- /templates/sag-exx-broker/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # EntireX Broker 21 | 22 | The current template provisions an EntireX Broker. 23 | 24 | This template demonstrates in detail how to install the EntireX Broker component, creates and configures an EntireX Broker. Use this template as a reference when provisioning an EntireX Broker instances. 25 | 26 | ## Requirements 27 | 28 | ### Supported Software AG releases 29 | 30 | * EntireX 10.3 and higher 31 | * Command Central 10.3 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported use cases 38 | 39 | * Provisioning new environments of version 10.3 and higher 40 | * Installing latest fixes 41 | * Creating an EntireX Broker 42 | * Configuration of: 43 | * EntireX Broker parameters 44 | 45 | ## Running as a composite template 46 | 47 | When importing the composite template to Command Central: 48 | Add the `template.yaml` and import that file using the Command Central CLI with the following command: 49 | 50 | ``` 51 | sagcc exec templates composite import -i template.yaml 52 | ``` 53 | 54 | For more information about applying templates, see [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli). 55 | 56 | To provision an instance of an EntireX Broker, use the Command Central CLI with the following command: 57 | 58 | ``` 59 | sagcc exec templates composite apply sag-exx-broker nodes= \ 60 | repo.product= \ 61 | repo.fix= 62 | ``` 63 | -------------------------------------------------------------------------------- /templates/sag-infradc/readme.md: -------------------------------------------------------------------------------- 1 | # Infrastructure Data Collector 2 | 3 | Use this template to provision or migrate Infrastructure Data Collector 4 | 5 | ## Requirements and limitations 6 | 7 | ### Supported Software AG releases 8 | 9 | * Command Central 10.1 or higher 10 | * Infrastructure Data Collector 10.1 or higher 11 | 12 | ### Supported platforms 13 | 14 | All supported Windows and UNIX platforms. 15 | 16 | ### Supported use cases 17 | 18 | * Provisioning of new 10.1 or 10.3 environments 19 | * Installing latest fixes and support patches 20 | * Configuration of: 21 | * Ports 22 | * Memory 23 | * JNDI and JMS connections 24 | * Monitoring metatdata 25 | 26 | ## Running as a composite template 27 | 28 | To import the template file in Command Central, use one of the methods described in [Importing templates library](https://github.com/SoftwareAG/sagdevops-templates/wiki/Importing-templates-library) 29 | 30 | To apply the template, follow the instructions in [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli) 31 | 32 | Provision Infrastructure Data Collector on the installation with alias `node` and configure it to point to the [Universal Messaging realm server](../sag-um-server/) that listens at `nsp://umhost:9000`: 33 | 34 | ```bash 35 | sagcc exec templates composite apply sag-infradc nodes=node \ 36 | infradc.jms.host=umhost \ 37 | repo.product=products-10.1 repo.fix=fixes-10.1 \ 38 | --sync-job --wait 360 39 | ``` 40 | -------------------------------------------------------------------------------- /templates/sag-internaldatastore/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-internaldatastore/test.sh -------------------------------------------------------------------------------- /templates/sag-is-applatform/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-is-applatform 20 | description: Application Platform provisioning on top of IS instance 21 | 22 | environments: 23 | default: 24 | is.instance.name: default # IS instance name to provision on top 25 | is.instance.type: integrationServer # IS instance type: integrationServer (for all versions) or MSC (for 10.3 and lower version) 26 | applatform.fixes: ALL # Application Platform default fix list 27 | 28 | layers: 29 | runtime: 30 | productRepo: ${repo.product} 31 | fixRepo: ${repo.fix} 32 | templates: 33 | - appplatform 34 | 35 | templates: 36 | appplatform: 37 | fixes: ${applatform.fixes} 38 | products: 39 | PLS_IS: 40 | ${is.instance.type}: 41 | ${is.instance.name}: 42 | package.list: WmAppPlat # comma-separated list of packages (DO NOT USE SPACES) 43 | runtimeComponentId: integrationServer-${instance.name} # hint to find existing instance by id 44 | 45 | provision: 46 | default: 47 | runtime: ${nodes} 48 | -------------------------------------------------------------------------------- /templates/sag-is-cloudstreams/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-is-cloudstreams 20 | description: CloudStreams provisioning on top of IS/MSR instance 21 | 22 | environments: 23 | default: 24 | is.instance.name: default # IS instance name to provision on top 25 | is.instance.type: integrationServer # IS instance type: integrationServer(for all versions) or MSC(for 10.3 and lower) 26 | cst.fixes: [] # CloudStreams default fix list 27 | 28 | layers: 29 | runtime: 30 | productRepo: ${repo.product} 31 | fixRepo: ${repo.fix} 32 | templates: 33 | - cloudstreams 34 | 35 | templates: 36 | cloudstreams: 37 | fixes: ${cst.fixes} 38 | products: 39 | wst: 40 | ${is.instance.type}: 41 | ${is.instance.name}: 42 | package.list: WmCloudStreams,WmCloudStreamsAnalytics # comma-separated list of packages (DO NOT USE SPACES) 43 | runtimeComponentId: integrationServer-${instance.name} # hint to find existing instance by id 44 | 45 | provision: 46 | default: 47 | runtime: ${nodes} 48 | -------------------------------------------------------------------------------- /templates/sag-is-cloudstreams/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | # if managed image 22 | if [ -d $SAG_HOME/profiles/SPM ] ; then 23 | # point to local SPM 24 | export CC_SERVER=http://localhost:8092/spm 25 | export __is_instance_name=${__is_instance_name:-default} 26 | 27 | echo "Verifying managed container $CC_SERVER ..." 28 | sagcc get inventory products -e integrationServer --wait-for-cc 29 | 30 | export CC_WAIT=180 31 | 32 | echo "Verifying fixes ..." 33 | sagcc get inventory fixes 34 | # -e wMFix.integrationServer.Core 35 | 36 | echo "Verifying instances ..." 37 | sagcc get inventory components -e "OSGI-IS_${__is_instance_name}" 38 | 39 | echo "Start the instance ..." 40 | sagcc exec lifecycle components "OSGI-IS_${__is_instance_name}" restart -e DONE --sync-job 41 | 42 | echo "Verifying status ..." 43 | sagcc get monitoring runtimestatus "OSGI-IS_${__is_instance_name}" -e "STOPPED|UNRESPONSIVE,ONLINE" 44 | sagcc get monitoring runtimestatus "integrationServer-${__is_instance_name}" -e ONLINE 45 | fi 46 | 47 | echo "Verifying product runtime ..." 48 | curl -u Administrator:manage -s http://`hostname`:5555/ 49 | 50 | echo "Verifying CloudStreams ..." 51 | curl -u Administrator:manage -s http://`hostname`:5555/WmCloudStreams/ 52 | 53 | echo "DONE testing" 54 | -------------------------------------------------------------------------------- /templates/sag-is-cluster/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | # if managed image 22 | if [ -d $SAG_HOME/profiles/SPM ] ; then 23 | # point to local SPM 24 | export CC_SERVER=http://localhost:8092/spm 25 | export __is_instance_name=${__is_instance_name:-default} 26 | 27 | echo "Verifying managed container $CC_SERVER ..." 28 | sagcc get inventory products -e integrationServer --wait-for-cc 29 | 30 | export CC_WAIT=180 31 | 32 | echo "Verifying fixes ..." 33 | sagcc get inventory fixes 34 | # -e wMFix.integrationServer.Core 35 | 36 | echo "Verifying instances ..." 37 | sagcc get inventory components -e "OSGI-IS_${__is_instance_name}" 38 | 39 | echo "Start the instance ..." 40 | sagcc exec lifecycle components "OSGI-IS_${__is_instance_name}" start -e DONE --sync-job 41 | 42 | echo "Verifying status ..." 43 | sagcc get monitoring runtimestatus "OSGI-IS_${__is_instance_name}" -e ONLINE 44 | sagcc get monitoring runtimestatus "integrationServer-${__is_instance_name}" -e ONLINE 45 | fi 46 | 47 | echo "Verifying product runtime ..." 48 | curl -u Administrator:manage -s http://`hostname`:5555/ 49 | 50 | echo "TEST SUCCESSFUL" 51 | -------------------------------------------------------------------------------- /templates/sag-is-config/README.md: -------------------------------------------------------------------------------- 1 | 19 | # Configuring webMethods Integration Server and Microservices Runtime 20 | 21 | Use this template to configure webMethods Integration Server and Microservices Runtime 22 | 23 | Consult [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli) 24 | for general information about applying templates. 25 | 26 | ## Requirements 27 | 28 | ### Supported Software AG releases 29 | 30 | * Command Central 10.2 and higher 31 | * webMethods Integration Server 9.6 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported configurations 38 | 39 | * Messaging connections 40 | * JNDI and JMS connections 41 | 42 | ## Configuring Integration Server 43 | 44 | > IMPORTANT: this template must be applied on top of _existing_ Integration Server instance 45 | 46 | ### Configure Messaging connections 47 | 48 | ```bash 49 | sagcc exec templates composite apply sag-is-config \ 50 | nodes=node \ 51 | is.configs=messaging 52 | is.instance.name=default \ 53 | is.um.url=nsp://um01:9000 \ 54 | is.um.enabled=true \ 55 | is.um.jms.enabled=true \ 56 | --sync-job 57 | ``` 58 | 59 | ### Configure JNDI and JMS connections 60 | 61 | ```bash 62 | sagcc exec templates composite apply sag-is-config \ 63 | nodes=node \ 64 | is.configs=jndi-jms 65 | is.instance.name=default \ 66 | is.um.jndi.alias=DEFAULT_IS_JNDI_PROVIDER \ 67 | is.um.jms.enabled=true \ 68 | is.um.jms.alias=DEFAULT_IS_JMS_CONNECTION \ 69 | is.um.jms.enabled=true \ 70 | is.um.jms.cf.name=cf \ 71 | --sync-job 72 | ``` 73 | -------------------------------------------------------------------------------- /templates/sag-is-mft/README.md: -------------------------------------------------------------------------------- 1 | # ActiveTransfer Server/Gateway 2 | 3 | Use this template to provision ActiveTransfer server/Gateway 10.1 and higher. 4 | 5 | ## Requirements 6 | 7 | ### Supported Software AG releases 8 | 9 | * Command Central 10.1 and higher 10 | * Integration Server 10.1 and higher 11 | * ActiveTransfer Server/Gateway 10.1 and higher 12 | 13 | ### Supported platforms 14 | 15 | All supported Windows and UNIX platforms. 16 | 17 | ### Supported use cases 18 | 19 | * Provisioning of new environments 20 | * Installing latest fixes 21 | * Configuration of: 22 | * JDBC Pool alias for ActiveTransfer 23 | * Functional alias for ActiveTransfer 24 | 25 | ## Running as a composite template 26 | 27 | > IMPORTANT: Apply this template on top of an existing [Integration Server](../templates/sag-is-server) instance of the same release version as ActiveTransfer 28 | 29 | ## Provisioning ActiveTransfer Server/Gateway on Integration server 30 | 31 | ```bash 32 | sagcc exec templates composite apply sag-mft-server nodes=dev \ 33 | repo.product=products-10.1 \ 34 | repo.fix=fixes-10.1 \ 35 | --sync-job --wait 600 36 | ``` 37 | -------------------------------------------------------------------------------- /templates/sag-is-mft/template.yaml: -------------------------------------------------------------------------------- 1 | alias: sag-is-mft 2 | description: ActiveTransfer Server/Gateway 3 | 4 | environments: 5 | default: 6 | is.instance.name: default # Integration Server instance name 7 | 8 | mft.license.key: "*_(MAT|MAG)_10.*_*_*" # ActiveTransfer license key 9 | mft.fixes: ALL # ActiveTransfer fixes to install 10 | 11 | db.TYPE: ${} # REQUIRED: database type: ORACLE|SQLSERVER|DB2 12 | db.url: ${} # REQUIRED: database JDBC url 13 | db.password: ${} # REQUIRED: database username 14 | db.username: ${} # REQUIRED: database password 15 | 16 | layers: 17 | runtime: 18 | productRepo: ${repo.product} 19 | fixRepo: ${repo.fix} 20 | templates: 21 | - mft-server 22 | 23 | templates: 24 | mft-server: 25 | licenses: 26 | "IntegrationServer/instances/${is.instance.name}/packages/WmMFT/config/licenseKey.xml": ${mft.license.key} 27 | fixes: ${mft.fixes} 28 | products: 29 | MFT: 30 | MFTSupport: 31 | integrationServer: 32 | ${is.instance.name}: 33 | package.list: WmMFT # comma-separated list of packages (DO NOT USE SPACES) 34 | configuration: 35 | integrationServer-${instance.name}: 36 | COMMON-JDBC: 37 | COMMON-JDBC-MFT: 38 | Pool: 39 | "@alias": "MFT" 40 | Name: "MFT" 41 | Description: "MFT DBConnection" 42 | MinSize: "0" 43 | MaxSize: "10" 44 | MaxIdleTime: "60000" 45 | DatabaseServer: 46 | "@type": ${db.TYPE} 47 | URL: ${db.url} 48 | User: ${db.username} 49 | Password: ${db.password} 50 | COMMON-DBFUNCTION: 51 | COMMON-DBFUNCTION-ActiveTransfer: 52 | Function: 53 | "@alias": "ActiveTransfer" 54 | Description: "ActiveTransfer Function" 55 | PoolAlias: "MFT" 56 | provision: 57 | default: 58 | runtime: ${nodes} 59 | -------------------------------------------------------------------------------- /templates/sag-is-mft/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # if managed image 4 | if [ -d $SAG_HOME/profiles/SPM ] ; then 5 | # point to local SPM 6 | export CC_SERVER=http://localhost:8092/spm 7 | export is_instance_name=${is_instance_name:-default} 8 | 9 | echo "Verifying managed container $CC_SERVER ..." 10 | sagcc get inventory products -e MFTSupport --wait-for-cc 11 | 12 | export CC_WAIT=180 13 | 14 | echo "Verifying fixes ..." 15 | sagcc get inventory fixes -e wMFix.MFTServer 16 | 17 | echo "Verifying instances ..." 18 | sagcc get inventory components -e "OSGI-IS_${is_instance_name}" 19 | 20 | echo "Restart the instance ..." 21 | sagcc exec lifecycle components "OSGI-IS_${is_instance_name}" restart -e DONE --sync-job 22 | 23 | echo "Verifying instance status ..." 24 | sagcc get monitoring runtimestatus "integrationServer-${is_instance_name}" -e ONLINE 25 | 26 | echo "Verifying components ..." 27 | sagcc get inventory components -e "OSGI-IS_${is_instance_name}-WmMFT" refresh=true # FIXME: no refresh should be necessary! 28 | 29 | echo "Verifying WmMFT status ..." 30 | sagcc get monitoring runtimestatus "OSGI-IS_${is_instance_name}-WmMFT" -e ONLINE 31 | fi 32 | 33 | echo "Verifying product runtime ..." 34 | curl -u Administrator:manage -s http://localhost:5555/ 35 | 36 | # echo "Verifying ActiveTransfer runtime..." 37 | # curl -u Administrator:manage -s http://localhost:2080/WebInterface/login.html 38 | curl -u Administrator:manage -s http://localhost:5555/WmMFT/ 39 | 40 | echo "TEST SUCCESSFUL" 41 | -------------------------------------------------------------------------------- /templates/sag-is-server/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # if managed image 23 | if [ -d $SAG_HOME/profiles/SPM ] ; then 24 | # point to local SPM 25 | export CC_SERVER=http://localhost:8092/spm 26 | export __is_instance_name=${__is_instance_name:-default} 27 | 28 | echo "Verifying managed container $CC_SERVER ..." 29 | sagcc get inventory products -e integrationServer --wait-for-cc 30 | 31 | export CC_WAIT=180 32 | 33 | echo "Verifying fixes ..." 34 | sagcc get inventory fixes 35 | # -e wMFix.integrationServer.Core 36 | 37 | echo "Verifying instances ..." 38 | sagcc get inventory components -e "OSGI-IS_${__is_instance_name}" 39 | 40 | echo "Start the instance ..." 41 | sagcc exec lifecycle components "OSGI-IS_${__is_instance_name}" start -e DONE --sync-job 42 | 43 | echo "Verifying status ..." 44 | sagcc get monitoring runtimestatus "OSGI-IS_${__is_instance_name}" -e ONLINE 45 | sagcc get monitoring runtimestatus "integrationServer-${__is_instance_name}" -e ONLINE 46 | fi 47 | 48 | echo "Verifying product runtime ..." 49 | curl -u Administrator:manage -s http://`hostname`:5555/ 50 | 51 | echo "DONE testing" 52 | -------------------------------------------------------------------------------- /templates/sag-is-stateful-cluster/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | # if managed image 22 | if [ -d $SAG_HOME/profiles/SPM ] ; then 23 | # point to local SPM 24 | export CC_SERVER=http://localhost:8092/spm 25 | export __is_instance_name=${__is_instance_name:-default} 26 | 27 | echo "Verifying managed container $CC_SERVER ..." 28 | sagcc get inventory products -e integrationServer --wait-for-cc 29 | 30 | export CC_WAIT=180 31 | 32 | echo "Verifying fixes ..." 33 | sagcc get inventory fixes 34 | # -e wMFix.integrationServer.Core 35 | 36 | echo "Verifying instances ..." 37 | sagcc get inventory components -e "OSGI-IS_${__is_instance_name}" 38 | 39 | echo "Start the instance ..." 40 | sagcc exec lifecycle components "OSGI-IS_${__is_instance_name}" start -e DONE --sync-job 41 | 42 | echo "Verifying status ..." 43 | sagcc get monitoring runtimestatus "OSGI-IS_${__is_instance_name}" -e ONLINE 44 | sagcc get monitoring runtimestatus "integrationServer-${__is_instance_name}" -e ONLINE 45 | fi 46 | 47 | echo "Verifying product runtime ..." 48 | curl -u Administrator:manage -s http://`hostname`:5555/ 49 | 50 | echo "TEST SUCCESSFUL" 51 | -------------------------------------------------------------------------------- /templates/sag-mft-config/README.md: -------------------------------------------------------------------------------- 1 | # ActiveTransfer Listener ports configuration 2 | 3 | > STATUS: INCUBATING 4 | 5 | Use this template to configure ports on Active Transfer 10.1 and higher. 6 | 7 | ## Requirements 8 | 9 | ### Supported Software AG releases 10 | 11 | * Command Central 10.1 and higher 12 | * ActiveTransfer Server/Gateway 10.1 and higher 13 | 14 | ### Supported platforms 15 | 16 | All supported Windows and UNIX platforms. 17 | 18 | ### Supported configurations 19 | 20 | * Listener port configurations: 21 | * HTTP 22 | * HTTPS 23 | * FTP 24 | * SFTP 25 | 26 | ## Running as a composite template 27 | 28 | ### Listener ports configuration in ActiveTransfer 29 | 30 | Configure HTTP port 4081 and FTP port 2221 on ActiveTransfer `default` server instance: 31 | 32 | ```bash 33 | sagcc exec templates composite apply sag-mft-config nodes=dev \ 34 | mft.http.port=4081 mft.http.port.alias=http1 \ 35 | mft.ftp.port=2221 mft.ftp.port.alias=ftp1 \ 36 | mft.https.port.enabled=false \ 37 | mft.sftp.port.enabled=false \ 38 | --sync-job --wait 600 39 | ``` 40 | -------------------------------------------------------------------------------- /templates/sag-mft-config/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # if managed image 4 | if [ -d $SAG_HOME/profiles/SPM ] ; then 5 | # point to local SPM 6 | export CC_SERVER=http://localhost:8092/spm 7 | export is_instance_name=${is_instance_name:-default} 8 | 9 | echo "Verifying managed container $CC_SERVER ..." 10 | sagcc get inventory products -e MFTSupport --wait-for-cc 11 | 12 | export CC_WAIT=180 13 | 14 | echo "Restart the instance ..." 15 | sagcc exec lifecycle components "OSGI-IS_${is_instance_name}" restart -e DONE --sync-job 16 | 17 | echo "Verifying instance status ..." 18 | sagcc get monitoring runtimestatus "integrationServer-${is_instance_name}" -e ONLINE 19 | 20 | echo "Verifying WmMFT status ..." 21 | sagcc get monitoring runtimestatus "OSGI-IS_${is_instance_name}-WmMFT" -e ONLINE 22 | 23 | echo "Verifying configuration" 24 | sagcc get configuration instances OSGI-IS_${is_instance_name}-WmMFT -e COMMON-PORTS-MFT -w 1 25 | fi 26 | 27 | echo "Verifying product runtime ..." 28 | curl -u Administrator:manage http://localhost:${__mft_port_number}/WebInterface/login.html 29 | 30 | echo "TEST SUCCESSFUL" 31 | -------------------------------------------------------------------------------- /templates/sag-msc-server-103-and-lower/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-msc-server-103-and-lower/test.sh -------------------------------------------------------------------------------- /templates/sag-msc-server/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Microservices Runtime 21 | 22 | Use this template to provision and maintain Microservices Runtime 23 | 24 | ## Requirements 25 | 26 | None. 27 | 28 | ### Supported Software AG releases 29 | 30 | * Command Central 10.5 and higher 31 | * Microservices Runtime 10.5 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported use cases 38 | 39 | * Provisioning of new 10.5 or higher environments 40 | * Installing latest fixes and support patches 41 | * Configuration of: 42 | * License 43 | 44 | 45 | ## Provisioning of new server instance 46 | 47 | For information about applying templates, see [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli). 48 | 49 | To provision a `default` instance of Microservices Runtime 10.5 with all latest fixes, using license key alias `MSC_LIC` 50 | on a managed installation node alias `dev1`: 51 | 52 | ```bash 53 | sagcc exec templates composite apply sag-msc-server nodes=dev1 \ 54 | repo.product=webMethods-10.5 \ 55 | repo.fix=Empower \ 56 | msc.license.key=MSC_LIC \ 57 | --sync-job --wait 360 58 | 59 | To provision a `default` instance of Microservices Runtime 10.5 + layer product WmSAP with all latest fixes, using license key alias `MSC_LIC` 60 | on a managed installation node alias `dev1`: 61 | 62 | ```bash 63 | sagcc exec templates composite apply sag-msc-server nodes=dev1 \ 64 | repo.product=webMethods-10.5 \ 65 | repo.fix=Empower \ 66 | msc.products=[MSC,WmSAP] \ 67 | msc.license.key=MSC_LIC \ 68 | --sync-job --wait 360 69 | 70 | ``` 71 | -------------------------------------------------------------------------------- /templates/sag-msc-server/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-msc-server 20 | description: Microservices container instance 21 | dslVersion: "1.2" 22 | 23 | options: 24 | forceRestartWhenDone: false 25 | startupLayers: false 26 | 27 | environments: 28 | default: 29 | msc.license.key: "*_MSC_10.*_*_*" # license key 30 | msc.fixes: [] 31 | msc.products: [MSC] 32 | layers: 33 | runtime: 34 | productRepo: ${repo.product} 35 | fixRepo: ${repo.fix} 36 | templates: 37 | - msc-server 38 | templates: 39 | msc-server: 40 | licenses: 41 | "IntegrationServer/config/licenseKey.xml": "${msc.license.key}" 42 | fixes: ${msc.fixes} 43 | products: ${msc.products} 44 | provision: 45 | default: 46 | runtime: ${nodes} 47 | -------------------------------------------------------------------------------- /templates/sag-msc-server/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-msc-server/test.sh -------------------------------------------------------------------------------- /templates/sag-mws-applatform/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Application Platform on My webMethods Server 21 | 22 | Use this template to install Application Platform on My webMethods Server 10.1 and higher. 23 | 24 | ## Requirements 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 or higher 29 | * Application Platform 10.1 and higher 30 | * My webMethods Server 10.1 and higher 31 | 32 | ### Supported platforms 33 | 34 | All supported Windows and UNIX platforms. 35 | 36 | ### Supported use cases 37 | 38 | * Provisioning of new Application Platform on My webMethods Server instance 39 | * Installing latest fixes 40 | 41 | ## Running as a composite template 42 | 43 | Provision an instance of [My webMethods Server](../sag-mws-server/) first. 44 | 45 | Provision Application Platform onto the My webMethods Server instance running on node alias `dev1`: 46 | 47 | ```bash 48 | sagcc exec templates composite apply sag-mws-appplatform nodes=dev1 \ 49 | mws.instance.name=default \ 50 | repo.product=products-10.1 repo.fix=fixes-10.1 \ 51 | --sync-job --wait 360 52 | ``` 53 | -------------------------------------------------------------------------------- /templates/sag-mws-applatform/template.yaml: -------------------------------------------------------------------------------- 1 | alias: sag-mws-applatform 2 | description: Application platform on MWS 3 | 4 | environments: 5 | default: 6 | mws.instance.name: default # MWS instance name 7 | mws.applatform.fixes: ALL 8 | 9 | layers: 10 | runtime: 11 | productRepo: ${repo.product} 12 | fixRepo: ${repo.fix} 13 | templates: 14 | - appPlatformMWS 15 | 16 | templates: 17 | appPlatformMWS: 18 | fixes: ${mws.applatform.fixes} 19 | products: 20 | PLS_MWS: 21 | MwsProgramFiles: 22 | ${mws.instance.name}: 23 | 24 | provision: 25 | default: 26 | runtime: ${nodes} 27 | -------------------------------------------------------------------------------- /templates/sag-mws-infradcui/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Infrastructure Data Collector UI on My webMethods Server 21 | 22 | Use this template to provision Infrastructure Data Collector UI on My webMethods Server 10.1 and higher. 23 | 24 | ## Requirements 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 or higher 29 | * Infrastructure Data Collector UI 10.1 and higher 30 | * My webMethods Server 10.1 and higher 31 | 32 | ### Supported platforms 33 | 34 | All supported Windows and UNIX platforms. 35 | 36 | ### Supported use cases 37 | 38 | * Provisioning of new Infrastructure Data Collector UI on top of existing My webMethods Server instance 39 | * Installing latest fixes 40 | 41 | ## Running as a composite template 42 | 43 | Provision an instance of [My webMethods Server](../sag-mws-server/) first. 44 | 45 | Provision Infrastructure Data Collector UI onto the My webMethods Server instance running on node alias `dev1`: 46 | 47 | ```bash 48 | sagcc exec templates composite apply sag-mws-infradcui nodes=dev1 \ 49 | mws.instance.name=default \ 50 | repo.product=products-10.1 repo.fix=fixes-10.1 \ 51 | --sync-job --wait 360 52 | ``` 53 | -------------------------------------------------------------------------------- /templates/sag-mws-infradcui/template.yaml: -------------------------------------------------------------------------------- 1 | alias: sag-mws-infradcui 2 | description: Infrastructure Data Collector UI on MWS 3 | 4 | environments: 5 | default: 6 | mws.instance.name: default # MWS instance name 7 | mws.infradcui.fixes: ALL 8 | 9 | layers: 10 | runtime: 11 | productRepo: ${repo.product} 12 | fixRepo: ${repo.fix} 13 | templates: 14 | - infradcui 15 | 16 | templates: 17 | infradcui: 18 | fixes: ${mws.infradcui.fixes} 19 | products: 20 | centralConfiguratorUI: 21 | infraDCUI: 22 | MwsProgramFiles: 23 | ${mws.instance.name}: 24 | 25 | provision: 26 | default: 27 | runtime: ${nodes} 28 | -------------------------------------------------------------------------------- /templates/sag-mws-mftui/README.md: -------------------------------------------------------------------------------- 1 | # ActiveTransfer User Iterface on My webMethods Server 2 | 3 | Use this template to provision ActiveTransfer Web UI 10.1 and higher. 4 | 5 | ## Requirements 6 | 7 | ### Supported Software AG releases 8 | 9 | * Command Central 10.1 and higher 10 | * ActiveTransfer Server/Gateway 10.1 and higher 11 | * My webMethods Server 10.1 and higher 12 | 13 | ### Supported platforms 14 | 15 | All supported Windows and UNIX platforms. 16 | 17 | ### Supported use cases 18 | 19 | * Provisioning of new environments 20 | * Installing latest fixes 21 | 22 | ## Running as a composite template 23 | 24 | > Important: Apply this template on top of existing [My WebMethods server](../sag-mws-server) instance with same releases version as ActiveTransfer 25 | 26 | ### Provisioning ActiveTransfer MWS_UI on My WebMethods server 27 | 28 | ```bash 29 | sagcc exec templates composite apply sag-mws-mftui nodes=dev \ 30 | repo.product=products-10.1 \ 31 | repo.fix=fixes-10.1 \ 32 | --sync-job --wait 600 33 | ``` 34 | -------------------------------------------------------------------------------- /templates/sag-mws-mftui/template.yaml: -------------------------------------------------------------------------------- 1 | alias: sag-mws-mftui 2 | description: ActiveTransfer UI provisioning on top of MWS 3 | 4 | environments: 5 | default: 6 | mws.instance.name: default # MWS instance name 7 | mws.mftui.fixes: ALL # MFT UI fixes 8 | 9 | layers: 10 | runtime: 11 | productRepo: ${repo.product} 12 | fixRepo: ${repo.fix} 13 | templates: 14 | - mft-portal 15 | 16 | templates: 17 | mft-portal: 18 | fixes: ${mws.mftui.fixes} 19 | products: 20 | MFTTransfer: 21 | MwsProgramFiles: 22 | ${mws.instance.name}: 23 | 24 | provision: 25 | default: 26 | runtime: ${nodes} 27 | -------------------------------------------------------------------------------- /templates/sag-mws-mftui/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | # if managed image 4 | if [ -d $SAG_HOME/profiles/SPM ] ; then 5 | # point to local SPM 6 | export CC_SERVER=http://localhost:8092/spm 7 | export mws_instance_name=${__mws_instance_name:-default} 8 | 9 | echo "Verifying managed container $CC_SERVER ..." 10 | sagcc get inventory products -e MFTTransfer --wait-for-cc 11 | 12 | export CC_WAIT=180 13 | 14 | echo "Verifying fixes ..." 15 | sagcc get inventory fixes -e wMFix.MFTPortal 16 | 17 | echo "Verifying instances ..." 18 | sagcc get inventory components -e "OSGI-MWS_${__mws_instance_name}" 19 | 20 | echo "Start the instance ..." 21 | sagcc exec lifecycle components "OSGI-MWS_${__mws_instance_name}" restart -e DONE --sync-job 22 | 23 | echo "Verifying status ..." 24 | sagcc get monitoring runtimestatus "OSGI-MWS_${__mws_instance_name}" -e ONLINE 25 | fi 26 | 27 | echo "Verifying product runtime ..." 28 | curl -u Administrator:manage -s http://localhost:8585/ 29 | 30 | echo "Verifying ActiveTransfer MWS UI ..." 31 | curl -u Administrator:manage -s http://localhost:8585/webm.apps.tasks.admin.integration.mft.server.mgmt 32 | 33 | echo "TEST SUCCESSFUL" 34 | -------------------------------------------------------------------------------- /templates/sag-mws-server/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # My webMethods Server 21 | 22 | Use this template to provision My webMethods Server 10.1 and higher. 23 | 24 | ## Requirements 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 and higher 29 | * My webMethods Server 10.1 and higher 30 | 31 | ### Supported platforms 32 | 33 | All supported Windows and UNIX platforms. 34 | 35 | ## Local development and testing using Docker 36 | 37 | ### With SQL Server database 38 | 39 | Provision [SQL Server](../sag-db-sqlserver) container and schemas 40 | 41 | Provision My webMethods Server: 42 | 43 | ```bash 44 | CC_ENV=sqlserver ./provisionw sag-mws-server 45 | ``` 46 | -------------------------------------------------------------------------------- /templates/sag-ninja-server/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-ninja-server/Dockerfile -------------------------------------------------------------------------------- /templates/sag-ninja-server/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-ninja-server/entrypoint.sh -------------------------------------------------------------------------------- /templates/sag-ninja-server/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-ninja-server 20 | description: Ninja server or layer 21 | 22 | environments: 23 | default: 24 | ninja.instance.name: default 25 | ninja.http.port: 4444 26 | ninja.https.port: 4445 27 | ninja.jmx.port: 4446 28 | ninja.console.port: 4447 29 | ninja.memory.max: 128 30 | 31 | layers: 32 | runtime: 33 | productRepo: ${repo.product} 34 | fixRepo: ${repo.fix} 35 | templates: ninja 36 | 37 | templates: 38 | ninja: 39 | products: 40 | NINJA: 41 | ${ninja.instance.name}: 42 | http.port: ${ninja.http.port} 43 | https.port: ${ninja.https.port} 44 | jmx.port: ${ninja.jmx.port} 45 | console.port: ${ninja.console.port} 46 | configuration: 47 | OSGI-NINJA_${instance.name}: 48 | COMMON-MEMORY: 49 | COMMON-MEMORY: 50 | InitSize: 64 51 | MaxSize: ${ninja.memory.max} 52 | 53 | provision: 54 | default: 55 | runtime: ${nodes} 56 | -------------------------------------------------------------------------------- /templates/sag-ninja-server/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-ninja-server/test.sh -------------------------------------------------------------------------------- /templates/sag-onedata/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | alias: sag-onedata 21 | description: Onedata server 22 | 23 | environments: 24 | default: 25 | onedata.ode_mdr.license.key: "*_ODEDR_10.*_*_*" # OneData MDR Module license key 26 | onedata.ode_mdm.license.key: "*_ODE_10.*_*_*" # OneData MDM Module license key 27 | onedata.fixes: ALL # Fixes to install 28 | 29 | layers: 30 | runtime: 31 | productRepo: ${repo.product} # default repository to install products from 32 | fixRepo: ${repo.fix} # default repository to install fixes from 33 | templates: 34 | - onedata-server # template to apply 35 | 36 | templates: 37 | onedata-server: 38 | licenses: 39 | "profiles/ODE/bin/onedata/config/mdr_sag-license.xml": "${onedata.ode_mdr.license.key}" 40 | "profiles/ODE/bin/onedata/config/sag-license.xml": "${onedata.ode_mdm.license.key}" 41 | fixes: ${onedata.fixes} 42 | products: 43 | ODE_LOCATE: 44 | ODE_MDR: 45 | ODE_MDM: 46 | ODE: 47 | 48 | provision: 49 | default: 50 | runtime: ${nodes} # apply to selected nodes 51 | -------------------------------------------------------------------------------- /templates/sag-optimize-analysis/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Optimize Analytic Engine 21 | 22 | > STATUS: INCUBATING 23 | 24 | Use this template to install Optimize Analytic Engine 10.1 and higher. 25 | 26 | ## Requirements 27 | 28 | ### Supported Software AG releases 29 | 30 | * Command Central 10.1 and higher 31 | * Optimize Analytic Engine 10.1 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported use cases 38 | 39 | * Provisioning Optimize Analytic Engine version 10.1 or higher 40 | * Installing Optimize Analytic Engine latest fixes 41 | * Adding basic Optimize Analytic Engine configuration 42 | 43 | ## Example how to run the composite template 44 | 45 | ```bash 46 | sagcc exec templates composite apply sag-optimize-analysis nodes=optimize \ 47 | repo.product=optimize repo.fix=Empower \ 48 | --sync-job --wait 360 49 | ``` 50 | 51 | ## Local development and testing using Docker 52 | 53 | ### With SQL Server database 54 | 55 | Provision [SQL Server](../sag-db-sqlserver) container and schemas 56 | 57 | Provision Optimize: 58 | 59 | ```bash 60 | CC_ENV=sqlserver ./provisionw sag-optimize-analysis 61 | ``` 62 | -------------------------------------------------------------------------------- /templates/sag-optimize-wsdc/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Optimize Web Service Data Collector 21 | 22 | > STATUS: INCUBATING 23 | 24 | Use this template to install Optimize Web Service Data Collector 10.1 and higher. 25 | 26 | ## Requirements 27 | 28 | ### Supported Software AG releases 29 | 30 | * Command Central 10.1 and higher 31 | * Optimize Web Service Data Collector 10.1 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported use cases 38 | 39 | * Provisioning Optimize Web Service Data Collector version 10.1 and higher 40 | * Installing Optimize Web Service Data Collector latest fixes 41 | * Adding basic Optimize Web Service Data Collector configuration 42 | 43 | ## Example how to run the composite template 44 | 45 | To provision a default instance of Optimize Web Service Data Collector: 46 | 47 | ```bash 48 | sagcc exec templates composite apply sag-optimize-wsdc nodes=optimize \ 49 | repo.product=optimize repo.fix=Empower \ 50 | --sync-job --wait 360 51 | ``` -------------------------------------------------------------------------------- /templates/sag-optimize-wsdc/template.yaml: -------------------------------------------------------------------------------- 1 | alias: sag-optimize-wsdc 2 | description: The minimal required template can be used to install single instance of Optimize Web Service Data Collector 3 | 4 | environments: 5 | 6 | default: 7 | # optimize web service data collector 8 | optimize.fixes: ALL 9 | optimize.jms.protocol: nsp 10 | optimize.jms.host: localhost 11 | optimize.jms.port: 9000 12 | optimize.config.agent.protocol: http 13 | optimize.config.agent.port: 15001 14 | optimize.config.agent.host: localhost 15 | optimize.wsdc.protocol: http 16 | optimize.wsdc.port: 12603 17 | 18 | layers: 19 | runtime: 20 | productRepo: ${repo.product} # install products from 21 | fixRepo: ${repo.fix} # install fixes from 22 | templates: [wsdc] 23 | 24 | templates: 25 | wsdc: 26 | fixes: ${optimize.fixes} 27 | products: 28 | optimizeWSDataCollector: 29 | default: 30 | configuration: 31 | optimizeWSDataCollector-dataCollector: 32 | COMMON-COMPONENT-ENDPOINTS: 33 | COMMON-COMPONENT-ENDPOINTS-JMS-Provider: 34 | "@alias": JMS-Provider 35 | Transport: 36 | Protocol: ${optimize.jms.protocol} 37 | Host: ${optimize.jms.host} 38 | Port: ${optimize.jms.port} 39 | COMMON-COMPONENT-ENDPOINTS-Configuration-Agent: 40 | "@alias": Configuration-Agent 41 | Transport: 42 | Protocol: ${optimize.config.agent.protocol} 43 | Host: ${optimize.config.agent.host} 44 | Port: ${optimize.config.agent.port} 45 | COMMON-COMPONENT-ENDPOINTS-WS-Registry: 46 | "@alias": WS-Registry 47 | Transport: 48 | Protocol: ${optimize.wsdc.protocol} 49 | Host: ${node.host} 50 | Port: ${optimize.wsdc.port} 51 | provision: 52 | default: 53 | runtime: ${nodes} -------------------------------------------------------------------------------- /templates/sag-optimize-wsdc/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright пїЅ 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | 22 | # if managed image 23 | if [ -d $SAG_HOME/profiles/SPM ] ; then 24 | export CC_SERVER=http://localhost:8092/spm 25 | 26 | echo "Verifying managed container $CC_SERVER ..." 27 | sagcc get inventory products -e SPM --wait-for-cc 28 | 29 | export CC_WAIT=5 30 | echo "Verifying fixes ..." 31 | sagcc get inventory fixes 32 | 33 | echo "Verifying instances ..." 34 | sagcc get inventory components -e optimizeWSDataCollector-dataCollector 35 | 36 | echo "Verifying configs ..." 37 | sagcc get configuration instances optimizeWSDataCollector-dataCollector COMMON-COMPONENT-ENDPOINTS-JMS-Provider -e JMS-Provider 38 | sagcc get configuration instances optimizeWSDataCollector-dataCollector COMMON-COMPONENT-ENDPOINTS-Configuration-Agent -e Configuration-Agent 39 | sagcc get configuration instances optimizeWSDataCollector-dataCollector COMMON-COMPONENT-ENDPOINTS-WS-Registry -e WS-Registry 40 | 41 | echo "Verifying status ..." 42 | sagcc get monitoring runtimestatus optimizeWSDataCollector-dataCollector -e ONLINE 43 | fi 44 | 45 | echo "Verifying product runtime ..." 46 | curl -H Accept:text http://localhost:12603/services/WSProcessDataCollector.wsdl 47 | 48 | echo "TEST SUCCESSFUL" 49 | -------------------------------------------------------------------------------- /templates/sag-spm-boot-local/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ############################################################################### 20 | cc.installer=cc-def-10.2-fix1-${platform}.sh 21 | node=builder 22 | install.dir=${user.home}/${node} 23 | -------------------------------------------------------------------------------- /templates/sag-spm-boot-local/template.yaml: -------------------------------------------------------------------------------- 1 | ####################################################################################### 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ####################################################################################### 20 | alias: sag-spm-boot-local 21 | description: Local installation on Command Central host 22 | 23 | environments: 24 | default: 25 | # REQUIRED 26 | cc.installer: ${} # Command Central bootstrap installer 27 | install.dir: ${} # Installation dir, e.g. /home/user/dev${spm.port} 28 | 29 | spm.port: 8192 # UNIQUE HTTP port, must be free 30 | node: dev${spm.port} # UNIQUE new node alias 31 | 32 | layers: 33 | infra: 34 | templates: 35 | - spm 36 | 37 | templates: 38 | spm: 39 | products: 40 | SPM: 41 | OSGI-SPM: # REQUIRED for registering OSGI-SPM as infrastructure layer instance 42 | 43 | provision: 44 | default: 45 | infra: ${node} 46 | 47 | nodes: 48 | default: 49 | ${node}: 50 | host: localhost # always on the same host where CCE is running 51 | port: ${spm.port} # this is HTTP SPM port 52 | secure: false # Use HTTP port for development 53 | credentials: DEFAULT_ADMINISTRATOR # SPM credentials to set 54 | bootstrapInfo: 55 | installer: ${cc.installer} # CC bootstrap installer file name 56 | installDir: ${install.dir} # local installation directory 57 | -------------------------------------------------------------------------------- /templates/sag-spm-boot-ssh/env.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 3 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ############################################################################### 20 | cc.installer=cc-def-10.4-fix2-lnxamd64.sh 21 | os.credentials.key=DEFAULT_ADMINISTRATOR 22 | -------------------------------------------------------------------------------- /templates/sag-spm-config/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Platform Manager Configurations 21 | 22 | Use this template to configure Platform Manager. 23 | 24 | ## Requirements and limitations 25 | 26 | ### Supported Software AG releases 27 | 28 | * Platform Manager 9.8 and higher 29 | * Command Central 10.2 and higher 30 | 31 | ### Supported platforms 32 | 33 | All supported Windows and UNIX platforms. 34 | 35 | ### Supported use cases 36 | 37 | * Configuration of: 38 | * Tanuki Java Service wrapper 39 | * Java System properties 40 | * Monitoring interval 41 | 42 | ## Running as a composite template 43 | 44 | Apply custom configurations to Platform Managers, registered as `node1` and `node2`: 45 | 46 | ```bash 47 | sagcc exec templates composite apply sag-spm-config nodes=[node1,node2] \ 48 | hello.world=spm \ 49 | --sync-job --wait 360 50 | ``` 51 | -------------------------------------------------------------------------------- /templates/sag-spm-config/test.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-spm-config/test.properties -------------------------------------------------------------------------------- /templates/sag-spm-config/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright � 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 4 | # 5 | # SPDX-License-Identifier: Apache-2.0 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | #******************************************************************************* 20 | 21 | # if managed image 22 | if [ -d $SAG_HOME/profiles/SPM ] ; then 23 | # point to local SPM 24 | export CC_SERVER=http://localhost:8092/spm 25 | 26 | echo "Verifying managed container $CC_SERVER ..." 27 | sagcc get inventory products -e SPM --wait-for-cc 28 | 29 | export CC_WAIT=5 30 | echo "Verifying fixes ..." 31 | sagcc get inventory fixes 32 | # -e wMFix.SPM 33 | 34 | echo "Verifying instances ..." 35 | sagcc get inventory components -e OSGI-SPM 36 | 37 | echo "Verifying status ..." 38 | sagcc get monitoring runtimestatus OSGI-SPM -e ONLINE 39 | sagcc get monitoring runtimestatus OSGI-SPM-ENGINE -e ONLINE 40 | 41 | echo "Verifying configs ..." 42 | sagcc get configuration data OSGI-SPM COMMON-JAVASYSPROPS -f text -e hello.world 43 | sagcc get configuration data OSGI-SPM-ENGINE com.softwareag.platform.management.common.monitoring.BasicMonitoringService -f text -e "15" 44 | fi 45 | 46 | echo "Verifying product runtime ..." 47 | curl -u Administrator:manage -H Accept:text http://localhost:8092/spm/inventory/products 48 | 49 | echo "DONE testing" 50 | -------------------------------------------------------------------------------- /templates/sag-spm-connect/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Connecting Command Central to an Existing Platform Manager 21 | 22 | With this template you can connect Command Central to an existing Platform Manager (SPM) installation on a remote machine. 23 | 24 | ## Requirements and limitations 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 and higher 29 | * Platform Manager 10.1 and higher 30 | 31 | ### Supported platforms 32 | 33 | All supported Windows and UNIX platforms. 34 | 35 | ## Running as a standalone composite template on Windows 36 | 37 | To connect Command Central to an existing Platform Manager listening on port 8092 on remote1 host: 38 | 39 | ```bash 40 | sagcc exec templates composite apply sag-spm-connect hosts=remote1 \ 41 | spm.port=8092 \ 42 | --sync-job --wait 360 43 | ``` 44 | 45 | > IMPORTANT: If you use Command Central 10.1 you have to monitor the job completion with a separate command: 46 | 47 | ```bash 48 | sagcc exec templates composite apply sag-spm-connect hosts=remote1 \ 49 | spm.port=8092 50 | sagcc list jobmanager jobs --wait 360 -e DONE 51 | ``` 52 | 53 | ## Creating and connecting a new stack to the remote infrastructure layer in the web user interface 54 | 55 | 1. Open Command Central > Stacks 56 | 2. Add a new stack 57 | 3. To add a new layer, layer > Existing nodes 58 | * Select the INFRA-EXISTING layer definition 59 | * Enter a name and description for the layer 60 | * Select the target machine fromthe list of nodes 61 | After you finish the wizard, Command Central creates the new infrastructure layer. 62 | -------------------------------------------------------------------------------- /templates/sag-spm-connect/docker-compose.yml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | 20 | version: "3.2" 21 | 22 | services: 23 | provision: 24 | image: daerepository03.eur.ad.sag:4443/ccdevops/commandcentral-builder:$TAG 25 | entrypoint: bash -c '/opt/sagtools/provision.sh && ./test.sh' 26 | environment: 27 | - __hosts=127.0.0.1 # required template parameter 28 | volumes: 29 | - ./:/src/ # required for env.properties and test.sh 30 | -------------------------------------------------------------------------------- /templates/sag-spm-connect/env.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-spm-connect/env.properties -------------------------------------------------------------------------------- /templates/sag-spm-connect/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-spm-connect 20 | description: Connect running SPM nodes 21 | dslVersion: "1.1" 22 | 23 | environments: 24 | default: 25 | hosts: ${} # REQUIRED: host names to connect to 26 | spm.port: 8092 # Remote SPM HTTP/S port 27 | spm.secure: false # Use SSL? 28 | spm.credentials.key: DEFAULT_ADMINISTRATOR # Remote SPM connection credentials 29 | 30 | layers: 31 | infra: 32 | templates: 33 | - spm 34 | 35 | templates: 36 | spm: 37 | products: 38 | SPM: 39 | OSGI-SPM: # REQUIRED for registering OSGI-SPM as infrastructure layer instance 40 | 41 | provision: 42 | default: 43 | infra: 44 | hosts: ${hosts} 45 | 46 | nodes: 47 | default: 48 | default: 49 | port: ${spm.port} # port to connect to 50 | secure: ${spm.secure} # HTTP/S port 51 | credentials: ${spm.credentials.key} # connection credentials 52 | -------------------------------------------------------------------------------- /templates/sag-spm-connect/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SoftwareAG/sagdevops-templates/df8b7be27a1e605b2d82f58d5ca4a6dcd8b2d897/templates/sag-spm-connect/test.sh -------------------------------------------------------------------------------- /templates/sag-spm-proxy/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Configuring Proxy Settings for Platform Manager 21 | 22 | With this template you can configure HTTP and HTTPS proxy configuration on existing Platform Manager nodes. 23 | 24 | ## Requirements and limitations 25 | 26 | ### Supported Software AG releases 27 | 28 | * Command Central 10.1 and higher 29 | * Platform Manager 10.1 and higher 30 | 31 | ### Supported platforms 32 | 33 | All supported Windows and UNIX platforms. 34 | 35 | ## Running as a standalone Composite Template on Windows 36 | 37 | To configure proxy configuration on the `local` Platform Manager: 38 | 39 | ```bash 40 | sagcc exec templates composite apply sag-spm-proxy proxy.http.host=proxyhost \ 41 | proxy.http.port=8080 \ 42 | --sync-job --wait 360 43 | ``` 44 | 45 | > IMPORTANT: If you use Command Central 10.1 you have to monitor the job completion with a separate command: 46 | 47 | ```bash 48 | sagcc exec templates composite apply sag-spm-proxy proxy.http.host=proxyhost \ 49 | proxy.http.port=8080 50 | sagcc list jobmanager jobs --wait 360 -e DONE 51 | ``` -------------------------------------------------------------------------------- /templates/sag-tc-server/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # if managed image 23 | if [ -d $SAG_HOME/profiles/SPM ] ; then 24 | # point to local SPM 25 | export CC_SERVER=http://localhost:8092/spm 26 | 27 | echo "Verifying managed container $CC_SERVER ..." 28 | sagcc get inventory products -e TES --wait-for-cc 29 | 30 | export CC_WAIT=60 31 | # echo "Verifying fixes ..." 32 | # sagcc get inventory fixes -e wMFix.TES 33 | 34 | echo "Verifying instances ..." 35 | sagcc get inventory components -e TES-default 36 | 37 | echo "Start the instance ..." 38 | sagcc exec lifecycle components TES-default start -e DONE --sync-job 39 | 40 | echo "Verifying status ..." 41 | sagcc get monitoring runtimestatus TES-default -e ONLINE 42 | 43 | # echo "Verifying configs ..." 44 | # sagcc get configuration data TES-default COMMON-MEMORY -e 512 45 | fi 46 | 47 | echo "Verifying product runtime ..." 48 | curl http://localhost:9010/config 49 | 50 | echo "DONE testing" 51 | -------------------------------------------------------------------------------- /templates/sag-tdb-server/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-tdb-server 20 | description: Terracotta DB server 21 | 22 | environments: 23 | default: 24 | #tdb.tdbserver.license.key: ${} # REQUIRED: license key 25 | tdb.fixes: ALL 26 | tdb.memory.init: 128 # minimil memory configuration 27 | tdb.memory.max: 512 # minimal memory configuration 28 | 29 | layers: 30 | runtime: 31 | productRepo: ${repo.product} 32 | fixRepo: ${repo.fix} 33 | templates: 34 | - tdb-server 35 | 36 | templates: 37 | tdb-server: 38 | # licenses: 39 | # "Terracotta/???": ${tdb.tdbserver.license.key} 40 | fixes: ${tdb.fixes} 41 | products: 42 | TDBServer: 43 | # default: 44 | # configuration: 45 | # TDBServer-default: 46 | # JVM-OPTIONS: 47 | # JVM-OPTIONS: 48 | # options: ${tdb.jvm.options} 49 | 50 | provision: 51 | default: 52 | runtime: ${nodes} 53 | -------------------------------------------------------------------------------- /templates/sag-um-cluster/README.md: -------------------------------------------------------------------------------- 1 | # Universal Messaging Cluster 2 | 3 | > STATUS: INCUBATING 4 | 5 | Use this template to provision, maintain, or upgrade a Universal Messaging cluster with two or three nodes, or a Universal Messaging cluster with four nodes and two sites. 6 | 7 | ## Requirements 8 | 9 | ### Supported Software AG releases 10 | 11 | * Universal Messaging 9.8 and higher 12 | * Command Central 10.3 and higher 13 | 14 | ### Supported platforms 15 | 16 | All supported Windows and UNIX platforms. 17 | 18 | ### Supported use cases 19 | 20 | * Provisioning of new 9.8 or higher environments 21 | * Installing latest fixes and support patches 22 | * In-place upgrades to 9.12 or higher 23 | * Configuration of: 24 | * License 25 | * JVM memory 26 | * NHP and JMX ports 27 | * COMMON-JAVASYSPROPS configuration in YAML format (supported for Universal Messaging 10.1 and higher) 28 | * COMMON-CLUSTER configuration for two, three, or four nodes 29 | * Building docker images for 10.x releases 30 | 31 | ## Provisioning a new cluster instance 32 | 33 | For more information about applying templates, see [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli). 34 | 35 | To provision a `default` instance of a Universal Messaging 10.5 cluster with alias name `testCluster`, consisting of two nodes, listening on default ports 9000 and 9988 (JMX), with 128mb of memory, and install all latest fixes: 36 | 37 | ```bash 38 | sagcc exec templates composite apply sag-um-cluster nodes=[dev1,dev2] \ 39 | um.memory.max=512 \ 40 | repo.product=webMethods-10.5_GA \ 41 | repo.fix=GA_Fix_Repo \ 42 | um.cluster=testCluster \ 43 | --sync-job --wait 360 44 | ``` 45 | -------------------------------------------------------------------------------- /templates/sag-um-cluster/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # if managed image 23 | export CC_SERVER=http://dev1:8092/spm 24 | 25 | echo "Verifying managed container $CC_SERVER ..." 26 | sagcc get inventory products -e NUMRealmServer --wait-for-cc 27 | 28 | export CC_WAIT=60 29 | echo "Verifying fixes ..." 30 | sagcc get inventory fixes 31 | # -e wMFix.NUMRealmServer 32 | 33 | echo "Verifying instances ..." 34 | sagcc get inventory components -e Universal-Messaging-default 35 | 36 | echo "Start the instance ..." 37 | sagcc exec lifecycle components Universal-Messaging-default start -e DONE --sync-job 38 | 39 | echo "Verifying status ..." 40 | sagcc get monitoring runtimestatus Universal-Messaging-default -e ONLINE 41 | 42 | echo "Verifying configs ..." 43 | sagcc get configuration data Universal-Messaging-default COMMON-CLUSTER -f xml -e cluster 44 | 45 | echo "DONE testing" 46 | -------------------------------------------------------------------------------- /templates/sag-um-config-join/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # Universal Messaging Remote Channel Join 21 | 22 | > STATUS: INCUBATING 23 | 24 | Use this template to create a channel with an outgoing join to a channel on a remote realm. 25 | 26 | ## Requirements 27 | 28 | ### Supported Software AG releases 29 | 30 | * Universal Messaging 10.1 and higher 31 | * Command Central 10.3 and higher 32 | 33 | ### Supported platforms 34 | 35 | All supported Windows and UNIX platforms. 36 | 37 | ### Supported use cases 38 | 39 | * Creation of a channel, that has a join to a remote channel, on Universal Messaging realm server 40 | 41 | 42 | ## Channel with join creation 43 | 44 | For information about applying templates, see [Applying template using Command Central CLI](https://github.com/SoftwareAG/sagdevops-templates/wiki/Using-default-templates#applying-template-using-command-central-cli). 45 | 46 | To create a channel `c1`, on Universal Messaging instance `umserver`, that has an outgoing join to an already existing channel `c2` on Universal Messaging instance `umserver2` listening on port `9100`. 47 | 48 | ```bash 49 | sagcc exec templates composite apply sag-um-config-join 50 | ``` 51 | -------------------------------------------------------------------------------- /templates/sag-um-server/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | #******************************************************************************* 3 | # Copyright (c) 2011-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., 4 | # Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. 5 | # 6 | # SPDX-License-Identifier: Apache-2.0 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | #******************************************************************************* 21 | 22 | # if managed image 23 | if [ -d $SAG_HOME/profiles/SPM ] ; then 24 | # point to local SPM 25 | export CC_SERVER=http://localhost:8092/spm 26 | 27 | echo "Verifying managed container $CC_SERVER ..." 28 | sagcc get inventory products -e NUMRealmServer --wait-for-cc 29 | 30 | export CC_WAIT=60 31 | echo "Verifying fixes ..." 32 | sagcc get inventory fixes 33 | # -e wMFix.NUMRealmServer 34 | 35 | echo "Verifying instances ..." 36 | sagcc get inventory components -e Universal-Messaging-default 37 | 38 | echo "Start the instance ..." 39 | sagcc exec lifecycle components Universal-Messaging-default start -e DONE --sync-job 40 | 41 | echo "Verifying status ..." 42 | sagcc get monitoring runtimestatus Universal-Messaging-default -e ONLINE 43 | 44 | # echo "Verifying configs ..." 45 | # sagcc get configuration data Universal-Messaging-default COMMON-JAVASYSPROPS -f text -e 9988 46 | fi 47 | 48 | echo "TODO: Verifying product runtime ..." 49 | # How? 50 | 51 | echo "DONE testing" 52 | -------------------------------------------------------------------------------- /templates/sag-update/template.yaml: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright 2013 - 2018 Software AG, Darmstadt, Germany and/or its licensors 3 | # 4 | # SPDX-License-Identifier: Apache-2.0 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | ############################################################################### 19 | alias: sag-update 20 | description: Install latest fixes 21 | 22 | environments: 23 | default: 24 | repo.fix: Empower 25 | nodes: local 26 | 27 | layers: 28 | runtime: 29 | fixRepo: ${repo.fix} 30 | templates: 31 | - updates 32 | 33 | templates: 34 | updates: 35 | fixes: ALL 36 | 37 | provision: 38 | default: 39 | runtime: ${nodes} 40 | --------------------------------------------------------------------------------