Ask Your Question
3

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| 
'
'
'
end

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
1

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|

  config.vm.box       = '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'
  end
end

and run command :

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 467 times

Last updated: Dec 04 '15