[Puppet-users] dependency and communication between defined classes
ADNET Ghislain
gadnet at aqueos.com
Wed Apr 18 15:45:26 CDT 2007
Hi,
i wanted to know how you handle case when classes or define need to
communicate between them. For exemple i got an ftpd define and a
apachevhost define. Both need to know the path where the vhost is set
and this path is defined by the ftpuser home's directory. How can i ask
information from other define or other classes ? we allready seen that
tag are not reliable as they depend on the order the parser read them.
For exemple how to say that a define requires another define as a
requirement ( i think of the ftpuser define that creates a ftp user
account and the ftpdaemon define that is used to configure the ftp
daemon and the define that create the apache vhost ,it need the ftpuser
to be created before and the ftpuser define need that the ftpdaemon
exist before ...).
i also tried to make a define inside another define but i cannot. I
have seen the syntax xx::yy to acces some data but when is this usable ?
What data can be read between part of the recipes ?
I see my recipe getting more complex and i am a little lost on how
they can interact with each others. Any ideas/hint on this side ?
--
Cordialement,
Ghislain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3123 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.madstop.com/pipermail/puppet-users/attachments/20070418/bf360590/attachment-0001.bin
More information about the Puppet-users
mailing list