Chef Overriding LDAP password and redeploying the jasperserver


Chef-client runs every for every 30min. This file contains static password Whenever chef runs this file it generates an encrypted password into other files. When chef look at auto generated LDAP encrypted password change in the other files then it redeploying or restarting the jasper server which causing the environment inconsistent.

template “Jasperserver/buildomatic/” do
source 'default_master_properties.erb’
owner "#{node[‘jasper’][‘user’]}"
group "#{node[‘jasper’][‘group’]}"
mode '0700’

It should run this file only once when any new sprint version deployment happen, shouldn’t allow chef to run it for once in every 30 min.

How to stop chef overriding the password on the other files. What is the best way to put conditions