-
Notifications
You must be signed in to change notification settings - Fork 56
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
Updated to Terraform Client 0.7 Updated docs #176
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ _projects | |
_steps | ||
_book | ||
node_modules | ||
npm-debug.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
[role=masters] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this here? |
||
178.62.104.128 | ||
178.62.105.27 | ||
178.62.105.128 | ||
|
||
[role=workers] | ||
178.62.104.48 | ||
|
||
[role=edge-routers] | ||
178.62.104.231 | ||
|
||
[masters:children] | ||
role=masters | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
|
||
https://discovery.etcd.io/1b1e5527389535df10ed556cd6cca18c |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ resource "template_file" "etcd_discovery_url" { | |
} | ||
|
||
module "ca" { | ||
source = "github.com/Capgemini/tf_tls//ca" | ||
source = "github.com/mattcoffey/tf_tls/ca" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you point the modules to github.com/tamsky/tf_tls/ for consistency which is already being used for aws and supports terraform >= 0.7.3 then we can move all back in one go to Cap |
||
organization = "${var.organization}" | ||
ca_count = "${var.masters + var.workers + var.edge-routers}" | ||
deploy_ssh_hosts = "${concat(digitalocean_droplet.edge-router.*.ipv4_address, concat(digitalocean_droplet.master.*.ipv4_address, digitalocean_droplet.worker.*.ipv4_address))}" | ||
|
@@ -62,12 +62,12 @@ module "etcd_cert" { | |
} | ||
|
||
module "kube_master_certs" { | ||
source = "github.com/Capgemini/tf_tls/kubernetes/master" | ||
source = "github.com/mattcoffey/tf_tls/kubernetes/master" | ||
ca_cert_pem = "${module.ca.ca_cert_pem}" | ||
ca_private_key_pem = "${module.ca.ca_private_key_pem}" | ||
ip_addresses = "${compact(digitalocean_droplet.master.*.ipv4_address)}" | ||
deploy_ssh_hosts = "${compact(digitalocean_droplet.master.*.ipv4_address)}" | ||
dns_names = "test" | ||
dns_names = ["test"] | ||
master_count = "${var.masters}" | ||
validity_period_hours = "8760" | ||
early_renewal_hours = "720" | ||
|
@@ -76,7 +76,7 @@ module "kube_master_certs" { | |
} | ||
|
||
module "kube_kubelet_certs" { | ||
source = "github.com/Capgemini/tf_tls/kubernetes/kubelet" | ||
source = "github.com/mattcoffey/tf_tls/kubernetes/kubelet" | ||
ca_cert_pem = "${module.ca.ca_cert_pem}" | ||
ca_private_key_pem = "${module.ca.ca_private_key_pem}" | ||
ip_addresses = "${concat( digitalocean_droplet.edge-router.*.ipv4_address, concat(digitalocean_droplet.master.*.ipv4_address, digitalocean_droplet.worker.*.ipv4_address))}" | ||
|
@@ -89,14 +89,14 @@ module "kube_kubelet_certs" { | |
} | ||
|
||
module "kube_admin_cert" { | ||
source = "github.com/Capgemini/tf_tls/kubernetes/admin" | ||
source = "github.com/mattcoffey/tf_tls/kubernetes/admin" | ||
ca_cert_pem = "${module.ca.ca_cert_pem}" | ||
ca_private_key_pem = "${module.ca.ca_private_key_pem}" | ||
kubectl_server_ip = "${digitalocean_droplet.master.0.ipv4_address}" | ||
} | ||
|
||
module "docker_daemon_certs" { | ||
source = "github.com/Capgemini/tf_tls//docker/daemon" | ||
source = "github.com/mattcoffey/tf_tls/docker/daemon" | ||
ca_cert_pem = "${module.ca.ca_cert_pem}" | ||
ca_private_key_pem = "${module.ca.ca_private_key_pem}" | ||
ip_addresses_list = "${concat(digitalocean_droplet.edge-router.*.ipv4_address, concat(digitalocean_droplet.master.*.ipv4_address, digitalocean_droplet.worker.*.ipv4_address))}" | ||
|
@@ -109,7 +109,7 @@ module "docker_daemon_certs" { | |
} | ||
|
||
module "docker_client_certs" { | ||
source = "github.com/Capgemini/tf_tls//docker/client" | ||
source = "github.com/mattcoffey/tf_tls/docker/client" | ||
ca_cert_pem = "${module.ca.ca_cert_pem}" | ||
ca_private_key_pem = "${module.ca.ca_private_key_pem}" | ||
ip_addresses_list = "${concat(digitalocean_droplet.edge-router.*.ipv4_address, concat(digitalocean_droplet.master.*.ipv4_address, digitalocean_droplet.worker.*.ipv4_address))}" | ||
|
@@ -128,9 +128,9 @@ resource "template_file" "master_cloud_init" { | |
etcd_discovery_url = "${file(var.etcd_discovery_url_file)}" | ||
size = "${var.masters}" | ||
region = "${var.region}" | ||
etcd_ca = "${replace(module.ca.ca_cert_pem, \"\n\", \"\\n\")}" | ||
etcd_cert = "${replace(module.etcd_cert.etcd_cert_pem, \"\n\", \"\\n\")}" | ||
etcd_key = "${replace(module.etcd_cert.etcd_private_key, \"\n\", \"\\n\")}" | ||
etcd_ca = "${replace(module.ca.ca_cert_pem, "\n", "\\n")}" | ||
etcd_cert = "${replace(module.etcd_cert.etcd_cert_pem, "\n", "\\n")}" | ||
etcd_key = "${replace(module.etcd_cert.etcd_private_key, "\n", "\\n")}" | ||
} | ||
} | ||
|
||
|
@@ -141,9 +141,9 @@ resource "template_file" "worker_cloud_init" { | |
etcd_discovery_url = "${file(var.etcd_discovery_url_file)}" | ||
size = "${var.masters}" | ||
region = "${var.region}" | ||
etcd_ca = "${replace(module.ca.ca_cert_pem, \"\n\", \"\\n\")}" | ||
etcd_cert = "${replace(module.etcd_cert.etcd_cert_pem, \"\n\", \"\\n\")}" | ||
etcd_key = "${replace(module.etcd_cert.etcd_private_key, \"\n\", \"\\n\")}" | ||
etcd_ca = "${replace(module.ca.ca_cert_pem, "\n", "\\n")}" | ||
etcd_cert = "${replace(module.etcd_cert.etcd_cert_pem, "\n", "\\n")}" | ||
etcd_key = "${replace(module.etcd_cert.etcd_private_key, "\n", "\\n")}" | ||
} | ||
} | ||
|
||
|
@@ -154,9 +154,9 @@ resource "template_file" "edge-router_cloud_init" { | |
etcd_discovery_url = "${file(var.etcd_discovery_url_file)}" | ||
size = "${var.masters}" | ||
region = "${var.region}" | ||
etcd_ca = "${replace(module.ca.ca_cert_pem, \"\n\", \"\\n\")}" | ||
etcd_cert = "${replace(module.etcd_cert.etcd_cert_pem, \"\n\", \"\\n\")}" | ||
etcd_key = "${replace(module.etcd_cert.etcd_private_key, \"\n\", \"\\n\")}" | ||
etcd_ca = "${replace(module.ca.ca_cert_pem, "\n", "\\n")}" | ||
etcd_cert = "${replace(module.etcd_cert.etcd_cert_pem, "\n", "\\n")}" | ||
etcd_key = "${replace(module.etcd_cert.etcd_private_key, "\n", "\\n")}" | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?