diff --git a/docker/ubuntu-swarm-mode/Vagrantfile b/docker/ubuntu-swarm-mode/Vagrantfile index 241a188..0d63861 100644 --- a/docker/ubuntu-swarm-mode/Vagrantfile +++ b/docker/ubuntu-swarm-mode/Vagrantfile @@ -65,10 +65,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| override.vm.box = machine['box']['vb'] end # srv.vm.provider 'virtualbox' end # config.vm.define - - # Run simple Ansible playbook - config.vm.provision 'ansible' do |ansible| - ansible.playbook = 'provision.yml' - end # config.vm.provision end # machines.each + + # Run simple Ansible playbook + config.vm.provision 'ansible' do |ansible| + ansible.playbook = 'provision.yml' + end # config.vm.provision end # Vagrant.configure diff --git a/docker/ubuntu-swarm-mode/create-swarm.yml b/docker/ubuntu-swarm-mode/create-swarm.yml index 6ab2202..4b45bdb 100644 --- a/docker/ubuntu-swarm-mode/create-swarm.yml +++ b/docker/ubuntu-swarm-mode/create-swarm.yml @@ -5,9 +5,10 @@ tasks: - name: "Install Pip" - package: + apt: name: "python-pip" state: "present" + update_cache: "yes" - name: "Install some Python modules" pip: diff --git a/docker/ubuntu-swarm-mode/machines.yml b/docker/ubuntu-swarm-mode/machines.yml index 64d3907..a7c19de 100644 --- a/docker/ubuntu-swarm-mode/machines.yml +++ b/docker/ubuntu-swarm-mode/machines.yml @@ -1,7 +1,7 @@ --- - box: vmw: "bento/ubuntu-14.04" - vb: "ubuntu/trusty64" + vb: "bento/ubuntu-14.04" name: "manager" nics: - type: "private_network" @@ -10,7 +10,7 @@ vcpu: "1" - box: vmw: "bento/ubuntu-14.04" - vb: "ubuntu/trusty64" + vb: "bento/ubuntu-14.04" name: "worker-01" nics: - type: "private_network" @@ -19,7 +19,7 @@ vcpu: "1" - box: vmw: "bento/ubuntu-14.04" - vb: "ubuntu/trusty64" + vb: "bento/ubuntu-14.04" name: "worker-02" nics: - type: "private_network" @@ -28,7 +28,7 @@ vcpu: "1" - box: vmw: "bento/ubuntu-14.04" - vb: "ubuntu/trusty64" + vb: "bento/ubuntu-14.04" name: "worker-03" nics: - type: "private_network" @@ -37,7 +37,7 @@ vcpu: "1" - box: vmw: "bento/ubuntu-14.04" - vb: "ubuntu/trusty64" + vb: "bento/ubuntu-14.04" name: "worker-04" nics: - type: "private_network"