Found the problem. When passing an array to a define the default variable
name for the elements of the array is $name. This works:
define debugUsers {
> validate_string($name)
> notify { "username: \"${name}\"": }
> }
On Monday, April 21, 2014 11:31:5
So, I am trying to do something with a list (array) of users from hieara.
Here is the yaml:
profile::sysconfig::sftp_users: [ "joe", "bill", "nancy" ]
In my profile I have a defined class "debugUsers" that I am calling with
the array I got from hiera:
class profile::sysconfig::sftpserver {
>