Skip to content

Commit

Permalink
Really skip cluster, left is named storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 28, 2024
1 parent 58a91ac commit 01a0a8c
Showing 1 changed file with 1 addition and 74 deletions.
75 changes: 1 addition & 74 deletions research-cloud-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,7 @@
# From https://github.com/RS-DAT/JupyterDaskOnSRC/blob/953f2b2d8f258f9793bbb18cb3cedc061e5bb9e8/research-cloud-plugin.yml#L11-L38
- name: Enable ansible to configure workers
hosts: localhost
gather_facts: false
vars: {}
tasks:

- name: Wait for system to become reachable
wait_for_connection:
timeout: 300

- name: Create group workers with workers' IPs
add_host:
name: "{{ item }}"
groups: workers
ansible_user: ubuntu
ansible_connection: ssh
ansible_ssh_private_key_file: ~/.ssh/id_rsa
ansible_become: yes
loop: '{{ worker_ip_addresses }}'

- name: Alias name for jumphost
add_host:
name: jumphost
hostname: localhost

- name: Scan for worker keys.
shell:
cmd: ssh-keyscan {{ item }}
register: ssh_scan
loop: '{{ worker_ip_addresses }}'

- name: Write the worker keys to known hosts
known_hosts:
name: "{{ item.0.item }}"
key: "{{ item.1 }}"
with_subelements:
- "{{ ssh_scan.results }}"
- stdout_lines

# code: language=ansible
- name: Install and configure eWaterCycle Jupyter on jumphost
hosts:
- all
- localhost
gather_facts: false
vars:
Expand All @@ -54,20 +15,6 @@
- name: Gather facts for first time

Check failure on line 15 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (setup).

Check failure on line 15 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (setup).
setup:

- name: Volumes
debug:
var: volumes

- name: df
shell: df

- name: ls /data
shell: ls /data

- name: Workers
debug:
var: worker_ip_addresses

- name: Common stuff

Check failure on line 18 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (include_role).

Check failure on line 18 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (include_role).
include_role:
name: common
Expand Down Expand Up @@ -160,24 +107,4 @@
- name: Debug

Check failure on line 107 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (debug).

Check failure on line 107 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

fqcn[action-core]

Use FQCN for builtin module actions (debug).
debug:
msg: The eWaterCycle Jupyter plugin has completed
- name: Setup worker nodes
hosts:
- workers
gather_facts: false
vars:
# dCache token for mounting shared data
dcache_ro_token: null # Must be filled from command line
tasks:
- name: Wait for system to become reachable
wait_for_connection:
timeout: 300

- name: Gather facts for first time
setup:

Check failure on line 110 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

yaml[empty-lines]

Too many blank lines (1 > 0)

Check failure on line 110 in research-cloud-plugin.yml

View workflow job for this annotation

GitHub Actions / build

yaml[empty-lines]

Too many blank lines (1 > 0)
- name: Name
debug:
var: inventory_hostname

- name: df
shell: df

0 comments on commit 01a0a8c

Please sign in to comment.