Skip to content

Commit

Permalink
cfssl additional ignition resources
Browse files Browse the repository at this point in the history
  • Loading branch information
alkar committed Oct 11, 2017
1 parent 8e88946 commit c7daa6d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
24 changes: 14 additions & 10 deletions cfssl.tf
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,19 @@ module "cfssl-restarter" {
}

data "ignition_config" "cfssl" {
files = [
"${data.ignition_file.cfssl.id}",
"${data.ignition_file.cfssljson.id}",
"${data.ignition_file.cfssl-server-config.id}",
"${data.ignition_file.cfssl-ca-csr.id}",
"${data.ignition_file.cfssl-init-ca.id}",
"${data.ignition_file.cfssl-sk-csr.id}",
"${data.ignition_file.cfssl-nginx-conf.id}",
"${data.ignition_file.cfssl-nginx-auth.id}",
]
files = ["${concat(
list(
data.ignition_file.cfssl.id,
data.ignition_file.cfssljson.id,
data.ignition_file.cfssl-server-config.id,
data.ignition_file.cfssl-ca-csr.id,
data.ignition_file.cfssl-init-ca.id,
data.ignition_file.cfssl-sk-csr.id,
data.ignition_file.cfssl-nginx-conf.id,
data.ignition_file.cfssl-nginx-auth.id,
),
var.cfssl_additional_files,
)}"]

systemd = ["${concat(
list(
Expand All @@ -167,5 +170,6 @@ data "ignition_config" "cfssl" {
),
module.cfssl-restarter.systemd_units,
module.cfssl-disk-mounter.systemd_units,
var.cfssl_additional_systemd_units,
)}"]
}
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ variable "pod_network" {
default = "10.2.0.0/16"
}

variable "cfssl_additional_systemd_units" {
description = "Additional systemd units to include in the igntion config data for the cfssl node."
default = []
type = "list"
}

variable "cfssl_additional_files" {
description = "Additional files to include in the igntion config data for the cfssl node."
default = []
type = "list"
}

variable "etcd_additional_systemd_units" {
description = "Additional systemd units to include in the igntion config data for etcd nodes."
default = []
Expand Down

0 comments on commit c7daa6d

Please sign in to comment.