Coder Social home page Coder Social logo

openstack-salt's Introduction

Openstack install with Salt

The project is Tested with

  • Saltstack 2017.7
  • Ubuntu 16.04
  • Openstack Ocata (August 2017)

Architecture

  • Multinode installation on physical server - vm not tested

Requirement

  • A salt Mast
  • Minion with salt configured to the master
  • The controller minion file should have the following directive in order make the database manipulation possible mysql.default_file: '/etc/mysql/debian.cnf'

User Configuration: Action Pillar/global_vars

You have to parameter the pillar global_vars.sls file

  • Password: The password of each services
  • infra: Define the hostname of the controller node
    • network_level: 2 Possible value, l2 OR l3, refer the documentation for more informations
  • openstack: Region and Project name, the other entry are just information
  • nodes: Definition of your servers
    • ip: The management ip of the server
    • name: The hostname of the server
    • role: Can take 3 value controller / compute / storage
    • iface-provider-name: The interface denomination of the second interface use by openstack services differ on each distro

Host and Network Interface, you have to declare:

  • /etc/hosts: A host file: It's the file, it will be copy to the nodes
  • /etc/network/interface: On debian based distributions formated as interfaces-{%HOSTNAME%}

Main States

  • salt '*' state.apply openstack

  • salt '*' state.apply database

  • salt '*' state.apply keystone

  • salt '*' state.apply glance

  • salt '*' state.apply nova

  • salt '*' state.apply neutron

  • salt '*' state.apply dashboard

  • salt '*' state.apply cinder

  • salt '*' state.apply heat

  • salt '*' state.apply openstack.restart-services

Available States

  • salt '*' state.apply chrony.chrony

  • salt '*' state.apply memcached.memcached

  • salt '*' state.apply rabbitmq.rabbitmq

  • salt '*' state.apply network.hosts

  • salt '*' state.apply network.interfaces

  • salt '*' state.apply openstack.environnement-admin

  • salt '*' state.apply openstack.openrc

  • salt '*' state.apply openstack.general

  • salt '*' state.apply database.recreatedb

  • salt '*' state.apply openstack.stop-services

  • salt '*' state.apply openstack.start-services

  • salt '*' state.apply openstack.restart-services

  • salt '*' state.apply database.mysql

  • salt '*' state.apply database.ops-database-create

  • salt '*' state.apply database.ops-user-create

  • salt '*' state.apply database.ops-user-grant

  • salt '*' state.apply keystone.endpoint-create

  • salt '*' state.apply keystone.keystone

  • salt '*' state.apply keystone.stop-services

  • salt '*' state.apply keystone.start-services

  • salt '*' state.apply keystone.restart-services

  • salt '*' state.apply glance.endpoint-create

  • salt '*' state.apply glance.glance

  • salt '*' state.apply glance.stop-services

  • salt '*' state.apply glance.start-services

  • salt '*' state.apply glance.restart-services

  • salt '*' state.apply nova.endpoint-create

  • salt '*' state.apply nova.nova-controller

  • salt '*' state.apply nova.nova-compute

  • salt '*' state.apply nova.stop-services

  • salt '*' state.apply nova.start-services

  • salt '*' state.apply nova.restart-services

  • salt '*' state.apply neutron.endpoint-create

  • salt '*' state.apply neutron.neutron-l2-controller

  • salt '*' state.apply neutron.neutron-l2-compute

  • salt '*' state.apply neutron.neutron-l3-controller

  • salt '*' state.apply neutron.neutron-l3-compute

  • salt '*' state.apply neutron.stop-services

  • salt '*' state.apply neutron.start-services

  • salt '*' state.apply neutron.restart-services

  • salt '*' state.apply cinder.endpoint-create

  • salt '*' state.apply cinder.nova-controller

  • salt '*' state.apply cinder.nova-storage

  • salt '*' state.apply cinder.stop-services

  • salt '*' state.apply cinder.start-services

  • salt '*' state.apply cinder.restart-services

  • salt '*' state.apply heat.endpoint-create

  • salt '*' state.apply heat.heat

  • salt '*' state.apply heat.stop-services

  • salt '*' state.apply heat.start-services

  • salt '*' state.apply heat.restart-services

openstack-salt's People

Contributors

wako057 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

coolpalani

openstack-salt's Issues

Instructions

Hello,

Could you add little brief notes about your salt formula?
Is this formula for one node or multi node installations on virtual machine or physical server?
What about prerequisites ?

Compute Host showing as empty

Hi,

I setup three node controller,compute and storage node.
I ran "main state" salt commands. https://github.com/wako057/openstack-salt

After that I tried to login horizon dashboard and checked about compute host, it seems as empty.

Could you specify the order of installations ?

Should i want execute only your salt main states or "Available States" also
Heat also not installed

Virtualbox Network

Hello,

Could you add script for create network in Virtualbox before virtual machines create via vagrant.
so we can test without any dependency

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.