When I try the following in my manifest.
$profile = hiera('duplicity::profile', 'test123')
file { [ "/tmp/${profile}" ]:
ensure => directory,
owner => root,
group => root,
}
I have the following defined in the heira for that node
duplicity::profile:
- 'testfails'
Which creates folders like this
find /tmp/\[testfails\]
/tmp/[testfails]
Why is it adding the brackets into the folder name?