Skip to content

Commit 6da3447

Browse files
authored
[LAB-724] ansible 1.1.2 changes (#725)
1 parent d11503c commit 6da3447

8 files changed

+34
-111
lines changed

infrastructure/ansible/files/compute.service

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ ExecStart=bacalhau serve \
1818
{% if ansible_ec2_instance_id is defined %}
1919
--labels instance-id={{ ansible_ec2_instance_id }} \
2020
{% endif %}
21+
--job-selection-probe-http {{ receptor_url }} \
22+
--max-job-execution-timeout "{{ bacalhau_max_job_execution_timeout | default('24h') }}" \
2123
--peer {{ requester_peer }} \
2224
--job-selection-accept-networked \
2325
--job-selection-data-locality anywhere

infrastructure/ansible/files/compute.yaml

-67
This file was deleted.

infrastructure/ansible/files/requester.service

-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ ExecStart=bacalhau serve \
1010
--node-type requester \
1111
--ipfs-connect {{ ipfs_connect }} \
1212
--private-internal-ipfs=false \
13-
{% if receptor_url is defined %}
1413
--job-selection-probe-http {{ receptor_url }} \
15-
{% endif %}
1614
--labels owner={{ owner }} \
1715
--job-selection-accept-networked \
1816
--job-selection-data-locality anywhere \

infrastructure/ansible/provision_compute_instance.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
remote_user: ubuntu
33
hosts: "{{ target_hosts | default('tag_Type_compute') }}"
44
vars:
5-
nvidia_distribution: ubuntu2004
5+
nvidia_distribution: ubuntu2204
66
nvidia_container_toolkit_key_path: /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
77
ipfs_path: /opt/local/ipfs
88
environment:

infrastructure/ansible/provision_compute_only.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
hosts: "{{ target_hosts | default('tag_Type_compute_only') }}"
55
gather_facts: true
66
vars:
7-
nvidia_distribution: ubuntu2004
7+
nvidia_distribution: ubuntu2204
88
ipfs_version: "0.18.0"
99
ipfs_path: "/opt/ipfs"
1010
go_version: 1.20.3

infrastructure/ansible/tasks/install_bacalhau_tasks.yaml

+15-24
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,10 @@
4848
receptor_hostname: "receptor.{{ ansible_ec2_tags_instance_Env | lower }}.labdao.xyz"
4949
when: ansible_ec2_tags_instance_Env is defined
5050

51-
# Bacalhau PeerID, example `curl -s bacalhau.staging.labdao.xyz:1234/node_info | jq -r '.PeerInfo.ID'`
52-
- name: Determine requester bacalhau peer id
53-
ansible.builtin.uri:
54-
url: "http://{{ requester_hostname }}:1234/node_info"
55-
return_content: true
56-
register: requester_output
57-
when: requester_hostname is defined and ansible_ec2_tags_instance_Type is defined and ansible_ec2_tags_instance_Type is match("compute.*")
58-
5951
- name: Set requester_peer url
6052
ansible.builtin.set_fact:
61-
# requester_peer: /dns4/requester.staging.labdao.xyz/tcp/1235/p2p/QmeLa2fx2FMNDWbeY3UqjELc1MbKwNxggcmdBmLZepY6VK
62-
requester_peer: "/dns4/{{ requester_hostname }}/tcp/1235/p2p/{{ requester_output.content | from_json | community.general.json_query('PeerInfo.ID') }}"
63-
when: requester_output is defined and ansible_ec2_tags_instance_Type is defined and ansible_ec2_tags_instance_Type is match("compute.*")
53+
requester_peer: "/dns4/{{ requester_hostname }}/tcp/1234/http"
54+
when: ansible_ec2_tags_instance_Type is defined and ansible_ec2_tags_instance_Type is match("compute.*")
6455

6556
- name: Set ipfs connect url
6657
ansible.builtin.set_fact:
@@ -97,16 +88,16 @@
9788
state: started
9889
enabled: true
9990

100-
- name: Flush handler to ensure Bacalhau is running
101-
ansible.builtin.meta: flush_handlers
102-
103-
- name: Deploy config file
104-
become: true
105-
ansible.builtin.template:
106-
src: "files/{{ bacalhau_node_type }}.yaml"
107-
dest: /home/ubuntu/.bacalhau/config.yaml
108-
owner: ubuntu
109-
group: ubuntu
110-
mode: "0644"
111-
notify:
112-
- Restart Bacalhau
91+
# - name: Flush handler to ensure Bacalhau is running
92+
# ansible.builtin.meta: flush_handlers
93+
#
94+
# - name: Deploy config file
95+
# become: true
96+
# ansible.builtin.template:
97+
# src: "files/{{ bacalhau_node_type }}.yaml"
98+
# dest: /home/ubuntu/.bacalhau/config.yaml
99+
# owner: ubuntu
100+
# group: ubuntu
101+
# mode: "0644"
102+
# notify:
103+
# - Restart Bacalhau

infrastructure/ansible/tasks/pull_common_containers.yaml

+15-12
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@
33
name: "{{ item }}"
44
source: pull
55
loop:
6-
- "dfam/tetools:1.85"
7-
- "docker.io/mcmenemy/plex-dlkcat@sha256:92cfec2676bc5b8d75ee37c0fc31eb9c2e43c73a2acce2e4aaa60066b7a56f38"
8-
- "ghcr.io/labdao/diffdock:main@sha256:b00432de73478d3da578e4a16ee669178828109f3c7bf9c58d44bb7514f68629"
6+
- "ubuntu"
7+
- "alpine"
8+
- "nvidia/cuda"
99
- "ghcr.io/labdao/equibind:main@sha256:21a381d9ab1ff047565685044569c8536a55e489c9531326498b28d6b3cc244f"
1010
- "ghcr.io/labdao/equibind@sha256:ae2cec63b3924774727ed1c6c8af95cf4aaea2d3f0c5acbec56478505ccb2b07"
11-
- "ghcr.io/labdao/oddt:main"
12-
- "gnina/gnina:v1.0.1"
13-
- "public.ecr.aws/p7l9w5o7/colabfold:latest"
14-
- "public.ecr.aws/p7l9w5o7/protbert:latest"
15-
- "public.ecr.aws/p7l9w5o7/rfdiffusion:latest@sha256:0a6ff53004958ee5e770b0b25cd7f270eaf9fc285f6e91f17ad4024d2cc4ea91"
16-
- "quay.io/biocontainers/samtools@sha256:6f88956b747a67b2a39a3ff72c4de30e665239ee11db610624dd4298e30db1bf"
17-
- "quay.io/labdao/blender@sha256:1ee7bdc2e100bc3a8c968025579be950f50e685b440bd610971248b168f2bb74"
18-
- "quay.io/labdao/openbabel@sha256:1087315d7eda6d0632c9f9df72500ab9f6fef612c79bae7410473a2336f7be34"
19-
- "staphb/fastqc:0.12.1@sha256:f5d8f72753269e0cee071fe198c89a59a1f8071445739b3398f7818f7cb039ae"
11+
# - "dfam/tetools:1.85"
12+
# - "docker.io/mcmenemy/plex-dlkcat@sha256:92cfec2676bc5b8d75ee37c0fc31eb9c2e43c73a2acce2e4aaa60066b7a56f38"
13+
# - "ghcr.io/labdao/diffdock:main@sha256:b00432de73478d3da578e4a16ee669178828109f3c7bf9c58d44bb7514f68629"
14+
# - "ghcr.io/labdao/oddt:main"
15+
# - "gnina/gnina:v1.0.1"
16+
# - "public.ecr.aws/p7l9w5o7/colabfold:latest"
17+
# - "public.ecr.aws/p7l9w5o7/protbert:latest"
18+
# - "public.ecr.aws/p7l9w5o7/rfdiffusion:latest@sha256:0a6ff53004958ee5e770b0b25cd7f270eaf9fc285f6e91f17ad4024d2cc4ea91"
19+
# - "quay.io/biocontainers/samtools@sha256:6f88956b747a67b2a39a3ff72c4de30e665239ee11db610624dd4298e30db1bf"
20+
# - "quay.io/labdao/blender@sha256:1ee7bdc2e100bc3a8c968025579be950f50e685b440bd610971248b168f2bb74"
21+
# - "quay.io/labdao/openbabel@sha256:1087315d7eda6d0632c9f9df72500ab9f6fef612c79bae7410473a2336f7be34"
22+
# - "staphb/fastqc:0.12.1@sha256:f5d8f72753269e0cee071fe198c89a59a1f8071445739b3398f7818f7cb039ae"
2023
async: 86400
2124
poll: 0

infrastructure/ansible/vars/staging.yaml

-4
This file was deleted.

0 commit comments

Comments
 (0)