-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
51 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,35 @@ | ||
- name: "Deploy VIO on edge" | ||
- name: "Deploy vio on edge and launch" | ||
hosts: all | ||
tasks: | ||
- name: Start all edge services on intel (model_serving, orchestrator, interface) | ||
make: | ||
chdir: "{{ REMOTE_VIO_DIR }}" | ||
target: vio-edge-up-intel | ||
- name: Clone vio git repo | ||
ansible.builtin.git: | ||
repo: https://github.com/octo-technology/VIO.git | ||
dest: "{{ REMOTE_VIO_DIR }}" | ||
single_branch: yes | ||
version: deploy_vio_on_edge | ||
force: true | ||
|
||
- name: Create a directory if it does not exist | ||
ansible.builtin.file: | ||
path: "{{ REMOTE_VIO_DIR }}/edge_orchestrator/config/secrets" | ||
state: directory | ||
|
||
- name: Copy config on the remote machine | ||
ansible.builtin.copy: | ||
src: "{{ LOCAL_VIO_DIR }}/edge_orchestrator/config/secrets" | ||
dest: "{{ REMOTE_VIO_DIR }}/edge_orchestrator/config/" | ||
|
||
- name: Copy model file on the remote machine | ||
ansible.builtin.copy: | ||
src: "{{ LOCAL_VIO_DIR }}/edge_model_serving/models/tflite" | ||
dest: "{{ REMOTE_VIO_DIR }}/edge_model_serving/models/" | ||
|
||
- name: Template docker compose | ||
ansible.builtin.template: | ||
src: "{{ LOCAL_VIO_DIR }}/deployment/edge/ansible/files/docker-compose.template.yml" | ||
dest: "{{ REMOTE_VIO_DIR }}/docker-compose.yml" | ||
|
||
- name: Start all edge services on intel (model_serving, orchestrator, interface) | ||
make: | ||
chdir: "{{ REMOTE_VIO_DIR }}" | ||
target: vio-edge-up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[edge_1] | ||
10.103.252.192 ansible_user=devkit ansible_password=devkit | ||
|
||
[edge_1:vars] | ||
EDGE_NAME="edge1" | ||
|
||
[edge_2] | ||
10.103.253.2 ansible_user=devkit ansible_password=devkit | ||
|
||
[edge_2:vars] | ||
EDGE_NAME="edge2" | ||
|
||
[all:vars] | ||
LOCAL_VIO_DIR={{ lookup('env', 'LOCAL_VIO_DIR') }} | ||
REMOTE_VIO_DIR=/home/devkit/vio |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters