Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Latest SOT sync of NW, HANA, and S4 templates. #140

Merged
merged 47 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
7513170
No public description
sjswerdlow Feb 7, 2023
27ce5e1
No public description
sjswerdlow Feb 15, 2023
be72fe1
No public description
Apr 13, 2023
604058d
No public description
sjswerdlow May 3, 2023
e467922
No public description
sjswerdlow May 8, 2023
587ab16
No public description
sjswerdlow May 9, 2023
47674e2
No public description
May 10, 2023
67a3ea5
No public description
sjswerdlow May 24, 2023
08a0afa
No public description
sjswerdlow May 30, 2023
05ed284
No public description
megelatim Jun 1, 2023
f413d45
No public description
megelatim Jun 2, 2023
63b51bc
No public description
sjswerdlow Jul 6, 2023
6b1830a
No public description
sjswerdlow Jul 10, 2023
095af86
No public description
sjswerdlow Jul 18, 2023
dfcb367
No public description
sjswerdlow Jul 21, 2023
6eccfa6
No public description
sjswerdlow Aug 2, 2023
bf5cc24
No public description
sjswerdlow Sep 12, 2023
ffc945e
No public description
sjswerdlow Oct 5, 2023
563db72
No public description
sjswerdlow Oct 18, 2023
02276e7
No public description
sjswerdlow Oct 24, 2023
0dabf98
No public description
sjswerdlow Oct 25, 2023
5ab59b6
No public description
sjswerdlow Nov 10, 2023
de2c863
No public description
sjswerdlow Nov 13, 2023
efcbc20
No public description
sjswerdlow Nov 20, 2023
e7a5030
No public description
sjswerdlow Dec 6, 2023
8a9f4f3
No public description
sjswerdlow Jan 8, 2024
85281d0
No public description
sjswerdlow Feb 15, 2024
7715d80
No public description
sjswerdlow Mar 6, 2024
dccb7c4
No public description
sjswerdlow Apr 1, 2024
0b807d9
No public description
sjswerdlow Apr 5, 2024
445ba23
No public description
sjswerdlow Apr 22, 2024
de9846e
No public description
sjswerdlow Apr 24, 2024
4760ce0
No public description
sjswerdlow May 7, 2024
d74f83b
No public description
sjswerdlow May 7, 2024
c13492b
No public description
sjswerdlow May 9, 2024
928be1b
Including examples for NW and S4. Cleaned up metadata files which are…
sjswerdlow May 9, 2024
4a79582
Typo fix for nw_ha example.
sjswerdlow May 10, 2024
1fcc7f2
Updates to the variables in s4 examples and other example linting fi…
sjswerdlow May 13, 2024
9d518b8
Fixing whitespace and a module name.
sjswerdlow May 13, 2024
5f343c7
Fixing whitespace.
sjswerdlow May 13, 2024
86229a1
No public description
sjswerdlow May 20, 2024
cf5bdbe
Update README.md
sjswerdlow May 20, 2024
f700edc
Update README.md
sjswerdlow May 20, 2024
4e68bab
Update README.md
sjswerdlow May 20, 2024
71294fc
Update README.md
sjswerdlow May 20, 2024
d127bcb
Update README.md
sjswerdlow May 20, 2024
17c8f8f
Merge branch 'master' into latest-sot
sjswerdlow May 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions examples/sap_nw_ha_simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SAP NW HA example

This example illustrates how to use the latest release of the terraform module for SAP on Google Cloud for provisioning SAP NetWeaver High-availability.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| project\_id | Project id where the instances will be created. | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| sap\_nw\_ers\_worker\_self\_links | SAP NW ERS self-links for the instance created |
| sap\_nw\_scs\_primary\_self\_link | SAP NW SCS self-link for the instance created |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

To provision this example, run the following from within this directory:
- `terraform init` to get the plugins
- `terraform plan` to see the infrastructure plan
- `terraform apply` to apply the infrastructure build
- `terraform destroy` to destroy the built infrastructure
49 changes: 49 additions & 0 deletions examples/sap_nw_ha_simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module "sap_nw_ha" {
source = "terraform-google-modules/sap/google//modules/sap_nw_ha"
version = "~> 1.0"

project_id = var.project_id
machine_type = "n1-standard-16"
network = "default"
subnetwork = "default"
linux_image = "rhel-8-4-sap-ha"
linux_image_project = "rhel-sap-cloud"
sap_primary_instance = "hana-instance"
sap_secondary_instance = "hana-instance"
sap_primary_zone = "us-east1-b"
sap_secondary_zone = "us-east1-c"
sap_sid = "XYZ"
nfs_path = "${google_filestore_instance.example.networks[0].ip_addresses[0]}:/${google_filestore_instance.example.file_shares[0].name}"
}

