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
classgit {
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 [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/2fc44738-5df1-4eda-addd-dfd79996604a%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/2fc44738-5df1-4eda-addd-dfd79996604a%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/54E60752.2050303%40alter3d.ca.
For more options, visit https://groups.google.com/d/optout.