From c24bcf34d43def608bcd00eabd6e8bce2e5dfbe6 Mon Sep 17 00:00:00 2001 From: David Allen Date: Sun, 24 Aug 2025 20:33:41 -0600 Subject: [PATCH] refactor: removed the example plugins from configurator --- examples/templates/conman.jinja | 23 -------------- examples/templates/dhcpd.jinja | 51 ------------------------------- examples/templates/dnsmasq.jinja | 10 ------ examples/templates/powerman.jinja | 18 ----------- examples/templates/test.j2 | 16 ---------- 5 files changed, 118 deletions(-) delete mode 100644 examples/templates/conman.jinja delete mode 100644 examples/templates/dhcpd.jinja delete mode 100644 examples/templates/dnsmasq.jinja delete mode 100644 examples/templates/powerman.jinja delete mode 100644 examples/templates/test.j2 diff --git a/examples/templates/conman.jinja b/examples/templates/conman.jinja deleted file mode 100644 index 69e779c..0000000 --- a/examples/templates/conman.jinja +++ /dev/null @@ -1,23 +0,0 @@ -# -# This file was auto-generated by the OpenCHAMI "configurator" tool using the following plugin: -# Name: {{ plugin_name }} -# Version: {{ plugin_version }} -# Description: {{ plugin_description }} -# -# Source code: https://github.com/OpenCHAMI/configurator -# Creating plugins: https://git.towk2.me/towk/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 deleted file mode 100644 index 264e590..0000000 --- a/examples/templates/dhcpd.jinja +++ /dev/null @@ -1,51 +0,0 @@ -# -# This file was auto-generated by the OpenCHAMI "configurator" tool using the following plugin: -# Name: {{ plugin_name }} -# Version: {{ plugin_version }} -# Description: {{ plugin_description }} -# -# Source code: https://github.com/OpenCHAMI/configurator -# Creating plugins: https://git.towk2.me/towk/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/examples/templates/dnsmasq.jinja b/examples/templates/dnsmasq.jinja deleted file mode 100644 index 1cc4dab..0000000 --- a/examples/templates/dnsmasq.jinja +++ /dev/null @@ -1,10 +0,0 @@ -# -# This file was auto-generated by the OpenCHAMI "configurator" tool using the following plugin: -# Name: {{ plugin_name }} -# Version: {{ plugin_version }} -# Description: {{ plugin_description }} -# -# Source code: https://github.com/OpenCHAMI/configurator -# Creating plugins: https://git.towk2.me/towk/configurator/blob/main/README.md#creating-generator-plugins -# -{{ dhcp_hosts }} diff --git a/examples/templates/powerman.jinja b/examples/templates/powerman.jinja deleted file mode 100644 index 44c13e4..0000000 --- a/examples/templates/powerman.jinja +++ /dev/null @@ -1,18 +0,0 @@ -# -# This file was auto-generated by the OpenCHAMI "configurator" tool using the following plugin: -# Name: {{ plugin_name }} -# Version: {{ plugin_version }} -# Description: {{ plugin_description }} -# -# Source code: https://github.com/OpenCHAMI/configurator -# Creating plugins: https://git.towk2.me/towk/configurator/blob/main/README.md#creating-generator-plugins -# -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 diff --git a/examples/templates/test.j2 b/examples/templates/test.j2 deleted file mode 100644 index 17bd6b6..0000000 --- a/examples/templates/test.j2 +++ /dev/null @@ -1,16 +0,0 @@ -# -# This file was auto-generated by the OpenCHAMI "configurator" tool using the following plugin: -# Name: {{ plugin_name }} -# Version: {{ plugin_version }} -# Description: {{ plugin_description }} -# -# Source code: https://github.com/OpenCHAMI/configurator -# Creating plugins: https://git.towk2.me/towk/configurator/blob/main/README.md#creating-generator-plugins -# - -# TODO: test variables - -# TODO: test if/else statements - -# TODO: test for loops -