Skip to content

Commit 491e951

Browse files
committed
added state directory to ood/login groups
1 parent 966927c commit 491e951

File tree

2 files changed

+7
-1
lines changed
  • environments

2 files changed

+7
-1
lines changed

environments/common/inventory/group_vars/all/nfs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ nfs_configurations:
2626
nfs_enable:
2727
server: "{{ inventory_hostname in groups['control'] }}"
2828
clients: "{{ inventory_hostname in groups['openondemand'] or inventory_hostname in groups['login'] }}"
29-
nfs_export: "{{ appliances_state_dir | default('/var/lib/state') }}/hostkeys"
29+
nfs_export: "{{ appliances_state_dir | default('/var/lib/state') }}/hostkeys" # needs to be defaulted to run but should be skipped on clients where appliances_state_dir is otherwise undefined
3030
nfs_server: "{{ nfs_server_default }}"
3131
nfs_client_mnt_point: "/mnt/hostkeys"
3232
nfs_client_mnt_options: "x-systemd.required-by=zenith-ood.service,x-systemd.before=zenith-ood.service"

environments/skeleton/{{cookiecutter.environment}}/terraform/inventory.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ login:
2020
ansible_host: ${[for n in login.network: n.fixed_ip_v4 if n.access_network][0]}
2121
instance_id: ${ login.id }
2222
%{ endfor ~}
23+
vars:
24+
appliances_state_dir: ${state_dir}
25+
26+
openondemand:
27+
vars:
28+
appliances_state_dir: ${state_dir}
2329

2430
%{ for group_name in keys(compute_groups) ~}
2531
${cluster_name}_${group_name}:

0 commit comments

Comments
 (0)