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")