-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 15 November 2007, Grzegorz Marszałek wrote:> Hello!
>
> I''m newbie to puppet but I like it a lot :)
> I''m still trying to figure out how to write good manifests. And my
> problem is like this:
>
> I''ve got class samba-server - I''ve got there all settings
I need for
> samba to behave properly in my network. I include it in nodes-
> definition on servers. Then I''d like to define shares - diffierent
on
> each server. And the question is: can I make share definitions
> dependant on class samba-server existance? That is: no code connected
> with shares will be executed if there is no class samba-server
> (probably with some error message). Or even: If I define even one
> share - puppet will automatically assume that this node needs samba-
> server class to be included?
The latter is very easy: since classes can be included multiple times, just
place "include samba-server" into your share define. Additionally you
can "require => Class["samba-server"]".
Regards, David
- --
The primary freedom of open source is not the freedom from cost, but the free-
dom to shape software to do what you want. This freedom is /never/ exercised
without cost, but is available /at all/ only by accepting the very different
costs associated with open source, costs not in money, but in time and effort.
- -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHPKqK/Pp1N6Uzh0URAhSDAKCVlKcLzhjkAE0lUNgrPJEwDN92XQCfYPac
VbQ/2EML6xa2jq4ok1ahEB8=I4XD
-----END PGP SIGNATURE-----