diff --git a/manifests/module/huntgroup.pp b/manifests/module/huntgroup.pp
index 668a8bc0bebec3a43b337bf9a72d14e9fcac9f35..77ef5f44e6eb9aba19641bf01be83c1405dbdd04 100644
--- a/manifests/module/huntgroup.pp
+++ b/manifests/module/huntgroup.pp
@@ -3,11 +3,12 @@
 define freeradius::module::huntgroup (
   Variant[String,Array] $conditions,
   Variant[String,Integer] $order     = 50,
-  String $huntgroup                  = 'huntgroup',
+  Optional[String] $huntgroup        = undef,
 ) {
-  concat::fragment {"Huntgroup ${name}":
-    target  => $huntgroup,
-    order   => $order,
-    content => template('freeradius/huntgroup.erb'),
+  warning('Use of freeradius::module::huntgroup is deprecated. Use freeradius::huntgroup instead')
+
+  freeradius::huntgroup {$name:
+    conditions => $conditions,
+    order      => $order,
   }
 }