Skip to content

Commit

Permalink
ansible: update sgx set-up scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Aug 21, 2024
1 parent 4e8518e commit 8ffe65a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ansible/sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
- hosts: all
gather_facts: yes
tasks:
- include_tasks: tasks/fetch_docker_images.yml
- include_tasks: tasks/sgx_setup.yml
6 changes: 3 additions & 3 deletions ansible/tasks/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

- name: "Create code dir"
file:
path: "/home/{{ ansible_user }}/code"
path: "/home/{{ ansible_user }}/git"
state: directory

- name: "Clone repos"
git:
repo: "https://www.github.com/faasm/{{ item }}.git"
dest: "/home/{{ ansible_user }}/code/{{ item }}"
dest: "/home/{{ ansible_user }}/git/faasm/{{ item }}"
depth: 1
update: yes
recursive: no
Expand All @@ -22,7 +22,7 @@
- name: "Clone specific Faasm submodules"
shell: "git submodule update --init {{ item }}"
args:
chdir: "/home/{{ ansible_user }}/code/faasm"
chdir: "/home/{{ ansible_user }}/git/faasm/faasm"
with_items:
- "clients/cpp"
- "clients/python"
Expand Down
6 changes: 0 additions & 6 deletions ansible/tasks/fetch_docker_images.yml

This file was deleted.

4 changes: 4 additions & 0 deletions ansible/tasks/sgx_setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

- name: "Set WASM VM env. variable to SGX"
shell: "echo 'FAASM_WASM_VM=sgx' >> /home/{{ ansible_user }}/.bash_aliases"
2 changes: 1 addition & 1 deletion tasks/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def deallocate(ctx, name):
Deallocates, i.e. powers down and deallocates compute resource for the
given Azure VM so that it's not billed.
"""
_vm_op("stop", name)
_vm_op("deallocate", name)


@task
Expand Down

0 comments on commit 8ffe65a

Please sign in to comment.