mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
d5afc5e4c4
commit
d5dc506b41
3 changed files with 12 additions and 11 deletions
10
docker/ubuntu-swarm-mode/Vagrantfile
vendored
10
docker/ubuntu-swarm-mode/Vagrantfile
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
|
||||
tasks:
|
||||
- name: "Install Pip"
|
||||
package:
|
||||
apt:
|
||||
name: "python-pip"
|
||||
state: "present"
|
||||
update_cache: "yes"
|
||||
|
||||
- name: "Install some Python modules"
|
||||
pip:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue