test:
interface: eth0
role: internal
- address: 172.18.0.2
- prefix: 16
- gateway: 172.18.0.1
+ inet:
+ address: 172.18.0.2
+ prefix: 16
+ gateway: 172.18.0.1
roles:
external:
zone: test
interfaces:
test:
role: external
- address: 172.18.0.2
+ inet:
+ address: 172.18.0.2
+ prefix: 16
- name: geoipupdate
run_list:
- recipe[geoipupdate::default]
test:
interface: eth0
role: internal
- address: 172.18.0.2
- prefix: 16
- gateway: 172.18.0.1
+ inet:
+ address: 172.18.0.2
+ prefix: 16
+ gateway: 172.18.0.1
- name: prometheus-server
run_list:
- recipe[prometheus::server]
<Location /server-info>
SetHandler server-info
-<% node.ipaddresses do |address| -%>
+<% node.ipaddresses.sort.each do |address| -%>
Require ip <%= address %>
<% end -%>
Require ip 127.0.1.1
<Location /server-status>
SetHandler server-status
-<% node.ipaddresses do |address| -%>
+<% node.ipaddresses.sort.each do |address| -%>
Require ip <%= address %>
<% end -%>
Require ip 127.0.1.1
default-lease-time 600;
max-lease-time 7200;
-<% node.interfaces(:role => :internal).each do |interface| -%>
+<% node.ipaddresses(:role => :internal, :family => :inet).each do |address| -%>
-subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> {
+subnet <%= address.network %> netmask <%= address.netmask %> {
authoritative;
range dynamic-bootp <%= node[:dhcpd][:first_address] %> <%= node[:dhcpd][:last_address] %>;
- # option broadcast-address <%= interface[:broadcast] %>;
- option routers <%= interface[:gateway] %>;
+ option routers <%= address.gateway %>;
option domain-name "<%= @domain %>";
- option domain-name-servers <%= interface[:gateway] %>;
+ option domain-name-servers <%= address.gateway %>;
option ntp-servers <%= node[:ntp][:servers].join(", ") %>;
option time-offset 0;
option PCode "UTC0";
option TCode "Etc/UTC";
- next-server <%= interface[:gateway] %>;
+ next-server <%= address.gateway %>;
# See https://netboot.xyz/docs/docker/#dhcp-configurations
if exists user-class and ( option user-class = "iPXE" ) {
forwarders = []
-forwarders << search(:node, "recipes:logstash\\:\\:forwarder").collect do |forwarder|
- forwarder.ipaddresses(:role => :external)
-end.flatten
+search(:node, "recipes:logstash\\:\\:forwarder").each do |forwarder|
+ forwarders.append(forwarder.ipaddresses(:role => :external))
+end
-forwarders << search(:node, "roles:gateway").collect do |forwarder|
- forwarder.ipaddresses(:role => :external)
-end.flatten
+search(:node, "roles:gateway").each do |forwarder|
+ forwarders.append(forwarder.ipaddresses(:role => :external))
+end
firewall_rule "accept-logstash" do
action :accept
-class Chef
- class Node
- def interfaces(options = {}, &block)
- interfaces = []
+module OpenStreetMap
+ module Mixin
+ module Interfaces
+ def interfaces(role: nil)
+ networking = construct_attributes[:networking] || {}
+ networking_interfaces = networking[:interfaces] || {}
- networking = construct_attributes[:networking] || {}
- networking_interfaces = networking[:interfaces] || {}
-
- networking_interfaces.each_value do |interface|
- next unless options[:role].nil? || interface[:role].to_s == options[:role].to_s
- next unless options[:family].nil? || interface[:family].to_s == options[:family].to_s
-
- if block.nil?
- interfaces << interface
- else
- yield interface
+ networking_interfaces.each_value.select do |interface|
+ role.nil? || interface[:role].to_s == role.to_s
end
end
-
- interfaces
end
end
end
+
+Chef::Node.include(OpenStreetMap::Mixin::Interfaces)
-class Chef
- class Node
- def ipaddresses(options = {}, &block)
- addresses = []
+require "ipaddr"
- interfaces(options).each do |interface|
- address = interface[:public_address] || interface[:address]
+module OpenStreetMap
+ module Mixin
+ module IPAddresses
+ class Address
+ attr_reader :address, :prefix, :gateway, :network, :netmask
- next if address.nil?
+ def initialize(address)
+ @address = address[:public_address] || address[:address]
+ @prefix = address[:prefix]
+ @gateway = address[:gateway]
- if block.nil?
- addresses << address
- else
- yield address
+ ip = IPAddr.new(address[:address]).mask(address[:prefix])
+
+ @network = ip.to_s
+ @netmask = ip.netmask
+ end
+
+ def to_s
+ address
+ end
+
+ def subnet
+ "#{@network}/#{@prefix}"
end
end
- addresses
- end
+ def ipaddresses(role: nil, family: nil)
+ interfaces(:role => role).each_with_object([]) do |interface, addresses|
+ addresses << Address.new(interface[:inet]) if interface[:inet] && (family.nil? || family == :inet)
+ addresses << Address.new(interface[:inet6]) if interface[:inet6] && (family.nil? || family == :inet6)
+ end
+ end
- def internal_ipaddress(options = {})
- ipaddresses(options.merge(:role => :internal)).first
- end
+ def internal_ipaddress(family: nil)
+ ipaddresses(:role => :internal, :family => family).first
+ end
- def external_ipaddress(options = {})
- ipaddresses(options.merge(:role => :external)).first
+ def external_ipaddress(family: nil)
+ ipaddresses(:role => :external, :family => family).first
+ end
end
end
end
+
+Chef::Node.include(OpenStreetMap::Mixin::IPAddresses)
node[:networking][:interfaces].each do |name, interface|
if interface[:interface]
if interface[:role] && (role = node[:networking][:roles][interface[:role]])
- if role[interface[:family]]
- node.default[:networking][:interfaces][name][:prefix] = role[interface[:family]][:prefix]
- node.default[:networking][:interfaces][name][:gateway] = role[interface[:family]][:gateway]
- node.default[:networking][:interfaces][name][:routes] = role[interface[:family]][:routes]
+ if interface[:inet] && role[:inet]
+ node.default[:networking][:interfaces][name][:inet][:prefix] = role[:inet][:prefix]
+ node.default[:networking][:interfaces][name][:inet][:gateway] = role[:inet][:gateway]
+ node.default[:networking][:interfaces][name][:inet][:routes] = role[:inet][:routes]
+ end
+
+ if interface[:inet6] && role[:inet6]
+ node.default[:networking][:interfaces][name][:inet6][:prefix] = role[:inet6][:prefix]
+ node.default[:networking][:interfaces][name][:inet6][:gateway] = role[:inet6][:gateway]
+ node.default[:networking][:interfaces][name][:inet6][:routes] = role[:inet6][:routes]
end
node.default[:networking][:interfaces][name][:metric] = role[:metric]
node.default[:networking][:interfaces][name][:zone] = role[:zone]
end
- if interface[:address]
- prefix = node[:networking][:interfaces][name][:prefix]
-
- node.default[:networking][:interfaces][name][:netmask] = (~IPAddr.new(interface[:address]).mask(0)).mask(prefix)
- node.default[:networking][:interfaces][name][:network] = IPAddr.new(interface[:address]).mask(prefix)
- end
-
interface = node[:networking][:interfaces][name]
deviceplan = if interface[:interface] =~ /^(.*)\.(\d+)$/
}
end
- if interface[:address]
- deviceplan["addresses"].push("#{interface[:address]}/#{prefix}")
+ if interface[:inet]
+ deviceplan["addresses"].push("#{interface[:inet][:address]}/#{interface[:inet][:prefix]}")
+ end
+
+ if interface[:inet6]
+ deviceplan["addresses"].push("#{interface[:inet6][:address]}/#{interface[:inet6][:prefix]}")
end
if interface[:mtu]
deviceplan["parameters"]["lacp-rate"] = interface[:bond][:lacprate] if interface[:bond][:lacprate]
end
- if interface[:gateway] && interface[:gateway] != interface[:address]
- if interface[:family] == "inet"
- default_route = "0.0.0.0/0"
- elsif interface[:family] == "inet6"
- default_route = "::/0"
+ if interface[:inet]
+ if interface[:inet][:gateway] && interface[:inet][:gateway] != interface[:inet][:address]
+ deviceplan["routes"].push(
+ "to" => "0.0.0.0/0",
+ "via" => interface[:inet][:gateway],
+ "metric" => interface[:metric],
+ "on-link" => true
+ )
+ end
+
+ if interface[:inet][:routes]
+ interface[:inet][:routes].each do |to, parameters|
+ next if parameters[:via] == interface[:inet][:address]
+
+ route = {
+ "to" => to
+ }
+
+ route["type"] = parameters[:type] if parameters[:type]
+ route["via"] = parameters[:via] if parameters[:via]
+ route["metric"] = parameters[:metric] if parameters[:metric]
+
+ deviceplan["routes"].push(route)
+ end
end
+ end
- deviceplan["routes"].push(
- "to" => default_route,
- "via" => interface[:gateway],
- "metric" => interface[:metric],
- "on-link" => true
- )
-
- # This ordering relies on systemd-networkd adding routes
- # in reverse order and will need moving before the previous
- # route once that is fixed:
- #
- # https://github.com/systemd/systemd/issues/5430
- # https://github.com/systemd/systemd/pull/10938
- if interface[:family] == "inet6" &&
- !interface[:network].include?(interface[:gateway]) &&
- !IPAddr.new("fe80::/64").include?(interface[:gateway])
+ if interface[:inet6]
+ if interface[:inet6][:gateway] && interface[:inet6][:gateway] != interface[:inet6][:address]
deviceplan["routes"].push(
- "to" => interface[:gateway],
- "scope" => "link"
+ "to" => "::/0",
+ "via" => interface[:inet6][:gateway],
+ "metric" => interface[:metric],
+ "on-link" => true
)
+
+ # This ordering relies on systemd-networkd adding routes
+ # in reverse order and will need moving before the previous
+ # route once that is fixed:
+ #
+ # https://github.com/systemd/systemd/issues/5430
+ # https://github.com/systemd/systemd/pull/10938
+ if !IPAddr.new(interface[:inet6][:address]).mask(interface[:inet6][:prefix]).include?(interface[:inet6][:gateway]) &&
+ !IPAddr.new("fe80::/64").include?(interface[:inet6][:gateway])
+ deviceplan["routes"].push(
+ "to" => interface[:inet6][:gateway],
+ "scope" => "link"
+ )
+ end
end
- end
- if interface[:routes]
- interface[:routes].each do |to, parameters|
- next if parameters[:via] == interface[:address]
+ if interface[:inet6][:routes]
+ interface[:inet6][:routes].each do |to, parameters|
+ next if parameters[:via] == interface[:inet6][:address]
- route = {
- "to" => to
- }
+ route = {
+ "to" => to
+ }
- route["type"] = parameters[:type] if parameters[:type]
- route["via"] = parameters[:via] if parameters[:via]
- route["metric"] = parameters[:metric] if parameters[:metric]
+ route["type"] = parameters[:type] if parameters[:type]
+ route["via"] = parameters[:via] if parameters[:via]
+ route["metric"] = parameters[:metric] if parameters[:metric]
- deviceplan["routes"].push(route)
+ deviceplan["routes"].push(route)
+ end
end
end
else
next if gateway.name == node.name
next unless gateway[:networking][:wireguard] && gateway[:networking][:wireguard][:enabled]
- allowed_ips = gateway.interfaces(:role => :internal).map do |interface|
- "#{interface[:network]}/#{interface[:prefix]}"
- end
+ allowed_ips = gateway.ipaddresses(:role => :internal).map(&:subnet)
node.default[:networking][:wireguard][:peers] << {
:public_key => gateway[:networking][:wireguard][:public_key],
end
search(:node, "roles:prometheus") do |server|
- allowed_ips = server.interfaces(:role => :internal).map do |interface|
- "#{interface[:network]}/#{interface[:prefix]}"
- end
+ allowed_ips = server.ipaddresses(:role => :internal).map(&:subnet)
if server[:networking][:private_address]
allowed_ips << "#{server[:networking][:private_address]}/32"
}
elsif node[:roles].include?("shenron")
search(:node, "roles:gateway") do |gateway|
- allowed_ips = gateway.interfaces(:role => :internal).map do |interface|
- "#{interface[:network]}/#{interface[:prefix]}"
- end
+ allowed_ips = gateway.ipaddresses(:role => :internal).map(&:subnet)
node.default[:networking][:wireguard][:peers] << {
:public_key => gateway[:networking][:wireguard][:public_key],
to "../run/systemd/resolve/stub-resolv.conf"
end
-hosts = { "inet" => [], "inet6" => [] }
+hosts = { :inet => [], :inet6 => [] }
search(:node, "networking:interfaces").collect do |n|
next if n[:fqdn] == node[:fqdn]
n.interfaces.each do |interface|
next unless interface[:role] == "external"
- hosts[interface[:family]] << interface[:address]
+ hosts[:inet] << interface[:inet][:address] if interface[:inet]
+ hosts[:inet6] << interface[:inet6][:address] if interface[:inet6]
end
end
table inet chef-filter {
set ip-osm-addresses {
type ipv4_addr
-<% unless Array(@hosts["inet"]).empty? -%>
- elements = { <%= Array(@hosts["inet"]).sort.join(", ") %> }
+<% unless Array(@hosts[:inet]).empty? -%>
+ elements = { <%= Array(@hosts[:inet]).sort.join(", ") %> }
<% end -%>
}
set ip6-osm-addresses {
type ipv6_addr
-<% unless Array(@hosts["inet"]).empty? -%>
- elements = { <%= Array(@hosts["inet6"]).sort.join(", ") %> }
+<% unless Array(@hosts[:inet6]).empty? -%>
+ elements = { <%= Array(@hosts[:inet6]).sort.join(", ") %> }
<% end -%>
}
chain postrouting {
type nat hook postrouting priority srcnat;
-<% node.interfaces(:role => :external, :family => :inet).each do |external| -%>
-<% node.interfaces(:role => :internal, :family => :inet).each do |internal| -%>
- oifname { <%= external[:interface] %> } ip saddr { <%= internal[:network] %>/<%= internal[:prefix] %> } snat <%= external[:address] %>
+<% node.interfaces(:role => :external).each do |external| -%>
+<% node.ipaddresses(:role => :internal, :family => :inet).each do |internal| -%>
+ oifname { <%= external[:interface] %> } ip saddr { <%= internal.subnet %> } snat <%= external[:inet][:address] %>
<% end -%>
<% end -%>
}
end
search(:node, "roles:gateway") do |gateway|
- allowed_ips = gateway.interfaces(:role => :internal).map do |interface|
- "#{interface[:network]}/#{interface[:prefix]}"
- end
+ allowed_ips = gateway.ipaddresses(:role => :internal).map(&:subnet)
node.default[:networking][:wireguard][:peers] << {
:public_key => gateway[:networking][:wireguard][:public_key],
search(:node, "networking:interfaces") do |host|
next if host.name == node.name
- ip4_hosts << host[:fqdn] unless host.interfaces(:role => :external, :family => :inet).empty?
- ip6_hosts << host[:fqdn] unless host.interfaces(:role => :external, :family => :inet6).empty?
+ ip4_hosts << host[:fqdn] unless host.ipaddresses(:role => :external, :family => :inet).empty?
+ ip6_hosts << host[:fqdn] unless host.ipaddresses(:role => :external, :family => :inet6).empty?
end
template "/etc/prometheus/exporters/smokeping.yml" do
# HELP chef_network_interface Information about network interfaces
# TYPE chef_network_interface gauge
-<% node.interfaces do |interface| -%>
-chef_network_interface{name="<%= interface[:interface] %>",role="<%= interface[:role].to_s %>",family="<%= interface[:family].to_s %>"} 1
+<% node.interfaces.each do |interface| -%>
+chef_network_interface{name="<%= interface[:interface] %>",role="<%= interface[:role].to_s %>"} 1
<% end -%>
# HELP chef_role Information about chef roles
# TYPE chef_role gauge
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "enp1s0f0",
:role => :external,
- :family => :inet,
- :address => "51.159.53.238",
- :prefix => "24",
- :gateway => "51.159.53.1"
- },
- :external_ipv6 => {
- :interface => "enp1s0f0",
- :role => :external,
- :family => :inet6,
- :address => "2001:bc8:1200:4:dac4:97ff:fe8a:9cfc",
- :prefix => "64",
- :gateway => "fe80::a293:51ff:fea2:ded5"
+ :inet => {
+ :address => "51.159.53.238",
+ :prefix => "24",
+ :gateway => "51.159.53.1"
+ },
+ :inet6 => {
+ :address => "2001:bc8:1200:4:dac4:97ff:fe8a:9cfc",
+ :prefix => "64",
+ :gateway => "fe80::a293:51ff:fea2:ded5"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eno1",
:role => :external,
- :family => :inet,
- :address => "196.10.54.165",
- :prefix => "29",
- :gateway => "196.10.54.161"
- },
- :external_ipv6 => {
- :interface => "eno1",
- :role => :external,
- :family => :inet6,
- :address => "2001:43f8:1f4:b00:b283:feff:fed8:dd45",
- :prefix => "64",
- :gateway => "2001:43f8:1f4:b00::1"
+ :inet => {
+ :address => "196.10.54.165",
+ :prefix => "29",
+ :gateway => "196.10.54.161"
+ },
+ :inet6 => {
+ :address => "2001:43f8:1f4:b00:b283:feff:fed8:dd45",
+ :prefix => "64",
+ :gateway => "2001:43f8:1f4:b00::1"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eno1",
:role => :external,
- :family => :inet,
- :address => "184.107.48.228",
- :prefix => "27",
- :gateway => "184.107.48.225"
+ :inet => {
+ :address => "184.107.48.228",
+ :prefix => "27",
+ :gateway => "184.107.48.225"
+ }
}
}
}
"193.60.236.0/24", # ucl external
"10.0.48.0/20", # amsterdam internal
"130.117.76.0/27", # amsterdam external
- "2001:978:2:2C::172:0/112", # amsterdam external
+ "2001:978:2:2c::172:0/112", # amsterdam external
"10.0.64.0/20", # dublin internal
"184.104.226.96/27", # dublin external
"2001:470:1:b3b::/64", # dublin external
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "bond0",
:role => :external,
- :family => :inet,
- :address => "138.44.68.134",
- :prefix => "30",
- :gateway => "138.44.68.133",
+ :inet => {
+ :address => "138.44.68.134",
+ :prefix => "30",
+ :gateway => "138.44.68.133"
+ },
:bond => {
:slaves => %w[ens14f0np0 ens14f1np1]
}
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "bond0",
:role => :external,
- :family => :inet,
- :address => "138.44.68.106",
- :prefix => "30",
- :gateway => "138.44.68.105",
+ :inet => {
+ :address => "138.44.68.106",
+ :prefix => "30",
+ :gateway => "138.44.68.105"
+ },
:bond => {
:slaves => %w[ens14f0np0 ens14f0np1]
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.9",
+ :inet => {
+ :address => "10.0.64.9"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.105"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::9"
+ :inet => {
+ :address => "184.104.226.105"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::9"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "enp3s0f0.2801",
:role => :internal,
- :family => :inet,
- :address => "10.0.0.11"
+ :inet => {
+ :address => "10.0.0.11"
+ }
},
- :external_ipv4 => {
+ :external => {
:interface => "enp3s0f0.2800",
:role => :external,
- :family => :inet,
- :address => "193.60.236.12"
+ :inet => {
+ :address => "193.60.236.12"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.4",
+ :inet => {
+ :address => "10.0.48.4"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.4"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:4"
+ :inet => {
+ :address => "130.117.76.4"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:4"
+ }
}
}
}
:location => "Osijek, Croatia",
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eth0",
:role => :external,
- :family => :inet,
- :address => "161.53.30.107",
- :prefix => "27",
- :gateway => "161.53.30.97"
- },
- :external_ipv6 => {
- :interface => "eth0",
- :role => :external,
- :family => :inet6,
- :address => "2001:b68:c0ff:0:221:5eff:fe40:c7c4",
- :prefix => "64",
- :gateway => "fe80::161:53:30:97"
+ :inet => {
+ :address => "161.53.30.107",
+ :prefix => "27",
+ :gateway => "161.53.30.97"
+ },
+ :inet6 => {
+ :address => "2001:b68:c0ff:0:221:5eff:fe40:c7c4",
+ :prefix => "64",
+ :gateway => "fe80::161:53:30:97"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.9",
+ :inet => {
+ :address => "10.0.48.9"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[ens18f0 ens18f1]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.9"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:9"
+ :inet => {
+ :address => "130.117.76.9"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:9"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "enp1s0f0.2801",
:role => :internal,
- :family => :inet,
- :address => "10.0.0.10"
+ :inet => {
+ :address => "10.0.0.10"
+ }
}
}
},
},
:inet6 => {
:prefix => "64",
- :gateway => "2001:978:2:2C::172:1",
+ :gateway => "2001:978:2:2c::172:1",
:routes => {
"2001:470:1:b3b::/64" => { :type => "unreachable" },
"2001:978:2:2c::/64" => { :type => "unreachable" },
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.3",
+ :inet => {
+ :address => "10.0.48.3"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.3"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:3"
+ :inet => {
+ :address => "130.117.76.3"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:3"
+ }
}
}
}
},
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.2",
+ :inet => {
+ :address => "10.0.64.2"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.98"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::2"
+ :inet => {
+ :address => "184.104.226.98"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::2"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "enp6s0",
:role => :external,
- :family => :inet,
- :address => "188.241.28.82",
- :prefix => "29",
- :gateway => "188.241.28.81"
+ :inet => {
+ :address => "188.241.28.82",
+ :prefix => "29",
+ :gateway => "188.241.28.81"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.11",
+ :inet => {
+ :address => "10.0.64.11"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 ens1f0 ens1f1]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.107"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::b"
+ :inet => {
+ :address => "184.104.226.107"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::b"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "enp3s0f0.2801",
:role => :internal,
- :family => :inet,
- :address => "10.0.0.19"
+ :inet => {
+ :address => "10.0.0.19"
+ }
},
- :external_ipv4 => {
+ :external => {
:interface => "enp3s0f0.2800",
:role => :external,
- :family => :inet,
- :address => "193.60.236.15"
+ :inet => {
+ :address => "193.60.236.15"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.10",
+ :inet => {
+ :address => "10.0.64.10"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[enp25s0f0 enp25s0f1]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.106"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::a"
+ :inet => {
+ :address => "184.104.226.106"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::a"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.6",
+ :inet => {
+ :address => "10.0.64.6"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.102"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::6"
+ :inet => {
+ :address => "184.104.226.102"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::6"
+ }
}
}
}
},
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.10",
+ :inet => {
+ :address => "10.0.48.10"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eth0 eth1]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.10"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:A"
+ :inet => {
+ :address => "130.117.76.10"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:a"
+ }
}
}
},
"193.60.236.0/24", # ucl external
"10.0.48.0/20", # amsterdam internal
"130.117.76.0/27", # amsterdam external
- "2001:978:2:2C::172:0/112", # amsterdam external
+ "2001:978:2:2c::172:0/112", # amsterdam external
"10.0.64.0/20", # dublin internal
"184.104.226.96/27", # dublin external
"2001:470:1:b3b::/64", # dublin external
},
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.12",
+ :inet => {
+ :address => "10.0.64.12"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 ens1f0 ens1f1]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.108"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::c"
+ :inet => {
+ :address => "184.104.226.108"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::c"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.50",
+ :inet => {
+ :address => "10.0.48.50"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "enp2s0f0",
:role => :external,
- :family => :inet,
- :address => "178.250.74.36",
- :hwaddress => "d8:d3:85:5d:87:5e"
- },
- :external_ipv6 => {
- :interface => "enp2s0f0",
- :role => :external,
- :family => :inet6,
- :address => "2a02:1658:4:0:dad3:85ff:fe5d:875e",
- :hwaddress => "d8:d3:85:5d:87:5e"
+ :inet => {
+ :address => "178.250.74.36"
+ },
+ :inet6 => {
+ :address => "2a02:1658:4:0:dad3:85ff:fe5d:875e"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.7",
+ :inet => {
+ :address => "10.0.64.7"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.103"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::7"
+ :inet => {
+ :address => "184.104.226.103"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::7"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.13",
+ :inet => {
+ :address => "10.0.64.13"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.109"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::d"
+ :inet => {
+ :address => "184.104.226.109"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::d"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "enp1s0f0",
:role => :external,
- :family => :inet,
- :address => "51.15.185.90",
- :prefix => "24",
- :gateway => "51.15.185.1"
- },
- :external_ipv6 => {
- :interface => "enp1s0f0",
- :role => :external,
- :family => :inet6,
- :address => "2001:bc8:2d57:100:aa1e:84ff:fe72:e660",
- :prefix => "48",
- :gateway => "2001:bc8:2::2:258:1"
+ :inet => {
+ :address => "51.15.185.90",
+ :prefix => "24",
+ :gateway => "51.15.185.1"
+ },
+ :inet6 => {
+ :address => "2001:bc8:2d57:100:aa1e:84ff:fe72:e660",
+ :prefix => "48",
+ :gateway => "2001:bc8:2::2:258:1"
+ }
}
}
}
},
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.15",
+ :inet => {
+ :address => "10.0.64.15"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.111"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::f"
+ :inet => {
+ :address => "184.104.226.111"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::f"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.8",
+ :inet => {
+ :address => "10.0.64.8"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.104"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::8"
+ :inet => {
+ :address => "184.104.226.104"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::8"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "bond0",
:mtu => 9000,
:role => :external,
- :family => :inet,
- :address => "45.85.134.91",
- :prefix => "31",
- :gateway => "45.85.134.90",
+ :inet => {
+ :address => "45.85.134.91",
+ :prefix => "31",
+ :gateway => "45.85.134.90"
+ },
+ :inet6 => {
+ :address => "2a05:46c0:100:1004:ffff:ffff:ffff:ffff",
+ :prefix => "64",
+ :gateway => "2a05:46c0:100:1004::"
+ },
:bond => {
:slaves => %w[eno1 eno2],
:mode => "802.3ad",
:lacprate => "fast"
}
- },
- :external_ipv6 => {
- :interface => "bond0",
- :role => :external,
- :family => :inet6,
- :address => "2a05:46c0:100:1004:ffff:ffff:ffff:ffff",
- :prefix => "64",
- :gateway => "2a05:46c0:100:1004::"
}
}
},
]
},
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eth0",
:role => :external,
- :family => :inet,
- :address => "77.95.65.39",
- :prefix => "27",
- :gateway => "77.95.65.33"
- },
- :external_ipv6 => {
- :interface => "eth0",
- :role => :external,
- :family => :inet6,
- :address => "2a03:9180:0:100::7",
- :prefix => "64",
- :gateway => "2a03:9180:0:100::1"
+ :inet => {
+ :address => "77.95.65.39",
+ :prefix => "27",
+ :gateway => "77.95.65.33"
+ },
+ :inet6 => {
+ :address => "2a03:9180:0:100::7",
+ :prefix => "64",
+ :gateway => "2a03:9180:0:100::1"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :external => {
:interface => "bond0",
:role => :external,
- :family => :inet,
- :address => "194.71.11.111",
- :prefix => "25",
- :gateway => "194.71.11.1",
+ :inet => {
+ :address => "194.71.11.111",
+ :prefix => "25",
+ :gateway => "194.71.11.1"
+ },
+ :inet6 => {
+ :address => "2001:6b0:19:2::111",
+ :prefix => "64",
+ :gateway => "2001:6b0:19:2::1"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:xmithashpolicy => "layer3+4",
:slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3]
}
- },
- :external_ipv6 => {
- :interface => "bond0",
- :role => :external,
- :family => :inet6,
- :address => "2001:6b0:19:2::111",
- :prefix => "64",
- :gateway => "2001:6b0:19:2::1"
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.17",
+ :inet => {
+ :address => "10.0.48.17"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[enp25s0f0 enp25s0f1]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.17"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:11"
+ :inet => {
+ :address => "130.117.76.17"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:11"
+ }
}
-
}
},
:planet => {
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.15",
+ :inet => {
+ :address => "10.0.48.15"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.15"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:F"
+ :inet => {
+ :address => "130.117.76.15"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:f"
+ }
}
}
},
:allowlist => ["172.31.0.2"]
},
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "ens5",
:role => :external,
- :family => :inet,
- :address => "172.31.37.101",
- :prefix => "20",
- :gateway => "172.31.32.1",
- :public_address => "3.144.0.72"
+ :inet => {
+ :address => "172.31.37.101",
+ :prefix => "20",
+ :gateway => "172.31.32.1",
+ :public_address => "3.144.0.72"
+ }
}
}
},
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eno1",
:role => :external,
- :family => :inet,
- :address => "140.211.167.98"
- },
- :external_ipv6 => {
- :interface => "eno1",
- :role => :external,
- :family => :inet6,
- :address => "2605:bc80:3010:700::8cd3:a762"
+ :inet => {
+ :address => "140.211.167.98"
+ },
+ :inet6 => {
+ :address => "2605:bc80:3010:700::8cd3:a762"
+ }
}
}
},
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eno1",
:role => :external,
- :family => :inet,
- :address => "10.5.0.77",
- :prefix => "16",
- :gateway => "10.5.0.1",
- :public_address => "161.53.248.77"
+ :inet => {
+ :address => "10.5.0.77",
+ :prefix => "16",
+ :gateway => "10.5.0.1",
+ :public_address => "161.53.248.77"
+ }
}
}
}
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eth0.2800",
:role => :external,
- :family => :inet,
- :address => "193.60.236.19"
+ :inet => {
+ :address => "193.60.236.19"
+ }
},
- :internal_ipv4 => {
+ :internal => {
:interface => "eth0.2801",
:role => :internal,
- :family => :inet,
- :address => "10.0.0.3"
+ :inet => {
+ :address => "10.0.0.3"
+ }
}
}
}
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eth0",
:role => :external,
- :family => :inet,
- :address => "176.31.235.79",
- :prefix => "24",
- :gateway => "176.31.235.254"
- },
- :external_ipv6 => {
- :interface => "eth0",
- :role => :external,
- :family => :inet6,
- :address => "2001:41d0:2:fc4f::1",
- :prefix => "64",
- :gateway => "2001:41d0:2:fcff:ff:ff:ff:ff"
+ :inet => {
+ :address => "176.31.235.79",
+ :prefix => "24",
+ :gateway => "176.31.235.254"
+ },
+ :inet6 => {
+ :address => "2001:41d0:2:fc4f::1",
+ :prefix => "64",
+ :gateway => "2001:41d0:2:fcff:ff:ff:ff:ff"
+ }
}
}
}
:networking => {
:dnssec => "false",
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eth0",
:role => :external,
- :family => :inet,
- :address => "212.110.172.32",
- :prefix => "26",
- :gateway => "212.110.172.1"
- },
- :external_ipv6 => {
- :interface => "eth0",
- :role => :external,
- :family => :inet6,
- :address => "2001:41c9:1:400::32",
- :prefix => "64",
- :gateway => "fe80::1"
+ :inet => {
+ :address => "212.110.172.32",
+ :prefix => "26",
+ :gateway => "212.110.172.1"
+ },
+ :inet6 => {
+ :address => "2001:41c9:1:400::32",
+ :prefix => "64",
+ :gateway => "fe80::1"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.14",
+ :inet => {
+ :address => "10.0.64.14"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.110"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::e"
+ :inet => {
+ :address => "184.104.226.110"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::e"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.49",
+ :inet => {
+ :address => "10.0.48.49"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "eno1.2801",
:role => :internal,
- :family => :inet,
- :address => "10.0.0.4"
+ :inet => {
+ :address => "10.0.0.4"
+ }
}
}
},
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.50",
+ :inet => {
+ :address => "10.0.64.50"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.3",
+ :inet => {
+ :address => "10.0.64.3"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.99"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::3"
+ :inet => {
+ :address => "184.104.226.99"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::3"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.4",
+ :inet => {
+ :address => "10.0.64.4"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.100"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::4"
+ :inet => {
+ :address => "184.104.226.100"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::4"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.64.5",
+ :inet => {
+ :address => "10.0.64.5"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.101",
:role => :external,
- :family => :inet,
- :address => "184.104.226.101"
- },
- :external_ipv6 => {
- :interface => "bond0.101",
- :role => :external,
- :family => :inet6,
- :address => "2001:470:1:b3b::5"
+ :inet => {
+ :address => "184.104.226.101"
+ },
+ :inet6 => {
+ :address => "2001:470:1:b3b::5"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.11",
+ :inet => {
+ :address => "10.0.48.11"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.11"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:B"
+ :inet => {
+ :address => "130.117.76.11"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:b"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.12",
+ :inet => {
+ :address => "10.0.48.12"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.12"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:C"
+ :inet => {
+ :address => "130.117.76.12"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:c"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.13",
+ :inet => {
+ :address => "10.0.48.13"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.13"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:D"
+ :inet => {
+ :address => "130.117.76.13"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:d"
+ }
}
}
}
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "bond0",
:role => :external,
- :family => :inet,
- :address => "140.211.167.99",
+ :inet => {
+ :address => "140.211.167.99"
+ },
+ :inet6 => {
+ :address => "2605:bc80:3010:700::8cd3:a763"
+ },
:bond => {
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
- },
- :external_ipv6 => {
- :interface => "bond0",
- :role => :external,
- :family => :inet6,
- :address => "2605:bc80:3010:700::8cd3:a763"
}
},
:private_address => "10.0.16.200"
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "bond0",
:role => :external,
- :family => :inet,
- :address => "140.211.167.100",
+ :inet => {
+ :address => "140.211.167.100"
+ },
+ :inet6 => {
+ :address => "2605:bc80:3010:700::8cd3:a764"
+ },
:bond => {
:slaves => %w[eno1 eno2 eno3 eno4 eno49 eno50]
}
- },
- :external_ipv6 => {
- :interface => "bond0",
- :role => :external,
- :family => :inet6,
- :address => "2605:bc80:3010:700::8cd3:a764"
}
}
},
},
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.14",
+ :inet => {
+ :address => "10.0.48.14"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.14"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:E"
+ :inet => {
+ :address => "130.117.76.14"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:e"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "bond0",
:role => :internal,
- :family => :inet,
- :address => "10.0.48.5",
+ :inet => {
+ :address => "10.0.48.5"
+ },
:bond => {
:mode => "802.3ad",
:lacprate => "fast",
:slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
}
},
- :external_ipv4 => {
+ :external => {
:interface => "bond0.2",
:role => :external,
- :family => :inet,
- :address => "130.117.76.5"
- },
- :external_ipv6 => {
- :interface => "bond0.2",
- :role => :external,
- :family => :inet6,
- :address => "2001:978:2:2C::172:5"
+ :inet => {
+ :address => "130.117.76.5"
+ },
+ :inet6 => {
+ :address => "2001:978:2:2c::172:5"
+ }
}
}
},
},
:networking => {
:interfaces => {
- :external_ipv4 => {
+ :external => {
:interface => "eth0",
:role => :external,
- :family => :inet,
- :address => "193.198.233.211",
- :prefix => "29",
- :gateway => "193.198.233.209"
- },
- :external_ipv6 => {
- :interface => "eth0",
- :role => :external,
- :family => :inet6,
- :address => "2001:b68:4cff:3::3",
- :prefix => "64",
- :gateway => "2001:b68:4cff:3::1"
+ :inet => {
+ :address => "193.198.233.211",
+ :prefix => "29",
+ :gateway => "193.198.233.209"
+ },
+ :inet6 => {
+ :address => "2001:b68:4cff:3::3",
+ :prefix => "64",
+ :gateway => "2001:b68:4cff:3::1"
+ }
}
}
}
default_attributes(
:networking => {
:interfaces => {
- :internal_ipv4 => {
+ :internal => {
:interface => "eno1.2801",
:role => :internal,
- :family => :inet,
- :address => "10.0.0.15"
+ :inet => {
+ :address => "10.0.0.15"
+ }
},
- :external_ipv4 => {
+ :external => {
:interface => "eno1.2800",
:role => :external,
- :family => :inet,
- :address => "193.60.236.22"
+ :inet => {
+ :address => "193.60.236.22"
+ }
}
}
},