I'd like to install source code packages which doesn't have binary packages (deb, rpm) yet.
How do I stop execution of a module in case that the module is already install on that machine?
I'm using:
Exec {
creates => "${zookeeper_path}/zookeeper/bin/zkServer.sh"
}
however all the other block are executed anyway. What is the best way? Checking existence of several files? I don't want to untar and recompile all the modules when puppet check for changes.
EDIT:
The installation process consists of several steps:
- fetch
tar.gz
package - untar package
- create several config files
- create service
- ensure service is running