On Tue, Jan 31, 2012 at 04:52:31PM +0100, Felix Frank wrote: > On 01/31/2012 04:46 PM, Christopher Wood wrote: > > This sounds like you want a define rather than a class. > > Possibly, but not yet determined ;-) > > > gross, horrible > > How so? It's not a bad example. If you dislike the data redundancy, I > suggest:
I prefer my disclaimer to "use at your own risk". I hope it promotes people reading and understanding what follows, instead of blindly cutting and pasting. It also covers me in case I'm unaware of my actual eruptions of awful. In my case, I'm fine with the data redundancy. The source path is the same as written in /etc/exports on the server, and the mount path is the same as in /etc/fstab on the client (albeit obfuscated slightly for this list). My standard is that somebody solving a problem at 04:00 shouldn't have to dig too deeply into a manifest to figure out what goes where, for a broad definition of how conscious I am at 04:00. > define mail::mount($mount_base="/mail") { > > include nfs::client > > $mountpoint = "$mount_base/$name" > > file { $mountpoint: ensure => directory, } > > mount { $mountpoint: > ensure => mounted, > device => "filer:/$name", > options => > 'tcp,rsize=32768,wsize=32768,hard,nointr,timeo=600,retrans=2,mountvers=3,nfsvers=3', > fstype => 'nfs', > atboot => true, > require => [File[$mountpoint], Class['nfs::client']], > } > > } > > and then > > mail::mount { [ 'mail0', 'mail1' ]: } > > IMHO, there's not much more that desperately needs changing in your code. > > Cheers, > Felix > > -- > 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. > > -- 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.