Created
July 28, 2015 15:03
-
-
Save alessandroleite/563247e57cd283d9b457 to your computer and use it in GitHub Desktop.
Vagrantfile to create a Fedora Atomic host (VM)
This file contains hidden or 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
# 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