|
Deploy Nomad Configurations / deploy-nomad (push) Failing after 1m9s
Details
Simple Test / test (push) Successful in 6s
Details
|
||
|---|---|---|
| .. | ||
| nodes | ||
| scripts | ||
| servers | ||
| templates | ||
| README.md | ||
| consul-onecloud1-server.hcl | ||
| nomad-de-correct.hcl | ||
| nomad-de.hcl | ||
| test-trigger.txt | ||
README.md
Nomad配置管理
目录结构
nomad-configs/
├── templates/
│ └── nomad-client.hcl.j2 # 配置模板
├── nodes/
│ ├── warden.hcl # 各节点配置文件
│ ├── hcp1.hcl
│ ├── onecloud1.hcl
│ ├── influxdb1.hcl
│ ├── ash3c.hcl
│ ├── ch4.hcl
│ └── browser.hcl
├── scripts/
│ └── deploy.sh # 部署脚本
└── README.md
节点列表
- onecloud1 (down)
- hcp1 (down)
- influxdb1 (ready)
- ash3c (ready)
- ch4 (ready)
- warden (ready) - 成功模板
- browser (ready)
使用方法
部署单个节点
cd /root/mgmt/nomad-configs
./scripts/deploy.sh warden
部署所有节点
for node in onecloud1 hcp1 influxdb1 ash3c ch4 warden browser; do
./scripts/deploy.sh $node
done
配置说明
- 基于warden的成功配置
- 只替换节点名和FQDN
- 保持配置一致性