Hm, my last answer didn't get posted. So let's go again.
First, thanks for your help, it seems to work now - maybe I fixed another
bug or did something wrong. But now I have another at which I'm stuck.
Basically I configure our web servers with puppet. For that I have a
"webserver" class which basically sets up only the environment for web
service, and a preparevhost define which, well, prepares a vhost on the
machine.
What puppet does now is to execute some of the preparevhost definitions
_before_ the webserver class is applied, which fails miserably. EVEN though
I defined a require => to a directory managed by the ws class from within
the define - puppet simply seems to ignore that.
So how can I make sure that the webserver class gets applied fully before
the prepvhost define is started? The node configuration looks like this now:
node 'server' { include webserver }
node 'host1' inherits 'server' { preparevhost {"url" : } }
I'd appreciate any help :) . Oh, and yes, my puppet version is 2.6.12 from
SLES 11 SP2.
Thanks in advance & greetings!
Axel.
Am Mittwoch, 22. August 2012 14:27:03 UTC+2 schrieb Axel Bock:
>
> Hi readers
>
> another question for my little puppet project: Can I (and if yes, how)
> define dependendies between puppet "defines"? (define like in define
> mymodule::mydefine() {...})
>
> Example: I have a define "prepare_cool_thing" and another define
> "cool_thing". Both can be on a machine several times (quite, actually, like
> vhosts :). So this is entirely valid:
>
> prepare_cool_thing{ "name1" : }
> cool_thing{ "name1" : }
>
> prepare_cool_thing{ "name2" : }
> cool_thing{ "name2" : }
>
> I'm sure you get it. BUT. I'd like to state within the cool_thing define
> that the prepare_cool_thing was executed. Can I do that? The following does
> not seem to do what I want:
>
> Prepare_cool_thing[ "name1" ] -> Cool_thing[ "name1" ] # naah, does not
> work.
>
>
> Thanks & greetings!
> Axel.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/3Y9pO2Vb4dYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.