Giter VIP home page Giter VIP logo

vagrant-packstack's Introduction

vagrant-packstack

This vagrant environment runs CentOS 7 and the Packstack installer for an all-in-one OpenStack environment.

Prereqs

  • VirtualBox
  • Configure a NAT Network VBoxManage natnetwork add --netname packstack --network 172.16.1.0/24 --enable
  • vagrant-hostmanager
  • vagrant-timezone
  • ansible mkvirtualenv vagrant-packstack -r requirements.txt
  • 8GB of ram is needed by the virt

Start the show

  1. Once you have your environment up, do vagrant up to start the virt and installation. Note this takes a while, go get some coffee...

There is a chance of a failure on the last provisioning step (Restart Networking), this is not a fatal error and you can continue

OpenStack Orchestration via Ansible

Next up we need to setup OpenStack with a way to let instances get to the outside world, this is called the provider network. We'll also setup a project and user for doing things not with the admin user, and then create something.

  1. Setup the external provider network and "vagrant" project/user in openstack:

  2. source provisioning/openstack/keystonerc_admin

  3. ansible-playbook provisioning/openstack/admin-setup-tasks.yml

  4. Lets make something:

  5. source provisioning/openstack/keystonerc_vagrant

  6. ansible-playbook provisioning/openstack/vagrant-demo.yml

After it is online, visit http://packstack.vagrant/dashboard with the creds found in provisioning/openstack/keystonerc_[admin|vagrant] or use the openstack client.


Networking

The vagrant is configured with three interfaces:

  1. The default interface used by vagrant to control the box
  2. Used by OpenStack for API access from the host
  3. Used by OpenStack for external access for instances to reach the internet

Due to the limitations of the NAT Network and Host-Only interfaces, we are not able to reach instances directly from host, but only locally from within the vagrant. All signs point to VirtualBox filtering these interfaces before they reach the guest. A thought was to use Bridged networking, but that is too dependent on someone's networking environment that I could not write a portable environment to handle all cases.

Customizing Packstack

Currently the Packstack installer is customized via command line options. If you wish to further customize the installer, update the command in provisioning/vagrant/packstack-install.yml. Running packstack --help will display all the available options. Note, the more services you enable, the more memory used.


VMWare Fusion

VMWare Fusion doesn't have these network limitations and so we don't need that third NAT Network interface and are able to directly access instances from the host.


References:

vagrant-packstack's People

Contributors

davidmnoriega 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.