Files
matchbox/pixiecore/Vagrantfile
2015-12-16 02:17:50 -08:00

34 lines
882 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'fileutils'
CLOUD_CONFIG_PATH = File.join(File.dirname(__FILE__), "user-data")
CONFIG = File.join(File.dirname(__FILE__), "config.rb")
if File.exist?(CONFIG)
require CONFIG
end
Vagrant.configure(2) do |config|
config.vm.box = "fedora/23-cloud-base"
# Create a public network with a static IP address
config.vm.network "public_network", ip: $pixiecore_server_ip, dev: "wlp3s0"
# Provider Specific Configuration
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 1
libvirt.memory = 1024
libvirt.management_network_name = "vagrant-pixiecore"
libvirt.management_network_address = $network_range
end
# Provision a Pixiecore Server
config.vm.provision :shell do |s|
s.privileged = true
s.path = "scripts/pixiecore.sh"
s.args = [$pixiecore_server_ip, $ssh_authorized_key]
end
end