docker-api

captn3m0/docker-api/ignition

Terraform Module HCL IGNITION
Install
module "docker-api" {
source = "captn3m0/docker-api/ignition"
version = "1.0.4"
}
plain text: /constructs/tfmod-captn3m0-docker-api-ignition/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-ignition-docker-api ![](https://img.shields.io/badge/license-MIT-blue.svg) Terraform Configuration using the Ignition Provider to setup a Docker API endpoint. This generates the certs, and returns them as output. This is based on the official [CoreOS documentation][docs]. You can see the inputs and outputs at the Terraform Registry or MODULE.md. Usage ``hcl module "ignition" { source = "captn3m0/docker-api/ignition" version = "1.0.4" ca_subject = { common_name = "ca.docker" } client_subject = { common_name = "client.docker" } server_subject = { common_name = "docker-server" } } // The return value from this is a userdata blob, so you can either // upload it to S3 and then append the S3 URL to your userdata, like: resource "aws_s3_bucket_object" "s3" { key = "docker.json" bucket =

Inputs (5)
NameTypeDescriptionDefault
server_subjectmapThe subject block for the server certificate. This should be the hostname of the required
client_subjectmapThe subject block for the Client certificate. See https://www.terraform.io/docs/ required
ca_subjectmapThe subject block for the CA certificate. See https://www.terraform.io/docs/prov required
cert_pathstringpath to write the client config to""
validitystringcertificate validity in days, defaults to 365365
Outputs (6)
config — Rendered ignition configuration. Can be used in a append block, or passed as userdata
ca-cert — PEM encoded CA Certificate, used for signing both the server and the client certs
client-cert — PEM encoded client certificate, used to authenticate to the server
client-key — PEM encoded client key, used to authenticate to the server
source — Ready data-uri based source to inser into a append or replace block
verification — Verification hash for the userdata
Resources (4)
tls_cert_requesttls_locally_signed_certtls_private_keytls_self_signed_cert
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.4
Cloud IGNITION
★ Stars0
Forks1
Total downloads823
Inputs5
Outputs6
Resources4
LicenseMIT
Namespacecaptn3m0
Updated