# @summary A single dns key (for zone updates and the like) # # TODO add stuff to autogenerate these, and insntead dump them to individual files. # # @param algorithm # Algorithm used, must match secret # @param secret # Secret hash, must match algorithm # @param keyname # Name of key define dns::key ( String $algorithm, Variant[String, Sensitive[String]] $secret, String $keyname = $name, ) { concat::fragment { "Dns::Key - ${keyname}": target => $dns::config_file, content => epp("${module_name}/key.epp", { keyname => $keyname, algorithm => $algorithm, secret => $secret, }), } }