Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
$dirs = ["/tmp/foo", "/tmp/bar", "/tmp/baz"]

file { $dirs:
  ensure => directory
}

#I don't know if this would get what you want

file { "${dirs}/test.txt":
  ensure => present,
  content => "test\n"
}