feat: manage route-reflectors

- add route-reflector role and hieradata
- enable using dhcp in networkd
- add hieradata/node/* entries for route-reflectors
This commit is contained in:
2025-04-25 00:34:09 +10:00
parent 2321186ad5
commit f4ac1f2000
12 changed files with 143 additions and 12 deletions
@@ -2,6 +2,9 @@
Name=<%= @title %>
[Network]
<% if @dhcp == true -%>
DHCP=yes
<% else -%>
<% if @ipaddress && @netmask -%>
Address=<%= @ipaddress %>/<%= IPAddr.new(@netmask).to_i.to_s(2).count('1') %>
<% end -%>
@@ -14,6 +17,7 @@ DNS=<%= Array(@dns).join(' ') %>
<% if @domains -%>
Domains=<%= Array(@domains).join(' ') %>
<% end -%>
<% end -%>
<% if @bridge and @bridge != true -%>
Bridge=<%= @bridge %>
<% end -%>