From 1e0acc7d4f3817f0d247c3ddd17b70949f502323 Mon Sep 17 00:00:00 2001 From: egmsft Date: Tue, 13 Aug 2024 16:58:36 -0500 Subject: [PATCH] fixing ability to open terminal session on a host from ondemand --- playbooks/ood.yml | 10 ++++++++++ playbooks/templates/env.j2 | 1 + 2 files changed, 11 insertions(+) create mode 100644 playbooks/templates/env.j2 diff --git a/playbooks/ood.yml b/playbooks/ood.yml index 220db6799..1ba14eafb 100644 --- a/playbooks/ood.yml +++ b/playbooks/ood.yml @@ -594,6 +594,16 @@ dest: /usr/bin/yq mode: 0755 + - name: create ood shell env directory + file: + path: /etc/ood/config/apps/shell + state: directory + + - name: Copy the shell env file + template: + src: 'env.j2' + dest: '/etc/ood/config/apps/shell/env' + # Configure bc_desktop for dynamic remote viz targets - name: copy bc_desktop file copy: diff --git a/playbooks/templates/env.j2 b/playbooks/templates/env.j2 new file mode 100644 index 000000000..0806c5dc7 --- /dev/null +++ b/playbooks/templates/env.j2 @@ -0,0 +1 @@ +OOD_SSHHOST_ALLOWLIST={{'{'}}{{ queues | map(attribute='name') | join(',') }}{{'}'}}-[0-9]* \ No newline at end of file