You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may not use the identified files except in compliance with the Universal Permissive License, Version 1.0 (the License.)
2
+
3
+
You may obtain a copy of the License at https://oss.oracle.com/licenses/upl. A copy of the license is also reproduced below.
4
+
5
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6
+
7
+
See the License for the specific language governing permissions and limitations under the License.
8
+
9
+
Copyright (c) 2018 Oracle and/or its affiliates.
10
+
11
+
The Universal Permissive License (UPL), Version 1.0
12
+
13
+
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the Software), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both
14
+
15
+
(a) the Software, and
16
+
17
+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software (each a “Larger Work” to which the Software is contributed by such licensors),
18
+
19
+
without restriction, including without limitation the rights to copy, create derivative works of, display, perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.
20
+
21
+
This license is subject to the following condition:
22
+
23
+
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must be included in all copies or substantial portions of the Software.
24
+
25
+
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copy file name to clipboardExpand all lines: cloud/ottscaleout/README.md
+59-21Lines changed: 59 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
###### Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
2
2
###### Licensed under the Universal Permissive License v 1.0 as shown at <http://oss.oracle.com/licenses/upl>
3
-
###### Version v3_180412_18.1.2.0.0
3
+
###### Version v4_190716_18.1.0.0.0
4
4
# ___ ____ _ ____ _ _____
5
5
# / _ \| _ \ / \ / ___| | | ____|
6
6
# | | | | |_) | / _ \| | | | | _|
@@ -12,16 +12,16 @@ Ansible scripts are provided to rollout a database across the provisioned infras
12
12
This is a bring-your-own-license (BYOL) solution for Oracle TimesTen Scaleout.
13
13
Please see the whitepaper, [Deploying Oracle TimesTen Scaleout Database on OCI](https://www.oracle.com/technetwork/database/database-technologies/timesten/overview/wp-deployingtimestenscaleoutonoci-5069015.pdf"whitepaper")
14
14
15
-
The example creates a VCN with one or more public subnets running bastion hosts.
16
-
Private subnets are created to run the hosts needed for TimesTen Scaleout.
15
+
The example creates a VCN with one or more regional public subnets running bastion hosts.
16
+
A regional private subnet is created to run the hosts needed for TimesTen Scaleout.
17
17
18
18
***
19
19
Deployment diagram. The dark boxes indicate the default configuration created by the Terraform and Ansible scripts.
This distribution provides an utility, _provisionScaleoutOCI_, that automates many provisioning tasks discussed in this README and the associated whitepaper. If you already have a compute instance provisioned in the OCI cloud, please see the [QUICKSTART.md](./QUICKSTART.md) file.
24
+
This distribution provides an utility, _provisionScaleoutOCI_, that automates many prerequisite tasks discussed in the associated whitepaper. If you already have an Oracle Linux compute instance provisioned in the OCI cloud, you can use that as a bootstrap instance. Please see the [QUICKSTART.md](./QUICKSTART.md) file.
25
25
26
26
***
27
27
@@ -39,39 +39,45 @@ This example uses the same set of environment variables as other terraform examp
39
39
To destroy all the resources created
40
40
* terraform destroy -force
41
41
42
-
The route table used for the private subnets is configured to use a NAT gateway as the default route target.
43
-
Bastion host instances are configured as NAT instances, by enabling forwarding and configuring firewall to do forwarding/masquerading, but routing occurs through the NAT gateway, not through the private IP addresses of the Bastion hosts.
42
+
The route table used for the private subnet is configured to use a NAT gateway as the default route target.
43
+
Bastion host instances are configured as NAT instances, by enabling forwarding and configuring firewall to do forwarding/masquerading. For high availability purposes routing occurs through the NAT gateway, but can optionally be configured through the private IP addresses of the Bastion hosts.
44
44
See [Using a Private IP as a Route Target](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip) for more details if you wish to use the private IP routing feature.
45
45
46
-
Once the environment is built, the compute instances on the private network have Internet connectivity.
47
-
A private instance doesn't have a public IP address and it's subnet's route table doesn't contain Internet gateway.
48
-
You can login into the private instance via ssh from the Bastion host.
49
-
To verify connectivity, you can then run a command like 'ping oracle.com'
46
+
Once the environment is built, the compute instances on the regional private subnets have Internet connectivity. A private instance doesn't have a public IP address and it's subnet route table doesn't contain Internet gateway. You can login into the private instance via ssh from the Bastion host.
50
47
51
48
### Files in the configuration
52
49
53
-
#### `env-vars`
50
+
### `provisionScaleoutOCI`
51
+
Utility can be used from an OCI Oracle Linux compute instance to provision TimesTen Scaleout in lieu of manually invoking Terraform and Ansible. Also aids with meeting prerequisites such as creating ssh credentials and/or using the OCI CLI to create an API Signing key. See [QUICKSTART.md](./QUICKSTART.md) for more details. While the utility needs to run on an OCI compute instance, the underlying Terraform and Ansible scripts can be manually invoked from Oracle Linux or macOS systems that can reach the OCI public IP addresses.
52
+
53
+
### `env-vars`
54
54
Is used to export the environmental variables used in the configuration.
55
55
These variables include references to private key file information for access to the OCI infrastructure.
56
56
57
57
Before you plan, apply, or destroy the configuration source the file -
58
-
`$ . env-vars`
58
+
`$ . env-vars`
59
+
60
+
### `oci.tf`
61
+
Configures terraform provisioner for oci.
59
62
60
-
####`variables.tf`
63
+
### `variables.tf`
61
64
Defines variables for TimesTen Scaleout configuration.
62
65
Modify this to change the default TimesTen Scaleout 2x2 configuration created.
63
66
64
-
### `public.tf`
65
-
Creates the VCN, the public subnets, and the compute instances used as bastion hosts.
67
+
### `network.tf`
68
+
Creates the VCN, IG and NAT gateways, route tables, security lists, regional public and private subnets.
66
69
67
-
### `private.tf`
68
-
Creates the private subnets, and the compute instances used as zookeeper servers, management instances, or database instances.
70
+
### `compute.tf`
71
+
Creates the compute instances used as bastion hosts, zookeeper servers, management instances, or database instances.
69
72
70
73
### `system-config.tf`
71
74
Contains terraform resources for initial configuration of the compute instances.
72
-
Installs ansible on 1 bastion host.
75
+
Installs ansible on bastion hosts.
73
76
Variables and configuration files for ansible are set up as well.
# prevent use of standard shape without block volume or size out of range
32
+
resource"null_resource""bv_check_1" {
33
+
count="${local.bvcheck1}"
34
+
provisioner"local-exec" {
35
+
command="echo -e '\nERROR: No block volumes or invalid GB specified with Standard shape\nRerun terraform with nonzero value for diBlockVolumeSizeGB\n' && false"
36
+
}
37
+
}
38
+
39
+
resource"null_resource""bv_check_2" {
40
+
count="${local.bvcheck2}"
41
+
provisioner"local-exec" {
42
+
command="echo -e '\nERROR: MD-RAID-10 storage not permitted with block volume\nRerun terraform with var.system[\"storage\"] == LVM-READ-0\n' && false"
0 commit comments