Incorporate minor fixes

Fix incorrect placement of Ansible provisioner in Vagrantfile. Update Ansible playbook to create swarm based on learnings from Interop ITX Swarm demo. Change machines.yml to use bento/ubuntu-14.04 instead of ubuntu/trusty64.

Unable to test due to slowness/connectivity issues to Ubuntu repositories.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
Scott Lowe 2017-09-07 20:22:16 -06:00
parent d5afc5e4c4
commit d5dc506b41
No known key found for this signature in database
GPG key ID: 949F43F6E6C11780
3 changed files with 12 additions and 11 deletions

View file

@ -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

View file

@ -5,9 +5,10 @@
tasks:
- name: "Install Pip"
package:
apt:
name: "python-pip"
state: "present"
update_cache: "yes"
- name: "Install some Python modules"
pip:

View file

@ -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"