resource "google_filestore_instance" "example" {
name = "example-instance"
location = "us-central1-b"
tier = "BASIC_HDD"

file_shares {
capacity_gb = 1024
name = "share1"
}

networks {
network = "default"
modes = ["MODE_IPV4"]
}
}
24 changes: 24 additions & 0 deletions examples/sap_nw_ha_simple/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
output "sap_nw_scs_primary_self_link" {
description = "SAP NW SCS self-link for the instance created"
value = module.sap_nw_ha.scs_instance
}

output "sap_nw_ers_worker_self_links" {
description = "SAP NW ERS self-links for the instance created"
value = module.sap_nw_ha.ers_instance
}
20 changes: 20 additions & 0 deletions examples/sap_nw_ha_simple/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

variable "project_id" {
type = string
description = "Project id where the instances will be created."
}
24 changes: 24 additions & 0 deletions examples/sap_nw_simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SAP Netweaver example

This example illustrates how to use the latest release of the terraform module for SAP on Google Cloud for provisioning SAP NW
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would highly recommend spelling out the acronyms here in the description.


<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| project\_id | Project id where the instances will be created. | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| sap\_nw\_primary\_self\_link | SAP NW self-link for the instance created |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

To provision this example, run the following from within this directory:
- `terraform init` to get the plugins
- `terraform plan` to see the infrastructure plan
- `terraform apply` to apply the infrastructure build
- `terraform destroy` to destroy the built infrastructure
28 changes: 28 additions & 0 deletions examples/sap_nw_simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module "sap_nw" {
source = "terraform-google-modules/sap/google//modules/sap_nw"
version = "~> 1.0"

project_id = var.project_id
machine_type = "n1-standard-16"
subnetwork = "default"
linux_image = "rhel-8-4-sap-ha"
linux_image_project = "rhel-sap-cloud"
instance_name = "nwvm"
zone = "us-east1-b"
}
19 changes: 19 additions & 0 deletions examples/sap_nw_simple/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
output "sap_nw_primary_self_link" {
description = "SAP NW self-link for the instance created"
value = module.sap_nw.sap_nw_self_link
}
20 changes: 20 additions & 0 deletions examples/sap_nw_simple/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

variable "project_id" {
type = string
description = "Project id where the instances will be created."
}
22 changes: 22 additions & 0 deletions examples/sap_s4_ha_simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SAP S4 HANA HA example

This example illustrates how to use the latest release of the terraform module for SAP on Google Cloud for provisioning SAP S4 HANA HA

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| project\_id | Project id where the instances will be created | `string` | n/a | yes |

## Outputs

No outputs.

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

To provision this example, run the following from within this directory:
- `terraform init` to get the plugins
- `terraform plan` to see the infrastructure plan
- `terraform apply` to apply the infrastructure build
- `terraform destroy` to destroy the built infrastructure
29 changes: 29 additions & 0 deletions examples/sap_s4_ha_simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module "sap_s4_ha" {
source = "terraform-google-modules/sap/google//modules/s4_ha"
version = "~> 1.0"

deployment_name = "my_s4_ha"
gcp_project_id = var.project_id
filestore_location = "us-east1-b"
region_name = "us-east1"
media_bucket_name = "private-bucket"
zone1_name = "us-east1-b"
zone2_name = "us-east1-c"
}

20 changes: 20 additions & 0 deletions examples/sap_s4_ha_simple/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

variable "project_id" {
type = string
description = "Project id where the instances will be created"
}
22 changes: 22 additions & 0 deletions examples/sap_s4_simple/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SAP S4 HANA example

This example illustrates how to use the latest release of the terraform module for SAP on Google Cloud for provisioning SAP S4 HANA

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| project\_id | Project id where the instances will be created | `string` | n/a | yes |

## Outputs

No outputs.

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

To provision this example, run the following from within this directory:
- `terraform init` to get the plugins
- `terraform plan` to see the infrastructure plan
- `terraform apply` to apply the infrastructure build
- `terraform destroy` to destroy the built infrastructure
27 changes: 27 additions & 0 deletions examples/sap_s4_simple/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

module "sap_s4" {
source = "terraform-google-modules/sap/google//modules/s4"
version = "~> 1.0"

deployment_name = "my_s4"
gcp_project_id = var.project_id
filestore_location = "us-east1-b"
region_name = "us-east1"
media_bucket_name = "private-bucket"
zone1_name = "us-east1-b"
}
20 changes: 20 additions & 0 deletions examples/sap_s4_simple/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

variable "project_id" {
type = string
description = "Project id where the instances will be created"
}
Loading
Loading