[chef] ark cookbook resources are not idempotent?


Chronological Thread 
  • From: Mike < >
  • To: " " < >
  • Subject: [chef] ark cookbook resources are not idempotent?
  • Date: Mon, 20 May 2013 08:16:50 -0400

I've started looking at using ark to do the download, unzip,
configure, make, make install dance.

It seems like every time Chef runs, `make`, `make install` is executed again.

ark 'ghostscript' do
  url 'http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz'
  version '9.07'
  checksum '44800d004c53f13192d1b5db413119198ddfc8a11c4d2a030aac2f2fda822ebf'
  action [:configure, :install_with_make]
end

From logs:

  * ark[ghostscript] action install_with_makeRecipe: <Dynamically
Defined Resource>
  * directory[/usr/local/ghostscript-9.07] action create (up to date)
  * bash[build with make] action run
    - execute "bash"  "/tmp/chef-script20130520-15167-13q0blu"

  * link[/usr/local/ghostscript] action create (up to date)
  * bash[make install] action run
    - execute "bash"  "/tmp/chef-script20130520-15167-ys05zc"

Chef 11.4.4, Omnibus build, ark 0.1.0

Further evidenced by the timestamp on every binary added getting a new
timestamp.

Is this just me? I hope not...
-M



Archive powered by MHonArc 2.6.16.

§