[chef] Question about recipes


Chronological Thread 
  • From: Jens Skott < >
  • To:
  • Subject: [chef] Question about recipes
  • Date: Mon, 5 Nov 2012 15:02:03 +0100

I have a question about RPM:s and config files with chef.
Im sorry if im writing a question I should find the answer to on the
site but have not found any information regarding it or I could just
have missed it.

The question I have is. If I write a recipe that installs a RPM
package trough yum, then deploys config files in specific directories
and then restarts the enables and starts the service. Then have a
dependency on apache recipe and does and action [:restart] on httpd
service.

What does the chef recipe actualy do the second time chef runs? Does
it reinstalls the RPM and config files then restarts the httpd
service? Or does it do a diff to see if its the same package and skip
the installation and configfiles but restarts httpd?

Anyone who can enlighten me or point me to a RTFM page? =)

Jens Skott
Tel: +46-8-5142 4396
Schibsted Centralen IT



Archive powered by MHonArc 2.6.16.

§