Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Check if file exists on client

Hi, i have to deploy application on WebServer. At the end of the deployment, i specific file appear and i would know how to check if the file had been created or not.

I found two solutions : if file ( "/path/to/file","/dev/null") != ' ' { } or if inline_template(<%= File.exists?(self.lookupvar($path)) %>) { }

These solutions work but they search the file on the puppet master only. What can i change to search on client ?