From f0075fb94c28f97d03d4c664e91fc15add298e40 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Thu, 17 Feb 2022 10:59:12 +0100 Subject: [PATCH] remved hosts.tmpl as not needed any more --- Makefile | 1 - etc/hosts.tmpl | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 etc/hosts.tmpl diff --git a/Makefile b/Makefile index cc070596..8542d3e7 100644 --- a/Makefile +++ b/Makefile @@ -148,7 +148,6 @@ files: all install -d -m 0755 $(DESTDIR)$(FIREWALLDDIR) install -d -m 0755 $(DESTDIR)$(SYSTEMDDIR) test -f $(DESTDIR)$(SYSCONFDIR)/warewulf/warewulf.conf || install -m 644 etc/warewulf.conf $(DESTDIR)$(SYSCONFDIR)/warewulf/ - test -f $(DESTDIR)$(SYSCONFDIR)/warewulf/hosts.tmpl || install -m 644 etc/hosts.tmpl $(DESTDIR)$(SYSCONFDIR)/warewulf/ test -f $(DESTDIR)$(SYSCONFDIR)/warewulf/nodes.conf || install -m 644 etc/nodes.conf $(DESTDIR)$(SYSCONFDIR)/warewulf/ cp -r etc/examples $(DESTDIR)$(SYSCONFDIR)/warewulf/ cp -r etc/ipxe $(DESTDIR)$(SYSCONFDIR)/warewulf/ diff --git a/etc/hosts.tmpl b/etc/hosts.tmpl deleted file mode 100644 index 1754ff01..00000000 --- a/etc/hosts.tmpl +++ /dev/null @@ -1,15 +0,0 @@ -{{$.PrevHostFile}}# Do not edit after this line - these host entries are maintained by warewulf - -{{range $node := $.AllNodes}} {{/* for each node */}} -# Entry for {{$node.Id.Get}} -{{- range $devname, $netdev := $node.NetDevs}} {{/* for each network device on the node */}} -{{- if $netdev.Ipaddr.Defined}} {{/* if we have an ip address on this network device */}} -{{- if $netdev.Default.GetB}} {{/* emit the node name as hostname if this is the default */}} -{{$netdev.Ipaddr.Get}} {{$node.Id.Get}} {{$node.Id.Get}}-{{$devname}} {{$node.Id.Get}}-{{$netdev.Device.Get}} -{{- else}} -{{$netdev.Ipaddr.Get}} {{$node.Id.Get}}-{{$devname}} {{$node.Id.Get}}-{{$netdev.Device.Get}} -{{- end}} {{/* end if default */}} -{{- end}} {{/* end if ip */}} -{{- end}} {{/* end for each network device */}} -{{end}} {{/* end for each node */}} -