Skip to content

caotingv/kly-deploy

This branch is 1 commit behind fightdou/kly-deploy:main.

Repository files navigation

kly-deploy

配置主机清单

修改 hosts 文件,将部署环境的节点信息配置进去

修改 globals 文件

修改 ceph-globals.yaml 与 globals_vars.yaml

部署脚本

首先加载离线资源

cd /root/deploy/kly-deploy/
ansible-playbook -i etc_example/hosts -e @etc_example/global_vars.yaml -e @etc_example/ceph-globals.yaml ansible/91-prepare.yaml

部署 ceph 环境

cd /root/deploy/kly-deploy/
ansible-playbook -i etc_example/hosts -e @etc_example/global_vars.yaml -e @etc_example/ceph-globals.yaml ceph-ansible/ceph-deploy.yaml

部署其他服务

cd /root/deploy/kly-deploy/
ansible-playbook -i etc_example/hosts -e @etc_example/global_vars.yaml -e @etc_example/ceph-globals.yaml ansible/90-setup.yaml

集群资源恢复(仅适用于易教版)

cd /root/deploy/kly-deploy/tools
./env_recovery.sh

更改集群 IP(仅适用于易教版)

cd /root/deploy/kly-deploy/tools

# 单节点
./update_ipaddress.sh --ipaddr 192.168.100.10 --prefix 24 --gateway 192.168.100.254

# 多节点
./update_ipaddress.sh --ipaddr 192.168.100.10 --ipaddr 192.168.100.11 --ipaddr 192.168.100.12 --vip 192.168.100.251 --prefix 24 --gateway 192.168.100.254

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.8%
  • Jinja 33.1%
  • Shell 12.1%