example42 / puppi

Puppet module to manage applications deployments and servers local management
http://www.example42.com
Other
142 stars 84 forks source link

Providing get_module_path() #67

Closed Freeaqingme closed 11 years ago

Freeaqingme commented 11 years ago

Hi @example42,

I'm prepping a PR for another module of yours. For this module, I require to have the absolute path to the module's directory (I'm implementing this strategy: http://jsosic.wordpress.com/2012/12/04/managing-ssh-host-keys-with-puppet/ , which uses generate()).

The puppetlabs stdlib provides this functionality, but I can imagine that you don't want to add an extra dependency. Therefore I copied the function from puppetlabs, and put it in this PR.

Licenses of both repos are the same.

alvagante commented 11 years ago

Actually I'm seriously considering to include the upstream stdlib in the modules set.