###使用Saltstack自动部署Openstack集群。
2.目录结构
|-- LICENSE
|-- README.md
|-- openstack
| |-- glance
| | |-- files
| | `-- glance.sls
| |-- horizon
| | |-- files
| | `-- horizon.sls
| |-- init
| | |-- compute.sls
| | |-- control.sls
| | `-- files
| |-- keystone
| | |-- files
| | `-- keystone.sls
| |-- nova
| | |-- files
| | |-- nova_compute.sls
| | |-- nova_config.sls
| | |-- nova_control.sls
| | `-- nova_install.sls
| `-- quantum
| |-- files
| |-- quantum_config.sls
| |-- quantum_install.sls
| |-- quantum_linuxbridge_agent.sls
| `-- quantum_server.sls
|-- openstack_source.sh
`-- pillar
|-- openstack
| |-- glance.sls
| |-- horizon.sls
| |-- keystone.sls
| |-- nova.sls
| `-- quantum.sls
`-- top.sls
3.介绍
1.每个服务均有一个SLS目录。每个目录下均有SLS和files目录。files目录放置源码包和配置文件。 2.每个服务均有一个Pillar文件,主要定义和配置相关的如IP地址、网络接口、用户名和密码等。
1.下载SLS和源码安装包
# git clone https://github.com/unixhot/saltstack-openstack
# cd saltstack-openstack
# ./openstack_source.sh
2.修改Pillar目录的各个服务的配置
3.修改top.sls
All-In-One(所有服务均安装在一台服务器)
base:
'openstack-node1.unixhot.com':
- openstack.keystone.keystone
- openstack.glance.glance
- openstack.nova.nova_control
- openstack.quantum.quantum_server
- openstack.quantum.quantum_linuxbridge_agent
- openstack.horizon.horizon
- openstack.nova.nova_compute
Cluster(一个控制节点,多个计算节点)
base:
'openstack-node1.unixhot.com':
- openstack.keystone.keystone
- openstack.glance.glance
- openstack.nova.nova_control
- openstack.quantum.quantum_server
- openstack.quantum.quantum_linuxbridge_agent
- openstack.horizon.horizon
'openstack-node2.unixhot.com':
- openstack.nova.nova_compute
- openstack.quantum.quantum_linuxbridge_agent
'openstack-node3.unixhot.com':
- openstack.nova.nova_compute
- openstack.quantum.quantum_linuxbridge_agent