- From: Jesse Nelson <
>
- To:
- Subject: [chef] Re: specify different sets of attributes inside cookbook
- Date: Tue, 3 Aug 2010 08:05:12 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=O7ywwz+1OqWOvYUtBg61pV4mRbTlxG5Y5/nBF+pNuQRWWKPtXzL4mCqSLHrx4PvWOn Dokmv743gX0h3DBDSiMLkDpft+rElDk+a/8erOrSZfKNaYfXpdIP3+ZB3gJUwl4gS1ce 3vb7e7ESZAWANE+Pop/OCCDOwfJ/lRyHugq2w=
you can use a case statement inside the attrib file
case fqdn
when "myhostname.mydomainname"
default[some_attrib] = true
else
default[some_attrib] = false
end
On Aug 3, 2010, at 5:49 AM,
<
>
<
>
wrote:
>
>
hi
>
>
I want to maintain attributes inside cookbook, it it anyway to specify that
>
one node/domain will use one set of attributes while other use other one ?
>
>
Does something like File Specificity work for attibutes ?
Archive powered by MHonArc 2.6.16.