How is it with this:
    dhcp_host ::File.basename(host_file, ".conf") do