[chef] testing a file for check sums


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] testing a file for check sums
  • Date: Sat, 2 Mar 2013 22:34:37 +0800

Hi,

I have code that checkout a repo from git.

I need to file if a file has changed and if so the restart a service.  How can use chef to create a check for a file from a git repo and find out if the file has changed?

Note: the is a private repo and I use a python script to manage the checkout since I have to pass a username and password for each chef run.  I do not use the git resource.

So after I checkout the repo, I have a file called /path/to/foo.  If that file changed on the next pull, how do I notify a service to restart?

Thanks





Archive powered by MHonArc 2.6.16.

§