CDIST-TYPE__CONSUL_TEMPLATE(7)
π CDIST-TYPE__CONSUL_TEMPLATE π
okay bestie, welcome to cdist-type__consul_template(7) β yes it's a section 7 manual page, yes it's from cdist, and yes we are about to make your whole consul-template situation flawless. grab a strawberry π and let's go.
β¨ NAME β¨
cdist-type__consul_template β manage the consul-template service. that's the whole vibe. one job, done gorgeously. π
πΈ DESCRIPTION πΈ
so what does this icon actually do? two things, and it does them with main character energy:
- it downloads and installs the
consul-templatebinary fromhttps://github.com/hashicorp/consul-template/releases/download/ - it generates a global config file and creates a directory for per-template config files
and here's the lil detail that matters, no cap: the consul-template binary gets downloaded on the server (that's the machine running cdist, not your target) and then it's deployed to the target host using the __file type. so the download happens over there, the delivery happens over here. cute, right? π
π«Ά REQUIRED PARAMETERS π«Ά
None. literally zero. nothing is mandatory. you're free, bestie. π¦
π OPTIONAL PARAMETERS π
these are the levers you can pull. all optional, all iconic:
auth-usernameβ specify a username for basic authentication.auth-passwordβ specify a password for basic authentication.batch-sizeβ the size of the batch when polling multiple dependencies.consulβ the location of the Consul instance to query (may be an IP address or FQDN) with port. defaults to'localhost:8500'.log-levelβ the log level for output. this applies to the stdout/stderr logging as well as syslog logging (if enabled). valid values are"debug","info","warn", and"err". default value is"warn".max-staleβ the maximum staleness of a query. if specified, Consul will distribute work among all servers instead of just the leader.retryβ the amount of time to wait if Consul returns an error when communicating with the API.stateβ either'present'or'absent'. defaults to'present'.ssl-certβ path to an SSL client certificate to use to authenticate to the consul server. useful if the consul server"verify_incoming"option is set.ssl-ca-certβ path to a CA certificate file, containing one or more CA certificates to use to validate the certificate sent by the consul server to us. this is a handy alternative to setting--ssl-no-verifyif you are using your own CA.syslog-facilityβ the facility to use when sending to syslog. this requires the use of--syslog. default value isLOCAL0.tokenβ the Consul API token.vault-addressβ the location of the Vault instance to query (may be an IP address or FQDN) with port.vault-tokenβ the Vault API token.vault-ssl-certβ path to an SSL client certificate to use to authenticate to the vault server.vault-ssl-ca-certβ path to a CA certificate file, containing one or more CA certificates to use to validate the certificate sent by the vault server to us.versionβ which version of consul-template to install. see./files/versionsfor a list of supported versions. defaults to the latest known version.waitβ theminimum(:maximum)to wait before rendering a new template to disk and triggering a command, separated by a colon (:). if the optional maximum value is omitted, it is assumed to be 4x the required minimum value.
π BOOLEAN PARAMETERS π
these ones are just on or off. no in-between, no situationship:
sslβ use HTTPS while talking to Consul. requires the Consul server to be configured to serve secure connections.ssl-no-verifyβ ignore certificate warnings. only used ifsslis enabled.syslogβ send log output to syslog (in addition to stdout and stderr).vault-sslβ use HTTPS while talking to Vault. requires the Vault server to be configured to serve secure connections.vault-ssl-no-verifyβ ignore certificate warnings. only used if vault is enabled.
π EXAMPLES π
here's how it looks in the wild. copy, paste, slay:
__consul_template \
--consul consul.service.consul:8500 \
--retry 30s
and if you're feeling picky about versions (valid):
# specific version
__consul_template \
--version 0.6.5 \
--retry 30s
π₯ SEE ALSO π₯
consul documentation at: <https://github.com/hashicorp/consul-template>.
go read it, iykyk. πβ¨
π AUTHORS π
Steven Armstrong <steven-cdist--@--armstrong.cc> β the legend who wrote this. π
β COPYING β
Copyright (C) 2015 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
π COPYRIGHT π
ungleich GmbH 2021
okay that's the whole page, bestie!! π«Ά this was cdist 7.0.0, dated Jul 31, 2022, and yes it's the cdist-type__consul_template(7) manual. go configure something gorgeous. periodt. πβ¨
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms