Skip to content

Instantly share code, notes, and snippets.

@torumakabe
Last active August 29, 2015 14:00
Show Gist options
  • Save torumakabe/25a33c679492676bb626 to your computer and use it in GitHub Desktop.
Save torumakabe/25a33c679492676bb626 to your computer and use it in GitHub Desktop.
Vagrantfile for HP Public Cloud
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.provider :hp do |rs|
rs.access_key = "your_access_key"
rs.secret_key = "your_secret_key"
rs.flavor = "standard.xsmall"
rs.tenant_id = "your_tenant_id"
rs.server_name = "hogehoge"
rs.image = "df3debd0-9391-4292-b4fe-fd3a700e7f4e"
rs.keypair_name = "your_keypair_name"
rs.ssh_private_key_path = "~/.ssh/your_ssh_private_key"
rs.ssh_username = "ubuntu"
rs.availability_zone = "us-west" #Optional. Not AZ, but Region. default = "us-west"
rs.security_groups = ["default", "http"] #Optional. default = "default"
rs.floating_ip ="xx.xx.xx.xx" #Optional
rs.network = ["your_network_name"] #Optional. If you have more than one network, you have to specify it
end
config.vm.synced_folder "./data/", "/vagrant/data/" #Optional. "Local", "Remote"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment