如何使用Kolla-Ansible在CentOS 7单节点上部署OpenStack Pike
如何使用Kolla-Ansible在CentOS 7单节点上部署OpenStack Pike
使用Kolla-Ansible部署OpenStack Pike的方法如下:
1.下载Kolla-Ansible
git clone https://github.com/openstack/kolla-ansible.git
2.安装依赖
yum install -y python-devel libffi-devel openssl-devel
3.安装Kolla-Ansible
pip install -r requirements.txt
4.创建配置文件
mkdir -p /etc/kolla
cp -r etc/kolla/* /etc/kolla/
5.修改配置文件
vim /etc/kolla/globals.yml
kolla_base_distro: centos
kolla_install_type: source
kolla_internal_vip_address: "192.168.0.254"
openstack_release: "pike"
6.创建 inventory 文件
vim /etc/kolla/inventory/my-single-node
[control]
node1 ansible_ssh_user=centos ansible_ssh_pass=centos
[compute]
node1 ansible_ssh_user=centos ansible_ssh_pass=centos
7.部署
kolla-ansible -i /etc/kolla/inventory/my-single-node bootstrap-servers
kolla-ansible -i /etc/kolla/inventory/my-single-node prechecks
kolla-ansible -i /etc/kolla/inventory/my-single-node deploy
相关文章