Last active
August 29, 2015 14:08
-
-
Save davejlong/7344056850e96aca073e to your computer and use it in GitHub Desktop.
Mesosphere Vagrantfile
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
$ vagrant up | |
Bringing machine 'master01' up with 'virtualbox' provider... | |
Bringing machine 'slave01' up with 'virtualbox' provider... | |
There are errors in the configuration of this machine. Please fix | |
the following errors and try again: | |
ansible provisioner: | |
* `playbook` must be set for the Ansible provisioner. |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "master01" do |master| | |
master.vm.box = "ubuntu/trusty64" | |
master.vm.provision "ansible" do |ansible| | |
ansible.playbook = "provisioning/site.yml" | |
ansible.limit = 'all' | |
end | |
end | |
config.vm.define "slave01" do |slave| | |
slave.vm.box = "ubuntu/trusty64" | |
slave.vm.provision "ansible" do |ansible| | |
ansible.playbook = "provisioning/site.yml" | |
ansible.limit = 'all' | |
end | |
end | |
config.vm.provision "ansible" do |ansible| | |
ansible.groups = { | |
"masters" => %w{master01}, | |
"slaves" => %w{slave01}, | |
"all_groups:children" => %w{masters slaves} | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment