Coder Social home page Coder Social logo

hbombonato / openstack-ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openstack-ansible/openstack-ansible

0.0 2.0 0.0 1.04 MB

Ansible playbooks for installing OpenStack

License: GNU General Public License v3.0

Makefile 2.76% Python 68.21% Shell 1.80% Ruby 27.23%

openstack-ansible's Introduction

OpenStack on Ansible with Vagrant (unofficial)

Note: this isn't the official OpenStack-Ansible project

You almost certainly want openstack/openstack-ansible instead, which is the official OpenStack-Ansible project.

Overview

This repository contains script that will deploy OpenStack into Vagrant virtual machines. These scripts are based on the Official OpenStack Docmentation, havana release, except where otherwise noted.

See also [Vagrant, Ansible and OpenStack on your laptop] (http://www.slideshare.net/lorinh/vagrant-ansible-and-openstack-on-your-laptop) on SlideShare, though this refers to a much older version of this repo and so is now out of date.

Install prereqs

You'll need to install:

To install Ansible and the other required Python modules:

pip install ansible netaddr python-novaclient

(Optional) Speed up your provisioning

Install Vagrant-cachier plugin:

vagrant plugin install vagrant-cachier

It allow to share a local directory containing packages (Apt, Npm, โ€ฆ) cache among VMs.

Get an Ubuntu 12.04 (precise) Vagrant box

Download a 64-bit Ubuntu Vagrant box:

vagrant box add precise64 http://files.vagrantup.com/precise64.box

Grab this repository

This repository uses a submodule that contains some custom Ansible modules for OpenStack, so there's an extra command required after cloning the repo:

git clone http://github.com/openstack-ansible/openstack-ansible.git
cd openstack-ansible
git submodule update --init

Bring up the cloud

make

This will boot three VMs (controller, network, storage, and a compute node), install OpenStack, and attempt to boot a test VM inside of OpenStack.

If everything works, you should be able to ssh to the instance from any of your vagrant hosts:

  • username: cirros
  • password: cubswin:)

Note: You may get a "connection refused" when attempting to ssh to the instance. It can take several minutes for the ssh server to respond to requests, even though the cirros instance has booted and is pingable.

Vagrant hosts

The hosts for the standard configuration are:

  • 10.1.0.2 (our cloud controller)
  • 10.1.0.3 (compute node #1)
  • 10.1.0.4 (the quantum network host)
  • 10.1.0.5 (the swift storage host)

You should be able to ssh to these VMs (username: vagrant, password: vagrant). You can also authenticate with the vagrant private key, which is included here as the file vagrant_private_key (NOTE: git does not manage file permissions, these must be set to using "chmod 0600 vagrant_private_key" or ssh and ansible will fail with an error).

Interacting with your cloud

You can interact with your cloud directly from your desktop, assuming that you have the python-novaclient installed.

Note that the openrc file will be created on the controller by default.

openstack-ansible's People

Contributors

marklee77 avatar lorin avatar cdwertmann avatar replay avatar ccollicutt avatar huzichunjohn avatar tomrobison avatar

Watchers

hbombonato avatar James Cloos 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.