- From: Dreamcat4 <
>
- To:
- Subject: [chef] Running resources & not_if { } qualifier
- Date: Thu, 2 Dec 2010 15:13:17 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=xXfo9vRz8bJ6PPAO16fzLaJ7x7Ltah6jF1J/VCZd+aVKDYdrEBRqLVpfF/gmzoA0L+ EcmbFDne1KYvLUrqK5lg7zJU3nhRe6yL9ZQ9r8hxyvuHiwwBzpG8jgpQL5CaJybIRnzD F9TY3+M9P+G6mFysagCHaQGyqCWc5Oj0keYZI=
Hi
When encountering the not_if qualifier, subsequent resource actions are not
run?
rvm default_ruby do
action :install
not_if { default_ruby == "system" } # <---- evaluates to 'true'
end
rvm default_ruby do # <---- this is skipped
action :set_default
end
dreamcat4
- [chef] Running resources & not_if { } qualifier, Dreamcat4, 12/02/2010
Archive powered by MHonArc 2.6.16.