diff --git a/examples/templates/conman.jinja b/examples/templates/conman.jinja new file mode 100644 index 0000000..6f21d7a --- /dev/null +++ b/examples/templates/conman.jinja @@ -0,0 +1,20 @@ +# +# This file was auto-generated by the OpenCHAMI "configurator" tool using the "{{name}}" plugin. +# +# Source code: https://github.com/OpenCHAMI/configurator +# Creating plugins: https://github.com/OpenCHAMI/configurator/blob/main/README.md#creating-generator-plugins +# +SERVER keepalive=ON +SERVER logdir="/var/log/conman" +SERVER logfile="/var/log/conman.log" +SERVER loopback=ON +SERVER pidfile="/var/run/conman.pid" +SERVER resetcmd="/usr/bin/powerman -0 \%N; sleep 5; /usr/bin/powerman -1 \%N" +SERVER tcpwrappers=ON +#SERVER timestamp=1h + +GLOBAL seropts="115200,8n1" +GLOBAL log="/var/log/conman/console.\%N" +GLOBAL logopts="sanitize,timestamp" + +{{ consoles }} diff --git a/examples/templates/dhcpd.jinja b/examples/templates/dhcpd.jinja new file mode 100644 index 0000000..377b244 --- /dev/null +++ b/examples/templates/dhcpd.jinja @@ -0,0 +1,48 @@ +# +# This file was auto-generated by the OpenCHAMI "configurator" tool using the "{{name}}" plugin. +# +# Source code: https://github.com/OpenCHAMI/configurator +# Creating plugins: https://github.com/OpenCHAMI/configurator/blob/main/README.md#creating-generator-plugins +# +allow booting; +allow bootp; +ddns-update-style interim; +authoritative; + +option space ipxe; + +# Tell iPXE to not wait for ProxyDHCP requests to speed up boot. +option ipxe.no-pxedhcp code 176 = unsigned integer 8; +option ipxe.no-pxedhcp 1; + +option architecture-type code 93 = unsigned integer 16; + +if exists user-class and option user-class = "iPXE" { + filename "http://%{IPADDR}/WW/ipxe/cfg/${mac}"; +} else { + if option architecture-type = 00:0B { + filename "/warewulf/ipxe/bin-arm64-efi/snp.efi"; + } elsif option architecture-type = 00:0A { + filename "/warewulf/ipxe/bin-arm32-efi/placeholder.efi"; + } elsif option architecture-type = 00:09 { + filename "/warewulf/ipxe/bin-x86_64-efi/snp.efi"; + } elsif option architecture-type = 00:07 { + filename "/warewulf/ipxe/bin-x86_64-efi/snp.efi"; + } elsif option architecture-type = 00:06 { + filename "/warewulf/ipxe/bin-i386-efi/snp.efi"; + } elsif option architecture-type = 00:00 { + filename "/warewulf/ipxe/bin-i386-pcbios/undionly.kpxe"; + } +} + +subnet %{NETWORK} netmask %{NETMASK} { + not authoritative; + # option interface-mtu 9000; + option subnet-mask %{NETMASK}; +} + +# Compute Nodes (WIP - see the dhcpd generator plugin) +{{ compute_nodes }} + +# Node entries will follow below +{{ node_entries }} \ No newline at end of file diff --git a/templates/dnsmasq.jinja b/examples/templates/dnsmasq.jinja similarity index 100% rename from templates/dnsmasq.jinja rename to examples/templates/dnsmasq.jinja diff --git a/examples/templates/powerman.jinja b/examples/templates/powerman.jinja new file mode 100644 index 0000000..11b1e8c --- /dev/null +++ b/examples/templates/powerman.jinja @@ -0,0 +1,12 @@ +# +# Ansible managed +# +include "/etc/powerman/ipmipower.dev" +include "/etc/powerman/ipmi.dev" + + +# list of devices +{{ devices }} + +# create nodes based on found nodes in hostfile +{{ nodes }} \ No newline at end of file