Last active
August 29, 2015 14:06
-
-
Save torumakabe/c9de20c61752864aca86 to your computer and use it in GitHub Desktop.
Vagrantfile for HP Public Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'vagrant-openstack-plugin' | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
# Make sure the private key from the key pair is provided | |
config.ssh.private_key_path = "~/.ssh/your_key" | |
config.vm.provider :openstack do |os| | |
os.username = "#{ENV['OS_USERNAME']}" | |
os.api_key = "#{ENV['OS_PASSWORD']}" | |
os.flavor = /standard.xsmall/ | |
os.image = /Ubuntu Server 14.04/ | |
os.endpoint = "#{ENV['OS_AUTH_URL']}/tokens" | |
os.region = "#{ENV['OS_REGION_NAME']}" | |
os.keypair_name = "your_keypair_name" | |
os.ssh_username = "ubuntu" | |
os.server_name = "lab01" | |
os.user_data = "#cloud-config\nmanage_etc_hosts: True" | |
os.networks = [ "net1" ] | |
os.availability_zone = "az1" | |
os.security_groups = ['default', 'http'] | |
os.tenant = "#{ENV['OS_TENANT_NAME']}" | |
os.floating_ip = :auto | |
end | |
# Provision | |
config.vm.provision "shell", path: "scripts/bootstrap.sh" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment