Skip to content

Commit

Permalink
update to Ondemand production config
Browse files Browse the repository at this point in the history
  • Loading branch information
DininduSenanayake committed Feb 27, 2025
1 parent 52de851 commit 4818135
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: code-server app
name: code-server
category: Interactive Apps
subcategory: Servers
role: batch_connect
Expand Down
31 changes: 28 additions & 3 deletions submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
user = OodSupport::User.new
ood_nfs_server = Resolv.getaddress("ood-nfs-node")
software_nfs_server = Resolv.getaddress("external-nfs")

# Initialize nesi_gid to nil
nesi_gid = nil

# Fetch the GID for the account group only if the account is present
if account.present?
nesi_group = Etc.getgrnam(account) # Fetching the group based on the account
nesi_gid = nesi_group ? nesi_group.gid : nil # Get the GID, or nil if not found
end

%>
---
batch_connect:
Expand All @@ -26,16 +36,31 @@ script:
host: <%= ood_nfs_server %>
path: /nesi/home
destination_path: /nesi/home
- type: nfs
name: project
host: <%= ood_nfs_server %>
path: /nesi/project
destination_path: /nesi/project
- type: nfs
name: nobackup
host: <%= ood_nfs_server %>
path: /nesi/nobackup
destination_path: /nesi/nobackup
- type: nfs
name: software
host: <%= software_nfs_server %>
path: /mnt/data-migration
destination_path: /opt/nesi
- type: host
name: nslcd-socket
name: nss-socket
host_type: Socket
path: /var/run/nslcd/socket
destination_path: /var/run/nslcd/socket
path: /var/lib/sss/pipes/nss
destination_path: /var/lib/sss/pipes/nss
- type: host
name: nsswitch-conf
host_type: File
path: /etc/nsswitch.conf
destination_path: /etc/nsswitch.conf
configmap:
files:
- filename: "logging.conf"
Expand Down

0 comments on commit 4818135

Please sign in to comment.