-
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
Docker ca #40
Conversation
@@ -0,0 +1,128 @@ | |||
--- |
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.
can we minimize this file, lot of unnecessary stuff
@@ -6,6 +6,7 @@ variable "private_key" {} | |||
variable "ca_cert_pem" {} | |||
variable "validity_period_hours" {} | |||
variable "early_renewal_hours" {} | |||
variable "user" {} |
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.
seems like we should provide some defaults for these so we dont have to inject them all the time -
would provide defaults for validity_period_hours
, validity_period_hours
and user
migrating terraform bit to https://github.com/Capgemini/tf_tls/tree/master/docker |
@@ -82,6 +83,30 @@ module "admin_cert" { | |||
ca_private_key_pem = "${module.ca.ca_private_key_pem}" | |||
} | |||
|
|||
module "docker_daemon_certs" { | |||
source = "github.com/Capgemini/tf_tls//docker/daemon" |
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.
could these be done in 1-shot by just pointing to /docker
and putting a TF file in the top level directory that calls down to both daemon+client to avoid repeating yourself here?
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.
I like to have ability and granularity to configure both daemon and client by separate, otherwise you'll be assuming ip_addresses_list or count is same for both which it isn't necessarily
No description provided.