Hello, Little background on what I am trying to do.
App1 and App2 are both distributed systems, running on both virtual and physical machines. Mount points for the virtual machines will be /data and mount points for the physical machines will be /disk1/, /disk2/, ... /diskN/. In test, both App1 and App2 are running on the same machines so I can't duplicate definitions. I've read about Virtual Resources, however I cannot figure out how to dynamically pass variables to the Virtual Resource. I have the following: class data_mounts { file { "$mountpoint": ensure => directory, owner => root, group => root, mode => 0644, } @mount { "$mountpoint": name => "${mountpoint}", ensure => mounted, fstype => "ext3", options => "defaults,noatime", require => [ File["$mountpoint"], ], } } How can I pass in different mountpoints? I can generate a list of mountpoints and pass them in to a `define` and it works, however I cannot do this using virtual resources in order to work from multiple modules. Thanks, Brandon -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/aJPgkAA-eIEJ. 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.