Skip to content

Commit

Permalink
add hana support for nfs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmamula committed Jul 10, 2024
1 parent 34ef551 commit f2df9d3
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,16 @@
'dir_only': '/' + sap_storage_setup_sid,
}
]) %}
{%- endif %}
{%- if nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap/trans' %}
{%- elif nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap/trans' %}
{%- set add_trans = mount_list.extend([
{
'mount_src': nfs_item.nfs_path | regex_replace('/$', ''),
'mountpoint': nfs_item.mountpoint | regex_replace('/$', ''),
}
]) %}
{%- endif %}
{%- if nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap' -%}
{%- elif nfs_item.mountpoint | regex_replace('/$', '') == '/usr/sap' -%}
{%- for common in sap_storage_setup_nfs_dirs_usr_sap.all %}
{%- set add_all_usrsap = mount_list.extend([
{
Expand All @@ -77,6 +75,14 @@
{%- endfor %}
{%- endfor %}
{%- elif nfs_item.mountpoint.startswith('/hana/') %}
{%- set add_hana = mount_list.extend([
{
'mount_src': nfs_item.nfs_path | regex_replace('/$', ''),
'mountpoint': nfs_item.mountpoint | regex_replace('/$', ''),
}
]) %}
{%- endif %}
{{ mount_list }}
Expand Down

0 comments on commit f2df9d3

Please sign in to comment.