diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-26 00:07:03 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-26 00:07:03 -0400 |
commit | 6e2a5993ce470341bed0e0c6ba8e44de3712d50e (patch) | |
tree | 7a6bad35bac69e5f9264a5dde460335b1068ec9e /files/usr/local/etc/raddb/clients.conf.radius_server | |
parent | 7bb5176a0e1d3a7d8a119b92758404d514f59be9 (diff) | |
download | infrastructure-6e2a5993ce470341bed0e0c6ba8e44de3712d50e.tar.gz |
more icinga stuff
Diffstat (limited to 'files/usr/local/etc/raddb/clients.conf.radius_server')
-rw-r--r-- | files/usr/local/etc/raddb/clients.conf.radius_server | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/files/usr/local/etc/raddb/clients.conf.radius_server b/files/usr/local/etc/raddb/clients.conf.radius_server new file mode 100644 index 0000000..033b059 --- /dev/null +++ b/files/usr/local/etc/raddb/clients.conf.radius_server @@ -0,0 +1,16 @@ +client icinga { + ipaddr = ${icinga_radius_cidr} + secret = ${icinga_radius_secret} +} + +$(for client_name in $radius_clients; do + eval "client_address=\$radius_${client_name}_address" + eval "client_secret=\$radius_${client_name}_secret" + cat <<EOF +client ${client_name} { + ipaddr = ${client_address} + secret = ${client_secret} +} + +EOF +done) |