Skip to content

Instantly share code, notes, and snippets.

@davejlong
Last active August 29, 2015 14:08
Show Gist options
  • Save davejlong/7344056850e96aca073e to your computer and use it in GitHub Desktop.
Save davejlong/7344056850e96aca073e to your computer and use it in GitHub Desktop.
Mesosphere Vagrantfile
$ 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.
# -*- 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