search for: bcvg01

Displaying 1 result from an estimated 1 matches for "bcvg01".

Did you mean: bcpy01
2012 Aug 11
8
Pass array to a define
...define lvm::create_vg ( $pvdisks ) { exec { ''pvcreate'': command => "/sbin/pvcreate -yf $pvdisks", unless => "/sbin/pvdisplay $pvdisks", ... } } class someclass { lvm::create_vg { ''bcvg01'': pvdisks => [''/dev/xvdb1'', ''/dev/xvdc1'']; } } Inside the define, $pvdisks gets expanded to ''/dev/xvdb1/dev/xvdc1'' Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Us...