Re: [Puppet Users] Possible to include subdirectories in modules

36 views
Skip to first unread message

Peter Kristolaitis

unread,
Feb 19, 2015, 11:12:40 AM2/19/15
to puppet...@googlegroups.com
You can't do exactly what you have below, but there is similar functionality built into the module architecture.  See:

https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html#example

So your .pp file would be named

modules/configuration/manifests/git.pp

And the module name would be 'configuration::git'



On 02/19/2015 08:55 AM, tuner wrote:
Hello,


i want to include subdirectories of modules/-path, e.g.
cat modules/configuration/git/manifests/init.pp
class git {

   
if $::osfamily == 'redhat' {
       
package {
           
'git': ensure => present,
       
}
   
}
}

And then include with something like:
cat manifests/site/git.pp
node git
.testdomain.tst {
    include
base
    include
"configuration/git"
}

This would be very helpful for my configuration. Is there a way to manage this?


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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2fc44738-5df1-4eda-addd-dfd79996604a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages