Skip to content

Commit 8c7f997

Browse files
committed
Cattle-AWS bug fixes and new features
Signed-off-by: Shantanu Deshpande <shantanud106@gmail.com>
1 parent f00cc0e commit 8c7f997

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

config-cattle-aws-existing-vpc.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ cattle-aws:
1212
rke_network_plugin: "canal"
1313
region: "eu-central-1"
1414
existing_vpc: "true"
15+
zone: "eu-central-1a"
16+
vpc_cidr_block:
1517
vpc_id: "vpc-1abcdgggga72a691a"
1618
subnet_id: "subnet-1f98d368767ge1e71"
1719
security_group_name: "rancher-nodes"
18-
ami_id: "test123" # specify if you know the specific AMI ID. If used, keep below os field empty (not that setting it would impact).
19-
os: "" # specify the OS. Supported values: ubuntu, centos, coreos. Keep above field empty if this is being used.
20+
ami_id: "test123"
2021
controlplane_instance_type: "t2.medium"
2122
worker_instance_type: "t2.large"
2223
overlap_cp_etcd_worker: "true"

config-cattle-aws-novpc-nooverlap.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ cattle-aws:
1212
rke_network_plugin: "canal"
1313
region: "eu-central-1"
1414
existing_vpc: "false"
15+
zone: "eu-central-1a"
1516
vpc_id:
17+
vpc_cidr_block: "10.0.0.0/16"
1618
subnet_id:
1719
security_group_name:
18-
ami_id: "test123" # specify if you know the specific AMI ID. If used, keep below os field empty (not that setting it would impact).
19-
os: "" # specify the OS. Supported values: ubuntu, centos, coreos. Keep above field empty if this is being used.
20+
ami_id: "test123"
2021
controlplane_instance_type: "t2.medium"
2122
worker_instance_type: "t2.large"
2223
overlap_cp_etcd_worker: "false"

config-cattle-aws-novpc-overlap.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ cattle-aws:
1212
rke_network_plugin: "canal"
1313
region: "eu-central-1"
1414
existing_vpc: "false"
15+
zone: "eu-central-1a"
1516
vpc_id:
17+
vpc_cidr_block: "10.0.0.0/16"
1618
subnet_id:
1719
security_group_name:
18-
ami_id: "test123" # specify if you know the specific AMI ID. If used, keep below os field empty (not that setting it would impact).
19-
os: "" # specify the OS. Supported values: ubuntu, centos, coreos. Keep above field empty if this is being used.
20+
ami_id: "test123"
2021
controlplane_instance_type: "t2.medium"
2122
worker_instance_type: "t2.large"
2223
overlap_cp_etcd_worker: "true"

pkg/templates/variables.go

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,24 @@ variable "cloudwatch_monitoring" {
364364
type = "string"
365365
}
366366
367+
variable "zone" {
368+
default = "{{.Zone}}"
369+
description = "Zone. Ex - eu-central-1a"
370+
type = "string"
371+
}
372+
373+
variable "vpc_cidr_block" {
374+
default = "{{.VpcCidrBlock}}"
375+
description = "VPC CIDR block for creating VPC with the provisioner"
376+
type = "string"
377+
}
378+
379+
variable "ssh_user" {
380+
default = "{{.SshUser}}"
381+
description = "SSH user"
382+
type = "string"
383+
}
384+
367385
variable "ami_id" {
368386
default = "{{.AmiID}}"
369387
description = "AMI ID for instances"
@@ -462,12 +480,6 @@ variable "security_group_name" {
462480
type = "string"
463481
}
464482
465-
variable "os" {
466-
default = "{{.OS}}"
467-
description = "ami id - frankfurt"
468-
type = "string"
469-
}
470-
471483
variable "worker_instance_type" {
472484
default = "{{.WorkerInstanceType}}"
473485
description = "Instance type"

0 commit comments

Comments
 (0)