On Tue, Mar 19, 2013 at 6:03 PM, Steffen Vulpius
<steffen.vulp...@gmail.com> wrote:

> I have a file foo.sh which is basically a library of various bash functions.
> Is there a way to execute these functions from puppet

Correct me if I'm wrong, but you have a file foo.sh, that defines a
bash function called bar, and you want to execute bar from inside a
puppet exec resource?

I don't think that as such is possible. One creative thing that you
might be able to do (I haven't tested this at all) is to make a bunch
of symlinks to foo.sh (bar, baz, whatever) for the functions in your
library, and in the main part, look at $0 to see what you should do.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to