Skip to content
Snippets Groups Projects
Commit 0fb35d0b authored by KyleKlenk's avatar KyleKlenk
Browse files

started setting up ansible scripts

parent c0367b77
No related branches found
No related tags found
No related merge requests found
[server]
simlab03.usask.ca
[client]
richardson.usask.ca
\ No newline at end of file
- name: Start server
hosts: server
become: no
vars:
server: simlab03.usask.ca
config_file: /code/openCARP-Actors/tests/input/config_test.toml
server_host_dir: /home/kck540/Cardiac-Projects/openCARP-Actors
container_dir : /code/openCARP-Actors
tasks:
- name: Start server
command:
chdir: /home/kck540/Cardiac-Projects
cmd: screen -L -dmS server bash -c 'apptainer exec --bind /home/kck540/Cardiac-Projects/openCARP-Actors:/code/openCARP-Actors openCARP-actors.sif openCARP -c {{ config_file }} -s -p 4444'
- name: Wait for server to start
wait_for:
host: simlab03.usask.ca
port: 4444
timeout: 60
- name: Start cleints
hosts: client
become: no
vars:
server: simlab03.usask.ca
config_file: /code/openCARP-Actors/tests/input/config_test.toml
server_host_dir: /home/kck540/Cardiac-Projects/openCARP-Actors
container_dir : /code/openCARP-Actors
tasks:
- name: Clone repository
git:
repo: https://git.cs.usask.ca/numerical_simulations_lab/cardiac/openCARP-Actors.git
dest: /home/kck540/Cardiac/openCARP-Actors
- name: Start Client
command:
chdir: /home/kck540/Cardiac
cmd: screen -L -dmS client bash -c 'apptainer exec --bind /home/kck540/Cardiac/openCARP-Actors:/code/openCARP-Actors openCARP-actors.sif openCARP -c {{ config_file }} -p 4444'
...@@ -14,6 +14,6 @@ s2_args = ['openCARP', '+F', '/code/openCARP-Actors/tests/input/s2.par'] ...@@ -14,6 +14,6 @@ s2_args = ['openCARP', '+F', '/code/openCARP-Actors/tests/input/s2.par']
s2_min = 100.0 s2_min = 100.0
s2_max = 500.0 s2_max = 500.0
s2_interval_min = 245 s2_interval_min = 245
s2_interval_max = 250 s2_interval_max = 255
s2_interval_increment = 5 s2_interval_increment = 1
# skip_S1 = true # If True we use S1_max as the stimulus strength for S1 in the S2 simulation. # skip_S1 = true # If True we use S1_max as the stimulus strength for S1 in the S2 simulation.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment