Giter Club home page Giter Club logo

saltstack-openstack-yum's Introduction

SaltStack 自动化部署OpenStack Icehouse

前言

诞生记

- 首先:之前编写了SaltStack自动化部署OpenStackI版:使用的源码包的方式
- 因为:有用户反映安装起来比较繁琐,加上pip源网络的问题,很多朋友自动化部署有问题。
- 所以:本次重新使用yum安装的方式重新编写了一遍。
- 最后:如有建议欢迎反馈。QQ:57459267

友情提示

- 本文的使用对象为熟悉OpenStack,可以手动完成OpenStack的部署的用户。
如果不熟悉OpenStack的用户,可以参考我录制的

使用方式

1.OpenStack架构

架构图

2.介绍

- 1.每个服务均有一个目录存放SLS文件。每个目录下均有files目录,用来存放源文件。
- 2.每个服务均有一个Pillar文件,主要定义和配置相关的如IP地址、网络接口、用户名和密码等。

使用步骤

1.下载SLS,并mv到你设置的file_roots和pillar_roots对应的位置

# git clone https://github.com/unixhot/saltstack-openstack-yum
# cd saltstack-openstack-yum/
# mv states/* /srv/salt/base
# mv pillar/* /srv/pillar/base

2.修改Pillar目录的各个服务的配置

3.修改top.sls

All-In-One(所有服务均安装在一台服务器)

base:
  '*':
    - openstack.all-in-one

控制节点+计算节点

base:
  'control':
      - openstack.control
  'compute':
      - openstack.compute

多节点

base:
  'mysql':
    - openstack.mysql.server
  'rabbitmq':
    - openstack.rabbitmq-server
  'keystone':
    - openstack.keystone.server
  'glance':
    - openstack.glance.server
  'nova-control':
    - openstack.nova.control
  'nova-compute':
    - openstack.nova.compute
    - openstack.neutron.linuxbridge_agent
  'neutron-server':
    - openstack.neutron.server
  'cinder-server':
    - opensack.cinder.server
  'horizon':
    - openstack.horizon.server

##已知Bug

* Neutron的neutron.conf需要获取service的tenant id后,手动设置
    keystone tenant-list | awk '/ service / { print $2 }'
    nova_admin_tenant_id =
    
  

saltstack-openstack-yum's People

Contributors

unixhot avatar

Watchers

Jinlong Quan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.