Skip to content

Commit

Permalink
Added HPC collection example
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmaslenn committed May 27, 2021
1 parent 5e5bee2 commit 0250e9c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hpc/collection/input.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#HPC
frontend-address:
user: alexander
key-location: ~/.ssh/id_rsa
email:
52 changes: 52 additions & 0 deletions hpc/collection/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
tosca_definitions_version: tosca_simple_yaml_1_3

imports:
- modules/hpc/collection/main_hpc.yml


topology_template:

inputs:
frontend-address:
type: string
user:
type: string
key-location:
type: string
email:
type: string


node_templates:

#HPC
hpc-wm:
type: sodalite.nodes.hpc.wm
attributes:
public_address: { get_input: frontend-address }
username: { get_input: user }
ssh-key: { get_input: key-location }

hpc-job:
type: sodalite.nodes.hpc.job
properties:
name: hpc-test-1
script: |
#!/bin/sh
sleep 30
echo "test"
workspace: ~
ppn: 1
walltime: 00:10:00
email: { get_input: email }
enable_audit: true
requirements:
- host: hpc-wm

#Result
hpc-job-result:
type: sodalite.nodes.hpc.job.result
requirements:
- host: hpc-wm
- job: hpc-job

0 comments on commit 0250e9c

Please sign in to comment.