[chef] notifies :before


Chronological Thread 
  • From: Steven De Coeyer < >
  • To:
  • Subject: [chef] notifies :before
  • Date: Thu, 21 Nov 2013 13:39:11 +0100

Ohai Chefs

I was wondering if someone had more elegant ideas for making resources notify another resource _before_ running itself.

I’d want something like this:

file 'foo’ do
  content ‘bar'
  notifies :stop, ‘service[foobar]', :before
  notifies :start, ‘service[foobar]’, :immediately
end

I realise this is possible with chaining resources. But I was wondering if there were more elegant solutions.

Kr,
Steven



Archive powered by MHonArc 2.6.16.

§