File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
infrastructure-as-code/k8s-cluster-openshift-aws Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ module "openshift" {
41
41
source = " ./modules/openshift"
42
42
region = " ${ var . region } "
43
43
amisize = " t2.large" // Smallest that meets OS specs
44
- vpc_cidr = " 10.0.0.0/16"
44
+ vpc_cidr = " ${ var . vpc_cidr } "
45
+ subnet_cidr = " ${ var . subnet_cidr } "
45
46
subnetaz = " ${ var . subnetaz } "
46
- subnet_cidr = " 10.0.1.0/24"
47
47
key_name = " ${ var . key_name } "
48
48
private_key_data = " ${ var . private_key_data } "
49
49
name_tag_prefix = " ${ var . name_tag_prefix } "
Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ variable "private_key_data" {
12
12
description = " contents of the private key"
13
13
}
14
14
15
+ variable "vpc_cidr" {
16
+ description = " VPC CIDR"
17
+ default " 10.0.0.0/16"
18
+ }
19
+
20
+ variable "subnet_cidr" {
21
+ description = " Subnet CIDR"
22
+ default " 10.0.1.0/24"
23
+ }
24
+
15
25
// This map defines which AZ to put the 'Public Subnet' in, based on the
16
26
// region defined. You will typically not need to change this unless
17
27
// you are running in a new region!
You can’t perform that action at this time.
0 commit comments