Ask Your Question

How to use vagrant with openstack ?

asked 2015-11-30 12:01:18 -0500

pl_rock gravatar image

updated 2015-11-30 12:02:58 -0500

I have used vagrant provisioning with Libvirt and Virtualbox. I am comfortable with Vagrantfile but now i want to use vagrant with openstack . what parameter should i include in section

config.vm.provider :openstacktest do |vm| 

Also suggest any other changes or steps for successful provisioning.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-12-04 11:56:13 -0500

pl_rock gravatar image

I got solution of vagrant with openstack.

install openstack provider plugin

vagrant plugin install vagrant-openstack-provider

Create Vagrantfile with content

require 'vagrant-openstack-provider'

Vagrant.configure('2') do |config|       = 'openstack'
  config.ssh.username = 'stack'

  config.vm.provider :openstack do |os|
    os.openstack_auth_url = 'http://keystoneserver/v2.0/tokens'
    os.username           = 'openstackuser'
    os.password           = 'openstackpassword'
    os.tenant_name        = 'tenantname'
    os.flavor             = 'm1.small'
    os.image              = 'image name'
    os.floating_ip_pool   = 'publicNetwork'

and run command :

vagrant up --provider=openstack
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-11-30 12:01:18 -0500

Seen: 738 times

Last updated: Dec 04 '15