Kolla-ansible自动化部署openstack
kolla ansible简介
kolla 的使命是为 openstack 云平台提供生产级别的、开箱即用的交付能力。kolla 的基本思想是一切皆容器,将所有服务基于 Docker 运行,并且保证一个容器只跑一个服务(进程),做到最小粒度的运行 docker。
kolla 要实现 openetack 部署总体上分为两步,第一步是制作 docker 镜像,第二步是编排部署。因此,kolla 项目又被分为两个小项目:kolla、kolla-ansible 。
一、准备工作(模拟all-in-one部署)
1、配置好网卡IP(至少2张网卡)
vm模拟环境(1张nat+1张桥接网卡)
nat网卡(ens32):192.168.108.10
桥接网卡(ens33):192.168.20.10
2、修改主机名
hostnamectl set-hostname+主机名
3、关闭防火墙、NM服务、selinux
systemctl stop firewalld && systemctl disable firewalld
systemctl stop NetworkManager && systemctl disable NetworkManager
setenforce 0
vi /etc/sysconfig/selinux
4、把节点IP写入hosts
vi /etc/hosts
5、做主机信任
ssh-keygen -t rsa(一直按回车)
ssh-copy-id kolla
6、修改DNS
vi /etc/resolv.conf
nameserver 114.114.114.114
二、环境准备
(1)部署节点
1、安装使用工具
yum -y install vim wget net-tools
2、更新base源和下载epel源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo