Skip to content

Instantly share code, notes, and snippets.

@alessandroleite
Created July 28, 2015 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alessandroleite/563247e57cd283d9b457 to your computer and use it in GitHub Desktop.
Save alessandroleite/563247e57cd283d9b457 to your computer and use it in GitHub Desktop.
Vagrantfile to create a Fedora Atomic host (VM)
# Vagrantfile for Fedora 22 Atomic Host
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.ssh.insert_key = true
config.vm.define "dkvm" do |h|
h.vm.box = "fedora-cloud-atomic-22"
h.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Atomic-Vagrant-22-20150521.x86_64.vagrant-virtualbox.box"
h.vm.provider :virtualbox do |v|
v.name = h.vm.hostname.to_s
end
h.vm.provision "shell" do |s|
s.inline = "echo OPTIONS='--selinux-enabled -H=tcp://0.0.0.0:4243' >> /etc/sysconfig/docker"
s.privileged = true
end
h.vm.provision "shell" do |s|
s.inline = "docker pull rhel7/rhel-tools"
s.privileged = true
end
h.vm.boot_timeout = 900
h.vm.hostname = "dkvm"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment