Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #52 from chirangaalwis/cf-is-pattern-2-version-change
Browse files Browse the repository at this point in the history
Migrate BOSH Release implementation from WSO2 IS version 5.4.0 to version 5.4.1 - WSO2 IS - pattern 2
  • Loading branch information
DilanUA authored Feb 20, 2018
2 parents 4454271 + 4e5e7f6 commit 80fc8a0
Show file tree
Hide file tree
Showing 25 changed files with 842 additions and 567 deletions.
Empty file.
37 changes: 18 additions & 19 deletions pattern-2/bosh-release/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# BOSH release for WSO2 Identity Server deployment pattern 2

This directory contains the BOSH release implementation for WSO2 Identity Server 5.4.0
[deployment pattern 2](https://docs.wso2.com/display/IS540/Deployment+Patterns#DeploymentPatterns-Pattern2-HAclustereddeploymentofWSO2IdentityServerwithWSO2IdentityAnalytics).
This directory contains the BOSH release implementation for WSO2 Identity Server 5.4.1
[deployment pattern 2](https://docs.wso2.com/display/IS541/Deployment+Patterns#DeploymentPatterns-Pattern2-HAclustereddeploymentofWSO2IdentityServerwithWSO2IdentityAnalytics).

![WSO2 Identity Server 5.4.0 deployment pattern 2](images/pattern-2.png)
![WSO2 Identity Server 5.4.1 deployment pattern 2](images/pattern-2.png)

The following sections provide general steps required for managing the WSO2 Identity Server 5.4.0 deployment pattern 2
The following sections provide general steps required for managing the WSO2 Identity Server 5.4.1 deployment pattern 2
BOSH release in a BOSH environment deployed in the desired IaaS.

For step-by-step guidelines to manage the BOSH release in specific environments, refer the following:
Expand All @@ -32,8 +32,8 @@ For step-by-step guidelines to manage the BOSH release in specific environments,

2. Obtain the following software distributions.

- WSO2 Identity Server 5.4.0 WUM updated product distribution
- WSO2 Identity Server Analytics 5.4.0 WUM updated product distribution
- WSO2 Identity Server 5.4.1 WUM updated product distribution
- WSO2 Identity Server Analytics 5.4.1 WUM updated product distribution
- [Java Development Kit (JDK) 1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- Relevant Java Database Connectivity (JDBC) connector (e.g. [MySQL JDBC driver](https://dev.mysql.com/downloads/connector/j/5.1.html)
if the external database used is MySQL)
Expand All @@ -50,23 +50,17 @@ For step-by-step guidelines to manage the BOSH release in specific environments,

In order to create the BOSH release for deployment pattern 2, you must follow the standard steps for creating a release with BOSH.

1. Move to `.deployment` directory of the deployment pattern 2 BOSH release.
1. Move to root directory of the deployment pattern 2 BOSH release.

```
cd <pivotal-cf-is>/pattern-2/bosh-release/.deployment
cd <pivotal-cf-is>/pattern-2/bosh-release/
```

2. Create a BOSH environment and login to it.

Please refer the [BOSH documentation](http://bosh.io/docs/init.html) for instructions on creating a BOSH environment in the desired IaaS.

3. Move back to the root directory of deployment pattern 2 BOSH release (`<pivotal-cf-is>/pattern-2/bosh-release`).

```
cd ..
```

4. Add the WSO2 Identity Server 5.4.0 and Identity Server Analytics 5.4.0 WUM updated product distributions, JDK distribution and MySQL JDBC driver
3. Add the WSO2 Identity Server 5.4.1 and Identity Server Analytics 5.4.1 WUM updated product distributions, JDK distribution and MySQL JDBC driver
in the form of release blobs.

Here, the **environment-alias** refers to the alias provided when saving the created environment, in step 2.
Expand All @@ -77,15 +71,20 @@ in the form of release blobs.
bosh -e <environment-alias> add-blob <local_system_path_to_WSO2_IS_distribution> wso2is/wso2is-<version>.zip
bosh -e <environment-alias> add-blob <local_system_path_to_WSO2_IS_Analytics_distribution> wso2is_analytics/wso2is-analytics-<version>.zip
```

**Note**: For evaluation purposes, the BOSH release implementation has created a release package for MySQL JDBC driver.
This assumes that by default, the used external DBMS is MySQL. But if the external DBMS used is of another type, [create
a BOSH release package](https://bosh.io/docs/packages.html) (similar to `<pivotal-cf-is>/pattern-2/bosh-release/packages/mysqldriver`) for the particular
JDBC driver. Then, you have to upload the relevant JDBC driver in the form of a blob, as above.

5. **[Optional]** If the BOSH release is a final release, upload the blobs (added in step 4). Please refer
4. **[Optional]** If the BOSH release is a final release, upload the blobs (added in step 4). Please refer
[BOSH documentation](https://bosh.io/docs/create-release.html#upload-blobs) for further details.

```
bosh -e <environment-alias> -n upload-blobs
```

6. Create the BOSH release.
5. Create the BOSH release.

- Dev release:
```
Expand All @@ -105,7 +104,7 @@ in the form of release blobs.

- Currently, it is expected that the external database holds the user management, registry, identity and workflow feature database tables
for Identity Server and Identity Server Analytics.
Please see WSO2 Identity Server [Documentation](https://docs.wso2.com/display/IS540/Setting+Up+Separate+Databases+for+Clustering)
Please see WSO2 Identity Server [Documentation](https://docs.wso2.com/display/IS541/Setting+Up+Separate+Databases+for+Clustering)
for further details.

- Following table shows the external product database configurations, which have been set as properties under WSO2 Identity Server job specifications
Expand All @@ -126,6 +125,7 @@ in the form of release blobs.
wso2is_analytics.registry_ds.url | Connection URL of the Registry data source | -
wso2is_analytics.event_store_ds.url | Connection URL of the event store data source | -
wso2is_analytics.processed_data_store_ds.url | Connection URL of the processed data store data source | -
wso2is_analytics.db.driver | Database driver class name of the data source | -
wso2is_analytics.db.username | Username of the WSO2 Identity Server Analytics product database user | root
wso2is_analytics.db.password | Password of the WSO2 Identity Server Analytics product database user | root

Expand Down Expand Up @@ -213,7 +213,6 @@ Structure of the directories and files of the BOSH release is as follows:

```
└── bosh-release
├── .deployment
├── config
├── dbscripts
├── images
Expand Down
32 changes: 16 additions & 16 deletions pattern-2/bosh-release/bosh-lite.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Managing BOSH Release for WSO2 Identity Server deployment pattern 2 locally (BOSH Lite)

The following sections provide step-by-step guidelines for managing the WSO2 Identity Server 5.4.0 deployment pattern 2
The following sections provide step-by-step guidelines for managing the WSO2 Identity Server 5.4.1 deployment pattern 2
BOSH release locally ([BOSH Lite](https://bosh.io/docs/bosh-lite)).

![WSO2 Identity Server 5.4.0 deployment pattern 2](images/pattern-2.png)
![WSO2 Identity Server 5.4.1 deployment pattern 2](images/pattern-2.png)

## Contents

Expand All @@ -25,7 +25,7 @@ BOSH release locally ([BOSH Lite](https://bosh.io/docs/bosh-lite)).

2. Obtain the following software distributions.

- WSO2 Identity Server 5.4.0 WUM updated product distribution
- WSO2 Identity Server 5.4.1 WUM updated product distribution
- [Java Development Kit (JDK) 1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- Relevant Java Database Connectivity (JDBC) connector (e.g. [MySQL JDBC driver](https://dev.mysql.com/downloads/connector/j/5.1.html)
if the external database used is MySQL)
Expand All @@ -43,10 +43,10 @@ BOSH release locally ([BOSH Lite](https://bosh.io/docs/bosh-lite)).
In order to create the BOSH release for deployment pattern 2 using BOSH Lite, you must follow the standard steps
for creating a release with BOSH.

1. Move to `.deployment` directory of the deployment pattern 2 BOSH release.
1. Move to root directory of the deployment pattern 2 BOSH release.

```
cd <pivotal-cf-is>/pattern-2/bosh-release/.deployment
cd <pivotal-cf-is>/pattern-2/bosh-release/
```

2. Create the local BOSH environment and login to it.
Expand All @@ -57,13 +57,7 @@ for creating a release with BOSH.

![BOSH Lite VM](images/bosh-lite.png)

3. Move back to the root directory of deployment pattern 2 BOSH release (`<pivotal-cf-is>/pattern-2/bosh-release`).

```
cd ..
```

4. Add the WSO2 Identity Server 5.4.0 and Identity Server Analytics 5.4.0 WUM updated product distributions, JDK distribution and MySQL JDBC driver
3. Add the WSO2 Identity Server 5.4.1 and Identity Server Analytics 5.4.1 WUM updated product distributions, JDK distribution and MySQL JDBC driver
in the form of release blobs.

Assuming that,
Expand All @@ -74,11 +68,16 @@ for creating a release with BOSH.
```
bosh -e vbox add-blob ~/Downloads/jdk-8u144-linux-x64.tar.gz oraclejdk/jdk-8u144-linux-x64.tar.gz
bosh -e vbox add-blob ~/Downloads/mysql-connector-java-5.1.34-bin.jar mysqldriver/mysql-connector-java-5.1.34-bin.jar
bosh -e vbox add-blob ~/Downloads/wso2is-5.4.0.zip wso2is/wso2is-5.4.0.zip
bosh -e vbox add-blob ~/Downloads/wso2is-analytics-5.4.0.zip wso2is_analtyics/wso2is-analytics-5.4.0.zip
bosh -e vbox add-blob ~/Downloads/wso2is-5.4.1.zip wso2is/wso2is-5.4.1.zip
bosh -e vbox add-blob ~/Downloads/wso2is-analytics-5.4.1.zip wso2is_analtyics/wso2is-analytics-5.4.1.zip
```

**Note**: For evaluation purposes, the BOSH release implementation has created a release package for MySQL JDBC driver.
This assumes that by default, the used external DBMS is MySQL. But if the external DBMS used is of another type, [create
a BOSH release package](https://bosh.io/docs/packages.html) (similar to `<pivotal-cf-is>/pattern-2/bosh-release/packages/mysqldriver`) for the particular
JDBC driver. Then, you have to upload the relevant JDBC driver in the form of a blob, as above.

5. Create the BOSH Dev release.
4. Create the BOSH Dev release.

```
bosh -e vbox create-release --force
Expand All @@ -91,7 +90,7 @@ for creating a release with BOSH.

- Currently, it is expected that the external database holds the user management, registry, identity and workflow feature database tables
for Identity Server and Identity Server Analytics.
Please see WSO2 Identity Server [Documentation](https://docs.wso2.com/display/IS540/Setting+Up+Separate+Databases+for+Clustering)
Please see WSO2 Identity Server [Documentation](https://docs.wso2.com/display/IS541/Setting+Up+Separate+Databases+for+Clustering)
for further details.

- Following table shows the external product database configurations, which have been set as properties under WSO2 Identity Server job specifications
Expand All @@ -112,6 +111,7 @@ for creating a release with BOSH.
wso2is_analytics.registry_ds.url | Connection URL of the Registry data source | -
wso2is_analytics.event_store_ds.url | Connection URL of the event store data source | -
wso2is_analytics.processed_data_store_ds.url | Connection URL of the processed data store data source | -
wso2is_analytics.db.driver | Database driver class name of the data source | -
wso2is_analytics.db.username | Username of the WSO2 Identity Server Analytics product database user | root
wso2is_analytics.db.password | Password of the WSO2 Identity Server Analytics product database user | root

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
<parameter name="ModulesDirectory">axis2modules</parameter>

<parameter name="userAgent" locked="true">
WSO2 Identity Server-5.4.0-SNAPSHOT
WSO2 Identity Server-5.4.1
</parameter>
<parameter name="server" locked="true">
WSO2 Identity Server-5.4.0-SNAPSHOT
WSO2 Identity Server-5.4.1
</parameter>

<!-- ========================================================================-->
Expand Down Expand Up @@ -631,7 +631,7 @@
The clustering domain/group. Nodes in the same group will belong to the same multicast
domain. There will not be interference between nodes in different groups.
-->
<parameter name="domain">wso2.is.domain</parameter>
<parameter name="domain">is.wso2.domain</parameter>

<!-- The multicast address to be used -->
<!--<parameter name="mcastAddress">228.0.0.4</parameter>-->
Expand Down
Loading

0 comments on commit 80fc8a0

Please sign in to comment.