CDIST-TYPE__CONSUL_AGENT(7)
π cdist-type__consul_agent π
okay bestie, welcome to cdist-type__consul_agent(7) β the manual page for managing the consul agent, section 7 of the cdist manuals. it's giving infrastructure, it's giving cluster vibes, and we're gonna get through it together. no cap. π«Ά
β¨ NAME β¨
cdist-type__consul_agent β manage the consul agent. that's it, that's the whole name. short, sweet, iconic. π
πΈ DESCRIPTION πΈ
configure and manage the consul agent. yes queen, that's the whole description. it does the thing. π
π REQUIRED PARAMETERS π
None. literally none. zero. not a single one required. we love a low-maintenance type, fr fr. β¨
π¦ OPTIONAL PARAMETERS π¦
here's where the main character energy lives. every single one of these is optional, so pick your faves:
acl-datacenterβ only used by servers, bestie. this designates the datacenter which is authoritative for ACL information.acl-default-policyβ either"allow"or"deny", and it defaults to"allow". the default policy controls the behavior of a token when there is no matching rule.acl-down-policyβ either"allow","deny"or"extend-cache". and"extend-cache"is the default, periodt.acl-master-tokenβ only used for servers in theacl_datacenter. this token will be created with management-level permissions if it does not exist. it allows operators to bootstrap the ACL system with a token ID that is well-known.acl-tokenβ when provided, the agent will use this token when making requests to the Consul servers.acl-ttlβ used to control Time-To-Live caching of ACLs.bind-addrβ sets the bind address for cluster communication.bootstrap-expectβ sets server to expect bootstrap mode.ca-file-sourceβ path to a PEM encoded certificate authority file which will be uploaded and configure using theca_fileconfig option.cert-file-sourceβ path to a PEM encoded certificate file which will be uploaded and configure using thecert_fileconfig option.client-addrβ sets the address to bind for client access.datacenterβ datacenter of the agent.encryptβ provides the gossip encryption key.groupβ the primary group for the agent.json-configβ path to a partial json config file without leading{and trailing}. ifjson-configis'-'(dash), take what was written to stdin as the file content.key-file-sourceβ path to a PEM encoded private key file which will be uploaded and configure using thekey_fileconfig option.node-nameβ name of this node. must be unique in the cluster.retry-joinβ address to attempt joining everyretry_intervaluntil at least one join works. can be specified multiple times. π―userβ the user to run the agent as.stateβ if the agent is'present'or'absent'. defaults to'present'. currentlystate=absentis not working due to some dependency issues.
ok so real talk about that last one: state=absent is lowkey broken rn because of dependency issues. don't come for me, i'm just the messenger. π
π BOOLEAN PARAMETERS π
these ones are just on or off, no in-between, very decisive of them:
disable-remote-execβ disables support for remote execution. when set to true, the agent will ignore any incoming remote exec requests.disable-update-checkβ disables automatic checking for security bulletins and new version releases.leave-on-terminateβ gracefully leave cluster onSIGTERM.rejoin-after-leaveβ rejoin the cluster using the previous state after leaving.serverβ used to control if an agent is in server or client mode.enable-syslogβ enables logging to syslog.verify-incomingβ enforce the use of TLS and verify a client's authenticity on incoming connections.verify-outgoingβ enforce the use of TLS and verify the peers authenticity on outgoing connections.use-distribution-packageβ uses distribution package instead of upstream binary.
β EXAMPLES β
okay these are the part where it all comes together and honestly? obsessed. copy these exactly, they're perfect as-is:
configure as server, bootstrap and rejoin π₯οΈ
hostname="$(cat "$__global/explorer/hostname")"
__consul_agent \
--datacenter dc1 \
--node-name "${hostname%%.*}" \
--disable-update-check \
--server \
--rejoin-after-leave \
--bootstrap-expect 3 \
--retry-join consul-01 \
--retry-join consul-02 \
--retry-join consul-03
configure as server, bootstrap and rejoin with ssl support π (security girlies rise up)
hostname="$(cat "$__global/explorer/hostname")"
__consul_agent \
--datacenter dc1 \
--node-name "${hostname%%.*}" \
--disable-update-check \
--server \
--rejoin-after-leave \
--bootstrap-expect 3 \
--retry-join consul-01 \
--retry-join consul-02 \
--retry-join consul-03 \
--ca-file-source /path/to/ca.pem \
--cert-file-source /path/to/cert.pem \
--key-file-source /path/to/key.pem \
--verify-incoming \
--verify-outgoing
configure as client and try joining existing cluster π¦
__consul_agent \
--datacenter dc1 \
--node-name "${hostname%%.*}" \
--disable-update-check \
--retry-join consul-01 \
--retry-join consul-02 \
--retry-join consul-03
π₯ SEE ALSO π₯
consul documentation at: http://www.consul.io/docs/agent/options.html.
π AUTHORS π
Steven Armstrong <steven-cdist--@--armstrong.cc> β the icon who made 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
and that's the whole page bestie, you ate that. this was cdist version 7.0.0, dated Jul 31, 2022, from the CDIST-TYPE__CONSUL_AGENT(7) manual. go forth and manage that agent. slay. πβ¨ππ¦
π¦ 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