On Wed, Aug 26, 2015 at 11:50 PM, Francis Chan <[email protected]> wrote:
> I'm using the something like this since I want all of class bar to be
> applied before any class foo:
>
> # init.pp for module bar
> class bar( $var = "hello" )
> {
> }
>
>
> # something.pp in module foo
> class foo::something {
> require bar
> }
>
>
Instead of using the `require` function, try using the "resource-like"
declaration syntax:
class { bar:
var => world,
before => Class[foo::something]
}
This has the same effect as the require function (i.e. making
Class[foo::something] dependent upon Class[bar]), but it passes "world" as
the value for $var.
Is it possible to change bar::var using when foo uses the "require"
> statement? Is there another way that will keep the same dependency but
> allow me to pass in parameters to the required class?
>
> Thanks!
>
> --
> 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/23998ab8-35c4-4bc8-987a-41bc791ade00%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/23998ab8-35c4-4bc8-987a-41bc791ade00%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
--
Peter Huene
Software Engineer, Puppet Labs
Puppet Open Source Team
-------------------------------------------
PuppetConf 2015 is coming to Portland, Oregon! Join us October 5-9!
--
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/CACZQQfN_asdjO%3DCphoR%3DN2owuXkJ0gJSq%2BUTgccu05ygNmJf_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.