GithubHelp home page GithubHelp logo

mendeshiva / openstack_singlenode_mitaka Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devopsyuva/openstack_singlenode_mitaka

0.0 1.0 0.0 43 KB

OpenStack Single node setup(Mitaka) on Debian Machines.

Shell 100.00%

openstack_singlenode_mitaka's Introduction

Openstack Mitaka setup on single node (Ubuntu/Debian):
######################################################

1) Components that will be installed for the openstack setup in our environment.

	a) keystone
	b) glance
	c) nova
	d) neutron
	e) dashboard

2) For mysql, rabbitmq and memcache, we are using localhost IP address/domain (127.0.0.1/localhost).

3) Endpoints for all the services are created on localhost name. Ex: http://localhost:35357

4) For bridge use any one of the interface Ex: eth0/enp0s3 (provider), assign proper interface array number in group_vars/all file
	Ex: controller_interface:

5) This code is tested successfully on Debain machines.

6) Pre-required checks:
	a) Install Ubuntu/Debian server OS on Virtual server/ Physical server.
	b) Make sure that you have atleast one NIC interface/vboxnet (Management IP: eth0/enp0s3) for the server.
	c) Minimum of 4GB RAM and 60GB HDD.

Tree structure of the ansible playbook for single node setup:
#############################################################

├── ansible.cfg
├── group_vars
│   └── all
├── hosts
├── playbooks
│   ├── deploy_basic.yml
│   ├── deploy_dashboard.yml
│   ├── deploy_database.yml
│   ├── deploy_glance.yml
│   ├── deploy_keystone.yml
│   ├── deploy_memcached.yml
│   ├── deploy_newtron.yml
│   ├── deploy_nova.yml
│   └── deploy_rabbitmq.yml
├── README
├── roles
│   ├── common
│   │   ├── dashboard
│   │   │   ├── handlers
│   │   │   │   └── main.yml
│   │   │   ├── README.md
│   │   │   ├── tasks
│   │   │   │   └── main.yml
│   │   │   ├── templates
│   │   │   │   └── local_settings.py.j2
│   │   │   └── vars
│   │   ├── database
│   │   │   ├── handlers
│   │   │   │   └── main.yml
│   │   │   ├── README.md
│   │   │   ├── tasks
│   │   │   │   └── main.yml
│   │   │   └── templates
│   │   │       └── openstack.cnf.j2
│   │   ├── memcache
│   │   │   ├── handlers
│   │   │   │   └── main.yml
│   │   │   ├── README.md
│   │   │   └── tasks
│   │   │       └── main.yml
│   │   └── rabbitmq
│   │       ├── handlers
│   │       │   └── main.yml
│   │       ├── README.md
│   │       └── tasks
│   │           └── main.yml
│   ├── compute
│   │   ├── handlers
│   │   │   └── main.yml
│   │   ├── README.md
│   │   └── tasks
│   │       └── main.yml
│   ├── glance
│   │   ├── handlers
│   │   │   └── main.yml
│   │   ├── README.md
│   │   └── tasks
│   │       └── main.yml
│   ├── keystone
│   │   ├── handlers
│   │   │   └── main.yml
│   │   ├── README.md
│   │   ├── tasks
│   │   │   └── main.yml
│   │   └── templates
│   │       ├── admin-openrc.j2
│   │       ├── demo-openrc.j2
│   │       ├── export.sh
│   │       └── wsgi-keystone.conf.j2
│   └── neutron
│       ├── handlers
│       │   └── main.yml
│       ├── README.md
│       └── tasks
│           └── main.yml
├── site.yaml

How to run the playbook:
########################

	a) Add the following entries according to your environment.
		1) update the hosts file with the server hostname
		2) change the group_vars/all file accordingly, like admin password, users password etc.,
		3) group file is password protected (test123)
Note: Place the playbook code ( ansible.cfg, hosts, group_vars, roles etc) under /etc/ansible directory after removing the detault files.

	b) Copy the public of the ansible user to the node on which you will install Openstack.
		ssh-keygen (to create keypair) and ssh-copy-id user@<ip/hostname> (copy the public key to remote server/local)

	c) Execute the following command to check the connectivity from ansible server to Openstack node.
		ansible all -m ping  --> If this step is successfull, then execute the site.yml playbook

	d) check the syntax of the ansible code which you have downloaded.
		ansible-playbook site.yml --syntax-check

	e) Now, run the playbook site.yml which will install from basic components like repo, database, etc to dashboard.
		ansible-playbook site.yml

	f) If you facing issue while executing the above playbook, run playbook individually.
		Ex: ansible-playbook playbook/deploy_basic.yml

		---
		- include: playbooks/deploy_basic.yml
		- include: playbooks/deploy_database.yml
		- include: playbooks/deploy_rabbitmq.yml
		- include: playbooks/deploy_memcached.yml
		- include: playbooks/deploy_keystone.yml
		- include: playbooks/deploy_glance.yml
		- include: playbooks/deploy_nova.yml
		- include: playbooks/deploy_newtron.yml
		- include: playbooks/deploy_dashboard.yml

	g) after successfull installation, access the openstack dashborad with the ipaddress/dashboard from your browser.

Note: For further queries, drop a email to the address: [email protected], [email protected]

openstack_singlenode_mitaka's People

Contributors

chsk-code avatar devopsyuva avatar

Watchers

 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.