Hi Antonias. The way you would implement the pattern you want is to use Puppet namespacing.
To explain this using your example code below, your directory structure would need to change to: modules/configuration/manifests/git And your include statement would change to: include configuration::git This method of referencing Puppet classes is really useful. The rule to apply when namespacing classes in this manner is that the final element of every name space must always resolve to a puppet class, represented as a .pp file of the same name within the module. Consider: modules/foo/manifests/bar.pp Would be declared as: include foo::bar Whereas: modules/foo/manifests/bar/baz.pp Would be declared as: include foo::bar::baz HTH David Bryant-Moore. david.bmo...@puppetlabs.com On Thursday, February 19, 2015 at 1:36:01 PM UTC, tuner wrote: > > Hello, > > > i want to include subdirectories of modules, for example something like: > cat modules/*configuration/git*/manifests/init.pp > class git { > > if $::osfamily == 'redhat' { > package { > 'git': ensure => present, > } > } > } > > And then include git like: > cat manifests/site/git.pp > node git.domain.tst { > include "*configuration/git*" > } > > > I want to have my modules more structured and subdirectories would be a > good solution for me here.. > > > Thanks, > Antonios. > -- 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/02444b49-411a-4d12-b9f3-ea0f9252b5ab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.