Skip to content

Commit

Permalink
Merge pull request #2 from IBM-Cloud/Release1.0.1
Browse files Browse the repository at this point in the history
Release1.0.1
  • Loading branch information
go-davidng committed Nov 9, 2022
2 parents 5db2de6 + 264b27e commit 30e4602
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ha-modules/vpn/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ variable "local_cidrs" {
* Type: list(any)
**/
variable "peer_cidrs" {
description = "List of peer CIDRs for the creation of VPN connection."
description = "Enter the list of remote peer CIDRs you want to connect through the VPN tunnel in the format as [\"x.x.x.x/x\",\"x.x.x.x/x\",...]\nFor example:\n1. Single peer_cidrs = [\"10.0.0.0/28\"]\n2. List of peer_cidrs = [\"10.0.0.0/28\",\"10.0.0.1/32\"]"
type = list(any)
}

Expand Down
2 changes: 1 addition & 1 deletion saz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ If there is a requirement for extra ips please update the db_ip_count with extra
| Name | Version |
| ------------------------------------------------------------------------ | -------- |
| <a name="requirement_terraform"></a> [terraform](#requirement_terraform) | >= 1.1.2 |
| <a name="requirement_ibm"></a> [ibm](#requirement_ibm) | 1.39.1 |
| <a name="requirement_ibm"></a> [ibm](#requirement_ibm) | 1.45.0 |

## Providers

Expand Down
2 changes: 1 addition & 1 deletion saz/core_modules/bastion_compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ resource "ibm_is_instance" "bastion" {
security_groups = [ibm_is_security_group.bastion.id]
}
lifecycle {
prevent_destroy = false // toggle this to true before publish
prevent_destroy = true
ignore_changes = [
user_data,
]
Expand Down
9 changes: 6 additions & 3 deletions saz/example.userinput.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,13 @@
# User should make the configuration update on their on-prem side VPN accordingly on the basis of IBM side VPN.
# **/
# vpn_mode = "policy"
#
# /**
# * List of peer CIDRs for the creation of VPN connection.
# * Enter the list of remote peer CIDRs you want to connect through the VPN tunnel in the format as ["x.x.x.x/x","x.x.x.x/x",...]
# * IBM VPC CIDR and User’s on-prem subnet CIDR should NOT overlap if VPN is being used.
# * Example: peer_cidrs = ["10.248.128.32/28"]
# * Example:
# * Single peer_cidrs = ["10.0.0.0/28"]
# * List of peer_cidrs = ["10.0.0.0/28","10.0.0.1/32"]
# **/
# peer_cidrs = ["x.x.x.x/x"]
#
Expand All @@ -372,4 +375,4 @@
# * The Key configured on the peer gateway. The key is usually a complex string similar to a password.
# **/
# preshared_key = "VPNDemoPassword"
# /**

6 changes: 3 additions & 3 deletions saz/placement_group_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Desc: The strategy for Database servers placement group - host_spread: place on different compute hosts - power_spread: place on compute hosts that use different power sources.
**/
variable "db_pg_strategy" {
description = "The strategy for Database servers placement group - host_spread: place on different compute hosts - power_spread: place on compute hosts that use different power sources."
description = "The strategy for Database servers placement group \n- host_spread: place on different compute hosts \n- power_spread: place on compute hosts that use different power sources."
type = string
validation {
condition = contains(["host_spread", "power_spread"], var.db_pg_strategy)
Expand All @@ -25,7 +25,7 @@ variable "db_pg_strategy" {
* Desc: The strategy for Web servers placement group - host_spread: place on different compute hosts - power_spread: place on compute hosts that use different power sources.
**/
variable "web_pg_strategy" {
description = "The strategy for Web servers placement group - host_spread: place on different compute hosts - power_spread: place on compute hosts that use different power sources."
description = "The strategy for Web servers placement group \n- host_spread: place on different compute hosts \n- power_spread: place on compute hosts that use different power sources."
type = string
validation {
condition = contains(["host_spread", "power_spread"], var.web_pg_strategy)
Expand All @@ -39,7 +39,7 @@ variable "web_pg_strategy" {
* Desc: The strategy for App servers placement group - host_spread: place on different compute hosts - power_spread: place on compute hosts that use different power sources.
**/
variable "app_pg_strategy" {
description = "The strategy for App servers placement group - host_spread: place on different compute hosts - power_spread: place on compute hosts that use different power sources."
description = "The strategy for App servers placement group \n- host_spread: place on different compute hosts \n- power_spread: place on compute hosts that use different power sources."
type = string
validation {
condition = contains(["host_spread", "power_spread"], var.app_pg_strategy)
Expand Down
2 changes: 1 addition & 1 deletion saz/vpn_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ variable "vpn_mode" {
* Type: list(any)
**/
variable "peer_cidrs" {
description = "List of peer CIDRs for the creation of VPN connection."
description = "Enter the list of remote peer CIDRs you want to connect through the VPN tunnel in the format as [\"x.x.x.x/x\",\"x.x.x.x/x\",...]\nFor example:\n1. Single peer_cidrs = [\"10.0.0.0/28\"]\n2. List of peer_cidrs = [\"10.0.0.0/28\",\"10.0.0.1/32\"]"
type = list(string)
validation {
condition = can([for ip in var.peer_cidrs : regex("^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/([9]|1[0-9]|2[0-9]|3[0-2])$", ip)])
Expand Down

0 comments on commit 30e4602

Please sign in to comment.