mgmt/nomad-configs
Houzhong Xu 5d3ef8c0b4
GitOps Test: Seventh Simple GitOps test
- Test simple GitOps: Push → Manual Deploy → Verify
- Remove complex webhook/runner solutions
- Use direct Ansible deployment
- Timestamp: 2025-10-09T10:40 UTC
2025-10-09 10:41:26 +00:00
..
nodes GitOps Test: Seventh Simple GitOps test 2025-10-09 10:41:26 +00:00
scripts Clean repository: organized structure and GitOps setup 2025-10-09 06:13:45 +00:00
servers CRITICAL FIX: Repair cluster stability 2025-10-09 10:17:34 +00:00
templates Clean repository: organized structure and GitOps setup 2025-10-09 06:13:45 +00:00
README.md Clean repository: organized structure and GitOps setup 2025-10-09 06:13:45 +00:00
consul-onecloud1-server.hcl Clean repository: organized structure and GitOps setup 2025-10-09 06:13:45 +00:00
nomad-de-correct.hcl Clean repository: organized structure and GitOps setup 2025-10-09 06:13:45 +00:00
nomad-de.hcl Clean repository: organized structure and GitOps setup 2025-10-09 06:13:45 +00:00

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
  • 保持配置一致性