
Puppet is an excellent configuration automation scripting language that is really flexible and effective,
In a puppet manifest if you are not running your script in the default puppet directory you may need to get the current Manifest location where its running from, So this can be easily achieved by embedding a ruby code snippets within the manifest it self. The code will look like the following.
$var1 = inline_template("<%= Dir.pwd %>")
notice...