Hello all,

I am newbie to puppet and sorry if it is a silly question. What is wrong 
with my manifest?

define webapp ($domain,$port){
  file { "/tmp/${name}":                 ------------> This is working and 
creating the files as /tmp/test , /tmp/test1 etc
    content => "Server:${port}",
  }
  notify { $domain: }
}

$websites = ['test','test1','test2']

webapp { $websites :
  domain => $websites,          ---------> Here, how  can iterate websites 
array? It gives error as duplicate definition.
  port => 80,
}

Thanks,
OS



-- 
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/afa8419e-d24c-4868-b774-3c348b6275ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to