Skip to content

Commit

Permalink
fix shortcodes and service yaml for rebranding of hsz storage
Browse files Browse the repository at this point in the history
  • Loading branch information
ksiller committed Sep 27, 2024
1 parent 6a1e661 commit 025452a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion content/form/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private = true
<input required="required" type="radio" id="storage-choice3" name="storage-choice" value="Research Standard" class="form-radio" /> &nbsp; Research Standard Storage ({{< extract_storage_cost type="standard" >}})</label>
</div>
<div class="form-item form-type-radio radio">
<input required="required" type="radio" id="storage-choice2" name="storage-choice" value="ivy" class="form-radio" /> &nbsp; Ivy Central Storage ({{< extract_storage_cost type="ivy" >}})</label>
<input required="required" type="radio" id="storage-choice2" name="storage-choice" value="High-Security Research Standard" class="form-radio" /> &nbsp; High-Security Research Standard Storage ({{< extract_storage_cost type="hsz standard" >}})</label>
</div>
</div>
<div class="alert alert-warning" style="font-size:92%;margin-top:1.5rem;margin-bottom:1.5rem;" role="alert">
Expand Down
4 changes: 2 additions & 2 deletions data/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ service:
filesystem_location: "<code>/standard</code>"
highly-sens-ds-compliant: "No"
use_cases: "Budget solution for storing data that can be accessed by a personal computer or Rivanna. It is not recommended to run Slurm jobs against research standard storage unless absolutely necessary. File operations on Research Standard storage are slower than on Rivanna <code>/home</code>, <code>/scratch</code>, or <code>Research Project</code> storage."
- name: "High-Security Research Standard Storage"
- name: "High-Security Research Standard"
security: "High"
cost: "$45 TB/year"
cost: "$45/TB/year"
quota: "1TB increments"
snapshots: "No"
replication: "No"
Expand Down
6 changes: 3 additions & 3 deletions layouts/shortcodes/extract_storage_cost.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

{{ $standard_storage := index (where $options "name" "Research Standard") 0 }}
{{ $project_storage := index (where $options "name" "Research Project") 0 }}
{{ $ivy_central_storage := index (where $options "name" "Ivy Central Storage") 0 }}
{{ $ivy_central_storage := index (where $options "name" "High-Security Research Standard") 0 }}

{{ with .Get "type" }}
{{ if eq . "standard" }}
{{ index $standard_storage "cost" | markdownify}}
{{ else if eq . "project" }}
{{ index $project_storage "cost" | markdownify}}
{{ else if eq . "ivy" }}
{{ index $ivy_central_storage "cost" }}
{{ else if eq . "hsz standard" }}
{{ index $ivy_central_storage "cost" | markdownify }}
{{ else }}
Unknown storage type
{{ end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

{{ $standard_storage := index (where $options "name" "Research Standard") 0 }}
{{ $project_storage := index (where $options "name" "Research Project") 0 }}
{{ $ivy_central_storage := index (where $options "name" "Ivy Central Storage") 0 }}
{{ $ivy_central_storage := index (where $options "name" "High-Security Research Standard") 0 }}

<table class="table">
<thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{{ $options := index (index $services $storage_index) "options" }}

{{ $hs_standard_storage := index (where $options "name" "High-Security Research Standard Storage") 0 }}
{{ $hs_standard_storage := index (where $options "name" "High-Security Research Standard") 0 }}

<table class="table table-striped table-sm" style="font-size:90%;">
<thead class="thead-dark">
Expand Down

0 comments on commit 025452a

Please sign in to comment.