Hi,

thank for the help.
I have solved the issue with the generate funktion.
      $redhatfiles = generate("/bin/bash","-c","/bin/ls 
/data/git/${zweig}/modules/networking/files/${::hostname}/network-scripts 
2>/dev/null | tr -t '\n' ':'")
      $redhat_interfaces = split($redhatfiles, ":")
      redhat::create_interface { $redhat_interfaces: }

Unfortunately spaces are not allowed in the generate funktion. But I have 
found a solution.
https://projects.puppetlabs.com/issues/5481

Regards
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/17dad4e1-1169-45a5-aeba-db4782a457c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to