Skip to content

Commit 1bd590c

Browse files
committed
ansible: fix sgx-faasm deployment
Signed-off-by: Carlos Segarra <carlos@carlossegarra.com>
1 parent 997ef1c commit 1bd590c

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

ansible/tasks/sgx-faasm/code.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@
1717
with_items:
1818
- "examples"
1919
- "faasm"
20-
- "rabe"
21-
- "tless-jwt"
2220
- "tless"

ansible/tasks/sgxfaasm.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22

33
- name: "Fetch all container images"
4-
shell:
5-
cmd: |
4+
shell: |
65
docker pull ghcr.io/faasm/accless-experiments:{{ accless_version}}
76
docker pull ghcr.io/faasm/upload:{{ faasm_version }}
87
docker pull ghcr.io/faasm/worker:{{ faasm_version }}
@@ -25,9 +24,8 @@
2524
FAASM_WASM_VM: sgx
2625

2726
# Build all the targets for the SGX and non-SGX baselines
28-
- name: "Deploy Faasm cluster"
29-
shell:
30-
cmd: |
27+
- name: "Build all Faasm targets"
28+
shell: |
3129
source ./bin/workon.sh && faasmctl cli.faasm --cmd "./bin/inv_wrapper.sh dev.tools --build Release --sgx Hardware"
3230
source ./bin/workon.sh && faasmctl cli.faasm --cmd "./bin/inv_wrapper.sh dev.tools --build Release --sgx Disabled"
3331
args:
@@ -37,7 +35,7 @@
3735
FAASM_WASM_VM: sgx
3836

3937
# Stop the cluster
40-
- name: "Deploy Faasm cluster"
38+
- name: "Delete Faasm cluster"
4139
shell: source ./bin/workon.sh && faasmctl delete
4240
args:
4341
chdir: "/home/{{ ansible_user }}/git/faasm/faasm"

docs/sgx_faasm.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SGX-Faasm
22

3-
TODO(docs): explain SGX-Faasm design
4-
53
SGX-Faasm is a port of the [Faasm](https://github.com/faasm/faasm) serverless
64
runtime to execute serverless functions (inside WASM modules) inside SGX
75
enclaves and, optionally, leverage Accless for access control.

invrs/src/tasks/azure.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,12 @@ impl Azure {
515515
match extra_vars {
516516
Some(val) => {
517517
let json = serde_json::to_string(&val).unwrap();
518-
format!("-e {json}")
518+
format!("-e '{json}'")
519519
},
520520
None => "".to_string(),
521521
}
522522
);
523+
println!("FOO: {ansible_cmd}");
523524
Self::run_cmd_check_status(&ansible_cmd, "failed to run ansible playbook");
524525
}
525526

0 commit comments

Comments
 (0)