aboutsummaryrefslogtreecommitdiff
path: root/modules/role/templates/file_store/nfs_clients.erb
blob: 0d8a295305a42a91f0746078d4a15630c42a2594 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<%= @hosts.flat_map do |host_cn, config|
  host = scope.function_find_host([@facts["ldapvar"]["other"], host_cn])
  if host.nil?
    [host_cn]
  elsif !host["vars"]["wireguard_ip"].nil?
    host["vars"]["wireguard_ip"]
  elsif !host["vars"]["host"].nil?
    host["vars"]["host"]
  else
    host["vars"]["real_hostname"]
  end.map { |h| h + config }
end.join(" ") -%>