I'm trying to do this using an array variable and the sourceselect 
parameter.

class parent {
    $sources = [ '/path/to/first' ]

    file { '...':
        ensure => directory,
        source => $sources,
        sourceselect => all
    }
}

class child {
    $sources += [ '/path/to/second' ]
}


But it complains that:

Error 400 on SERVER: Puppet::Parser::AST::VarDef failed with error 
TypeError: can't convert Array into String


Is puppet not capable of using an array variable for an array parameter? Do 
I need to use a special syntax for this? 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to