aboutsummaryrefslogtreecommitdiff
path: root/modules/role/templates/file_store
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-08-18 19:45:20 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-11-11 11:02:43 +0100
commitda476aeb6d365769de4956796b25255086d94cb7 (patch)
treedf138b89be182b1249b78a79f908b478c99c6dd0 /modules/role/templates/file_store
parent97e618665a5df3c5c209620ea1c8cd36d9747ae3 (diff)
downloadPuppet-file_store.tar.gz
Puppet-file_store.tar.zst
Puppet-file_store.zip
Group hosts in single export linefile_store
Diffstat (limited to 'modules/role/templates/file_store')
-rw-r--r--modules/role/templates/file_store/nfs_clients.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/role/templates/file_store/nfs_clients.erb b/modules/role/templates/file_store/nfs_clients.erb
new file mode 100644
index 0000000..0d8a295
--- /dev/null
+++ b/modules/role/templates/file_store/nfs_clients.erb
@@ -0,0 +1,12 @@
1<%= @hosts.flat_map do |host_cn, config|
2 host = scope.function_find_host([@facts["ldapvar"]["other"], host_cn])
3 if host.nil?
4 [host_cn]
5 elsif !host["vars"]["wireguard_ip"].nil?
6 host["vars"]["wireguard_ip"]
7 elsif !host["vars"]["host"].nil?
8 host["vars"]["host"]
9 else
10 host["vars"]["real_hostname"]
11 end.map { |h| h + config }
12end.join(" ") -%>