diff --git a/manifest.yml b/manifest.yml index 087b22f..bc798a7 100644 --- a/manifest.yml +++ b/manifest.yml @@ -1,5 +1,5 @@ --- -name: code-server app +name: code-server category: Interactive Apps subcategory: Servers role: batch_connect diff --git a/submit.yml.erb b/submit.yml.erb index 52f38ca..54d4659 100644 --- a/submit.yml.erb +++ b/submit.yml.erb @@ -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: @@ -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"