Added the required initialization to start the docker swarm cluster.
Converted yet more dos format files to unix format. Updated the
document on building voltha on a QEMU/KVM virtualization environment
using vagrant. Added a configuration file for the install vagrant to
eventually enable multiple users on a single compute node all able to
run independent voltha docker swarm clusters as VMs. More work is
required to finalize multi-user test mode which will be submitted in a
subsequent update.
This update continues to address Jira VOL-6
Change-Id: I88bc41aa6484877cb76ad38f8bab894f141cebdb
diff --git a/install/ansible/roles/installer/tasks/installer.yml b/install/ansible/roles/installer/tasks/installer.yml
index 330d512..6be27ae 100644
--- a/install/ansible/roles/installer/tasks/installer.yml
+++ b/install/ansible/roles/installer/tasks/installer.yml
@@ -1,55 +1,55 @@
-- name: Ansible repository is available
- apt_repository:
- repo: 'ppa:ansible/ansible'
- tags: [installer]
-- name: Debian ansible is present
- apt:
- name: ansible
- state: latest
- force: yes
- tags: [installer]
-- name: Installer files and directories are copied
- copy:
- src: "{{ cord_home }}/incubator/voltha/{{ item }}"
- dest: /home/vinstall
- owner: vinstall
- group: vinstall
- with_items:
- - install/installer.sh
- - install/install.cfg
- - install/ansible
- - compose
- - nginx_config
- tags: [installer]
-- name: Determine if test mode is active
- become: false
- local_action: stat path="{{ cord_home }}/incubator/voltha/install/.test"
- register: file
- ignore_errors: true
-- name: Test mode file is copied
- copy:
- src: "{{ cord_home }}/incubator/voltha/install/.test"
- dest: /home/vinstall
- when: file.stat.exists
-- name: The installer is made executable
- file:
- path: /home/vinstall/installer.sh
- mode: 0744
- tags: [installer]
-- name: Python docker-py 1.6.0 package source is available
- command: pip download -d /home/vinstall/docker-py "docker-py==1.6.0"
- tags: [installer]
-- name: Python netifaces 0.10.4 package source is available
- command: pip download -d /home/vinstall/netifaces "netifaces==0.10.4"
- tags: [installer]
-- name: Deb file directory doesn't exist
- file:
- path: /home/vinstall/deb_files
- state: absent
- tags: [installer]
-- name: Deb files are saved.
- command: cp -r /var/cache/apt/archives /home/vinstall
- tags: [installer]
-- name: Deb file directory is renamed
- command: mv /home/vinstall/archives /home/vinstall/deb_files
- tags: [installer]
+- name: Ansible repository is available
+ apt_repository:
+ repo: 'ppa:ansible/ansible'
+ tags: [installer]
+- name: Debian ansible is present
+ apt:
+ name: ansible
+ state: latest
+ force: yes
+ tags: [installer]
+- name: Installer files and directories are copied
+ copy:
+ src: "{{ cord_home }}/incubator/voltha/{{ item }}"
+ dest: /home/vinstall
+ owner: vinstall
+ group: vinstall
+ with_items:
+ - install/installer.sh
+ - install/install.cfg
+ - install/ansible
+ - compose
+ - nginx_config
+ tags: [installer]
+- name: Determine if test mode is active
+ become: false
+ local_action: stat path="{{ cord_home }}/incubator/voltha/install/.test"
+ register: file
+ ignore_errors: true
+- name: Test mode file is copied
+ copy:
+ src: "{{ cord_home }}/incubator/voltha/install/.test"
+ dest: /home/vinstall
+ when: file.stat.exists
+- name: The installer is made executable
+ file:
+ path: /home/vinstall/installer.sh
+ mode: 0744
+ tags: [installer]
+- name: Python docker-py {{ docker_py_version }} package source is available
+ command: pip download -d /home/vinstall/docker-py "docker-py=={{ docker_py_version }}"
+ tags: [installer]
+- name: Python netifaces {{ netifaces_version }} package source is available
+ command: pip download -d /home/vinstall/netifaces "netifaces=={{ netifaces_version }}"
+ tags: [installer]
+- name: Deb file directory doesn't exist
+ file:
+ path: /home/vinstall/deb_files
+ state: absent
+ tags: [installer]
+- name: Deb files are saved.
+ command: cp -r /var/cache/apt/archives /home/vinstall
+ tags: [installer]
+- name: Deb file directory is renamed
+ command: mv /home/vinstall/archives /home/vinstall/deb_files
+ tags: [installer]