macOS
brew install consul-templatelocal Homebrew formula metadata
安装
brew install consul-templatelocal Homebrew formula metadata
sudo apk add consul-templateAlpine Linux edge package indexes · consul-template · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#consul-templatenixpkgs package indexes · pkgs/by-name/co/consul-template/package.nix · 来源: api.github.com
sudo pacman -S consul-templateArch Linux sync databases · consul-template · 来源: geo.mirror.pkgbuild.com
choco install consul-templateChocolatey community package catalog · consul-template · 来源: community.chocolatey.org
概览
Generic template rendering and notifications with Consul
历史
Consul Template is a HashiCorp daemon and CLI that renders files from Consul, Vault, and Nomad data, then optionally runs commands after changes. It became a standard bridge between service discovery/configuration data and traditional config-file driven software.
HashiCorp released Consul Template 0.1.0 in October 2014. The README still states the core idea: query a Consul, Vault, or Nomad cluster and update any number of templates on the filesystem.
The early changelog shows rapid hardening after launch: 0.2.0 added file and key-prefix helpers, tree and ls functions, string helpers, and more examples; 0.5.0 added SIGHUP reload and service-listing support. Later releases added Vault, Nomad, Consul namespace/partition/peering features, imported services, and security fixes.
Consul Template found adoption in infrastructure stacks that needed dynamic data in ordinary files. Its README recommends running it as a system service, explains why automatic reload-on-file-change is intentionally avoided, and points users toward examples, configuration docs, templating docs, Docker use, and community support.
Input package metadata lists Consul Template for Homebrew, apk, Chocolatey, Nix, and pacman, reflecting its cross-platform single-binary packaging model.
Common usage is to run consul-template with template mappings such as source:destination:command, render configuration files from Consul KV or service catalog data, and restart or reload services such as nginx or haproxy when rendered output changes.
The README also documents once mode, reload via SIGHUP, environment variables shared with Consul, Vault, and Nomad tooling, and version-specific documentation through Git tags.
Consul Template matters because it packages dynamic infrastructure state into the oldest Unix deployment interface: files on disk plus a signal or command. That made it useful before every application learned service discovery APIs directly.
For package maintainers, it is a classic HashiCorp Go binary: upstream releases, version-specific docs, service-manager usage, Docker images, and a web of compatibility with Consul, Vault, Nomad, and downstream config consumers.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
consul-template | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/hashicorp/consul-template
安装元数据
| 软件包键 | brew:consul-template |
|---|---|
| 版本 | 0.42.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/consul-template |
| 主页 | https://github.com/hashicorp/consul-template |
| 仓库 | https://github.com/hashicorp/consul-template |
| 上游文档 | https://github.com/hashicorp/consul-template#readme |
| 许可证 | MPL-2.0 |
| 源码归档 | https://github.com/hashicorp/consul-template/archive/refs/tags/v0.42.1.tar.gz |
| 最后更新 | 2026-07-08T18:11:27Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | consul-template |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
consul-template
nix profile install nixpkgs#consul-templateconsul-template 0.42.0-r1
Generic template rendering and notifications with Consul
sudo apk add consul-templateconsul-template-openrc 0.42.0-r1
Generic template rendering and notifications with Consul (OpenRC init scripts)
sudo apk add consul-template-openrcconsul-template 0.42.0-1
Template rendering, notifier, and supervisor for HashiCorp Consul and Vault data
https://github.com/hashicorp/consul-template
sudo pacman -S consul-templateconsul-template
choco install consul-template来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.