Skip to content

Commit

Permalink
Fix tls parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre committed May 23, 2016
1 parent 7614f32 commit e190130
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
8 changes: 6 additions & 2 deletions terraform/aws/elb/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
variable "elb_name" { default = "kube-master" }
variable "health_check_target" { default = "HTTP:8080/healthz" }
variable "instances" {}
variable "subnets" {}
variable "instances" {
type = "list"
}
variable "subnets" {
type = "list"
}
variable "security_groups" {}

resource "aws_elb" "kube_master" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/aws/public-cloud/etcd_discovery_url.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://discovery.etcd.io/5a6cb41d2a91517447cb738d7e2cf898
https://discovery.etcd.io/94584ca1ffd519c16bdae0f082b70733
12 changes: 6 additions & 6 deletions terraform/aws/public-cloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ module "kube_master_certs" {
ca_cert_pem = "${module.ca.ca_cert_pem}"
ca_private_key_pem = "${module.ca.ca_private_key_pem}"
ip_addresses = "${concat(aws_instance.master.*.private_ip, aws_instance.master.*.public_ip)}"
dns_names = "${compact(module.master_elb.elb_dns_name)}"
deploy_ssh_hosts = "${compact(aws_instance.master.*.public_ip)}"
dns_names = ["${module.master_elb.elb_dns_name}"]
deploy_ssh_hosts = ["${aws_instance.master.*.public_ip}"]
master_count = "${var.masters}"
validity_period_hours = "8760"
early_renewal_hours = "720"
Expand Down Expand Up @@ -104,8 +104,8 @@ module "docker_daemon_certs" {
deploy_ssh_hosts = "${concat(aws_instance.master.*.public_ip, aws_instance.worker.*.public_ip)}"
docker_daemon_count = "${var.masters + var.workers}"
private_key = "${tls_private_key.ssh.private_key_pem}"
validity_period_hours = 8760
early_renewal_hours = 720
validity_period_hours = "8760"
early_renewal_hours = "720"
user = "core"
}

Expand All @@ -117,8 +117,8 @@ module "docker_client_certs" {
deploy_ssh_hosts = "${concat(aws_instance.master.*.public_ip, aws_instance.worker.*.public_ip)}"
docker_client_count = "${var.masters + var.workers}"
private_key = "${tls_private_key.ssh.private_key_pem}"
validity_period_hours = 8760
early_renewal_hours = 720
validity_period_hours = "8760"
early_renewal_hours = "720"
user = "core"
}

Expand Down
4 changes: 2 additions & 2 deletions terraform/aws/public-cloud/masters.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ resource "aws_instance" "master" {
module "master_elb" {
source = "../elb"
security_groups = "${module.sg-default.security_group_id}"
instances = "${compact(aws_instance.master.*.id)}"
subnets = "${compact(aws_instance.master.*.subnet_id)}"
instances = [ "${aws_instance.master.*.id}" ]
subnets = [ "${aws_instance.master.*.subnet_id}" ]
}
output "master_ips" {
Expand Down

0 comments on commit e190130

Please sign in to comment.