Skip to content

Commit

Permalink
Enable to open ports in slurm
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 28, 2024
1 parent 893650b commit b85ab63
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions templates/slurm_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ topology_template:
constraints:
- valid_values: [ '23.11.1', '20.11.9', '21.08.5', '21.08.8', '22.05.10' ]

fe_ports:
type: map
entry_schema:
type: PortSpec
description: |
List of ports to be Opened in FE node (eg. 22,80,443,2000:2100).
You can also include the remote CIDR (eg. 8.8.0.0/24).
default:
ssh_port:
source: 22
protocol: tcp

node_templates:


Expand All @@ -101,10 +113,7 @@ topology_template:
properties:
dns_name: slurmserver
network_name: PUBLIC
ports:
http_port:
protocol: tcp
source: 80
ports: { get_input: fe_ports }
host:
properties:
num_cpus: { get_input: fe_cpus }
Expand Down

0 comments on commit b85ab63

Please sign in to comment.