packstack多节点自动部署

1.关闭selinux

sed -i "s/"selinux=enforcing"/"selinux=disabled"/g" /etc/selinux/config

2.编辑 /etc/hosts

 

eg.

192.168.1.12 controller1

....

192.168.1.45 compute1

....

3.所有节点执行 

firewall-cmd --set-default-zone=trusted

systemctl stop NetworkManager

4.免密码登陆

所有节点执行ssh-keygen -t rsa -C ""

互相复制key

ssh-copy-id root@yourip

5.生成应答文件

packstack --gen-awnser-file=intall.txt

vi install.txt

COMPUTE..计算节点

CONFIG_COMPUTE_HOSTS=192.168.41.109,192.168.47.25

添加请填写ip "," 分隔

 

 

你可能感兴趣的:(运维)