|
Deploy Nomad Configurations / deploy-nomad (push) Failing after 7m45s
Details
Infrastructure CI/CD / Validate Infrastructure (push) Failing after 2m33s
Details
Infrastructure CI/CD / Plan Infrastructure (push) Has been skipped
Details
Infrastructure CI/CD / Apply Infrastructure (push) Has been skipped
Details
Simple Test / test (push) Failing after 2m48s
Details
- 移除 nomad-terraform.tf 和 test_opentofu_consul.tf 文件 - 更新 Ansible inventory,注释掉不存在的节点 hcp2 - 修改 inventory.ini,确保节点配置的准确性 - 在 nomad-config 模块中添加 null_provider 以支持新配置 - 更新 influxdb1.hcl,添加 Grafana 和 Prometheus 数据卷配置 |
||
|---|---|---|
| .. | ||
| 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
- 保持配置一致性