- From: Motiejus Jakštys <
>
- To:
- Subject: [chef] Re: Re: :delayed command invocation
- Date: Tue, 10 Apr 2012 18:11:49 +0300
On Tue, Apr 10, 2012 at 18:05, Thom May
<
>
wrote:
>
2012/4/10 Motiejus Jakštys
>
<
>:
>
your:
>
> execute "delete password" do
>
> command "passwd -d #{u['id']}"
>
> only_if { "test $(passwd -S #{u['id']} | awk '{print $2}') = L" }
>
> end
>
>
>
should be:
>
>
execute "delete password" do
>
command "passwd -d #{u['id']}"
>
only_if { "test $(passwd -S #{u['id']} | awk '{print $2}') = L" }
>
action :nothing
>
end
>
>
and then it'll only run once notified.
>
-Thom
Thanks. My [copy of the] cookbook is complete!
--
Motiejus Jakštys
Archive powered by MHonArc 2.6.16.