Permalink
Browse files

Merge pull request #190 from clifferson/add_flux_install

Add flux install
  • Loading branch information...
2 parents cf767d8 + 16ea846 commit 594bee956550f8734e48df8163e2acce1994cbe6 @cunnie cunnie committed Jan 18, 2013
Showing with 16 additions and 0 deletions.
  1. +2 −0 attributes/flux.rb
  2. +14 −0 recipes/flux.rb
View
@@ -0,0 +1,2 @@
+node.default["flux_download_uri"]="https://herf.org/flux/Flux.zip"
+node.default["flux_download_checksum"]="c4cb2b2e08c07678e4825c7472f78fe8fca8e78846625dcb7a4fe4fcae503471"
View
@@ -0,0 +1,14 @@
+unless File.exists?("/Applications/Flux.app")
+
+ remote_file "#{Chef::Config[:file_cache_path]}/Flux.zip" do
+ source node["flux_download_uri"]
+ checksum node["flux_download_checksum"]
+ mode "0644"
+ end
+
+ execute "unzip flux" do
+ command "unzip #{Chef::Config[:file_cache_path]}/Flux.zip Flux.app/* -d /Applications/"
+ user WS_USER
+ group "admin"
+ end
+end

0 comments on commit 594bee9

Please sign in to comment.