Re: [Puppet Users] cross module require
I've not but it is a good idea :) thanks On 2 March 2012 11:23, denmat wrote: > HI, > > have you tried including the mounts module in your application.pp? > > include mounts::mount1 > > Either there or in your node definition should do it. > > Cheers, > Den > > On Fri, Mar 2, 2012 at 9:39 PM, Peter Horvath > wrote: >> Hello, >> >> I have 2 modules and 1 modul has a resource type in a class which >> would require an other class from and other module: >> module/mounts/manifest/mount1.pp >> module/server/manifres/applicaton.pp >> >> Application creates a directory under /srv for itself and /srv should >> be mounted from the shared storage first. >> >> file{'/srv/application': >> ensure => directory, >> require => Class['mounts::mount1'], >> } >> >> this in the application.pp gives class cannot be found error. >> >> How can i require cross module? >> >> Thank you >> Peter >> >> -- >> 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. > -- 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.
Re: [Puppet Users] cross module require
HI, have you tried including the mounts module in your application.pp? include mounts::mount1 Either there or in your node definition should do it. Cheers, Den On Fri, Mar 2, 2012 at 9:39 PM, Peter Horvath wrote: > Hello, > > I have 2 modules and 1 modul has a resource type in a class which > would require an other class from and other module: > module/mounts/manifest/mount1.pp > module/server/manifres/applicaton.pp > > Application creates a directory under /srv for itself and /srv should > be mounted from the shared storage first. > > file{'/srv/application': > ensure => directory, > require => Class['mounts::mount1'], > } > > this in the application.pp gives class cannot be found error. > > How can i require cross module? > > Thank you > Peter > > -- > 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.
[Puppet Users] cross module require
Hello, I have 2 modules and 1 modul has a resource type in a class which would require an other class from and other module: module/mounts/manifest/mount1.pp module/server/manifres/applicaton.pp Application creates a directory under /srv for itself and /srv should be mounted from the shared storage first. file{'/srv/application': ensure => directory, require => Class['mounts::mount1'], } this in the application.pp gives class cannot be found error. How can i require cross module? Thank you Peter -- 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.