This message was deleted.
# forge-modules
s
This message was deleted.
e
If, of course, there's no function already available. I searched where I suspected this would be and found nothing.
l
what exactly are you trying to do, for the most part if people need data from an executable they write a fact, which is under 10 lines of ruby or bash/python/etc
e
My exact need is to find the correct apxs path to run configure inside my module https://www-git.prevnet/puppet/gnu_build_system. I thought, instead of writing specific code for this single command, to have a general function.
A custom fact is a solution too, but it would run on every agent run, and I'd like to avoid piling up executions. Specially this one, that would be required in a small minority of agent runs.
Curious: do people write a custom fact, with close to the same code, for every executable path they need to find?
l
so, for that, I would say instead of a stdlib module, I'd build it into the puppet module for apache itself
or into a puppet module for your apache module
e
OK. So the bottomline is that generalizing such query isn't a good idea. Since this is a need for apache module to install mod_jk, would the better place for that be the Apache module itself?
l
it's not a bad choice, but the other question is, is building it on all the servers a better choice then building an rpm/dpkg and installing it
and using a build server separate from everything else
then puppet just manages the package
e
Surely not. In fact, I wrote gnu_build_system module against my own will, having in mind exacly what you said, but facing management difficulties on building the package.
l
😞 I know debian packages mod_jk
redhat packages it for jboss
e
Yeah, this deserves a new try on the bosses here
As a workaround, I just used '--with-apxs=`command -v apxs`' with success
In the "configure" exec
l
that seems like a good choice
e
Well, that does it. @Lumiere, thanks a lot for the insights!
l
glad I could help, it's easy to lose sight of KISS with configuration management
I'm just as guilty as anyone else