Skip to content
Snippets Groups Projects
Commit 69096c52 authored by root's avatar root
Browse files

ci vm for givry

parent 406b53b8
No related branches found
No related tags found
No related merge requests found
$lxc_script = <<-SCRIPT
apt-get update
apt-get install lxc lxc-templates wget bridge-utils jq -y
lxc-checkconfig
touch /etc/lxc/dnsmasq.conf
sed -i s/10.0.3/172.40.231/g /etc/default/lxc-net
sed -i s/#LXC_DHCP_CONFILE/LXC_DHCP_CONFILE/g /etc/default/lxc-net
service lxc-net restart
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "yk0/ubuntu-xenial"
config.vm.provider :libvirt do |domain|
domain.memory = 8192
domain.cpus = 4
end
# Install lxc
config.vm.provision :shell, inline: $lxc_script
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment