Is it possible to have file resource name value as an array [closed]
Hello,
I want to set file ressource like that :
classe llibrenms::agent {
$scripts = ['dpkg','bind'] file {"/usr/lib/checkmkagent/local/${scripts}": source => "/opt/librenms-agent/agent-local/${scripts}", }
But it gave me :
Failed to apply catalog: Parameter source failed on File[/usr/lib/checkmkagent/local/[dpkg, bind]]: Failed to convert '/opt/librenms-agent/agent-local/[dpkg, bind]' to URI: bad component(expected absolute path component): /opt/librenms-agent/agent-local/[dpkg,%20bind] at /etc/puppetlabs/code/environments/production/modules/snmp/manifests/init.pp:126
What can I do to resolve this ?
Thank you !
}