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
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" |
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']}" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "opscode-ubuntu1404" | |
config.vm.network "private_network", ip: "192.168.33.10" |
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
#!/bin/sh | |
ANSIBLE_PLAYBOOK=$1 | |
ANSIBLE_HOSTS=$2 | |
TEMP_HOSTS="/tmp/ansible_hosts" | |
if ! [ `which ansible` ]; then | |
apt-get install -y software-properties-common | |
apt-add-repository -y ppa:ansible/ansible | |
apt-get update |
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
# Configure the OpenStack Provider | |
provider "openstack" { | |
} | |
# Create a sample server | |
resource "openstack_compute_instance_v2" "sample-server" { | |
name = "tf-sample" | |
image_id = "your_image_id" | |
flavor_id = "your_flavor_id" | |
key_pair = "your_keypair" |
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
#!/bin/sh | |
echo "Hello World. The time is now $(date -R)!" | tee /home/ubuntu/output.txt | |
echo 127.0.1.1 $(hostname) >> /etc/hosts |
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
#!/bin/sh | |
VBoxManage hostonlyif create | |
VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.124.1 --netmask 255.255.255.0 | |
VBoxManage hostonlyif create | |
VBoxManage hostonlyif ipconfig vboxnet1 --ip 192.168.122.1 --netmask 255.255.255.0 |
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
#!/bin/sh | |
VBoxManage createvm --name "admin" --ostype Ubuntu_64 --register | |
VBoxManage modifyvm "admin" --cpus 1 | |
VBoxManage modifyvm "admin" --memory 4096 | |
VBoxManage modifyvm "admin" --nic1 hostonly | |
VBoxManage modifyvm "admin" --hostonlyadapter1 vboxnet0 | |
VBoxManage modifyvm "admin" --nictype1 Am79C973 | |
VBoxManage modifyvm "admin" --nicpromisc1 allow-all | |
VBoxManage modifyvm "admin" --nic2 intnet |
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
#!/bin/sh | |
VBoxManage createvm --name "controller" --ostype Ubuntu_64 --register | |
VBoxManage modifyvm "controller" --cpus 1 | |
VBoxManage modifyvm "controller" --memory 4096 | |
VBoxManage modifyvm "controller" --nic1 hostonly | |
VBoxManage modifyvm "controller" --hostonlyadapter1 vboxnet0 | |
VBoxManage modifyvm "controller" --nictype1 Am79C973 | |
VBoxManage modifyvm "controller" --nicpromisc1 allow-all | |
VBoxManage modifyvm "controller" --nic2 intnet |
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
#!/bin/sh | |
VBoxManage createvm --name "compute" --ostype Ubuntu_64 --register | |
VBoxManage modifyvm "compute" --cpus 1 | |
VBoxManage modifyvm "compute" --memory 2048 | |
VBoxManage modifyvm "compute" --nic1 hostonly | |
VBoxManage modifyvm "compute" --hostonlyadapter1 vboxnet0 | |
VBoxManage modifyvm "compute" --nictype1 Am79C973 | |
VBoxManage modifyvm "compute" --nicpromisc1 allow-all | |
VBoxManage modifyvm "compute" --nic2 intnet |
OlderNewer