OSDN Git Service

refactoring.
[metasearch/grid-chef-repo.git] / cookbooks / jenkins-grid / recipes / docker-compose.rb
index df2bd1b..aef75e2 100644 (file)
@@ -82,8 +82,10 @@ if node['jenkins-grid']['with_ssl_cert_cookbook']
       chmod 600 #{certs_dir}/server.key
     EOH
     sensitive true
-    action :nothing
-    subscribes :run, "file[#{key_path}]"
+    action :run
+    not_if "cmp #{key_path} #{certs_dir}/server.key"
+    #action :nothing
+    #subscribes :run, "file[#{key_path}]"
   end
 
   vols.push("#{server_cert_path(cn)}:/var/lib/jenkins/server.crt:ro")