Include all options from template into other blocks?
Alexey D. Filimonov
alexey at filimonic.net
Mon Feb 17 00:56:00 UTC 2025
Is there an ability to include _every_ option from `default_client` into
`client name_of_client1` without moving them to separate file and with
single directive?
Something like that:
# clients.conf
default_client {
secret = "TheDefaultClientSecret"
require_message_authenticator = yes
vlan_for_ssid-name = "50"
}
client name_of_client1 {
$COPY ${.default_client}
ipaddr = 10.1.1.1
}
I understand there is ability to refer parameters one-by-one, like that:
client name_of_client1 {
ipaddr = 10.1.1.1
secret = ${..default_client.secret}
require_message_authenticator =
${..default_client.require_message_authenticator}
vlan_for_ssid-name = ${..default_client.vlan_for_ssid-name}
}
And there is ability to move all parameters to a separate file, like that
# clients.conf
client name_of_client1 {
ipaddr = 10.1.1.1
$INCLUDE clients.defaults.conf
}
# clients.defaults.conf
secret = "TheDefaultClientSecret"
require_message_authenticator = yes
vlan_for_ssid-name = "50"
But interested in copying all set of parameters with single command.
More information about the Freeradius-Users
mailing list