I feel like I should chime in on facter --puppet vs puppet facts. I run Puppet in a nonroot environment, and I don't use the default location for puppet.conf. As a result whenever I run puppet I also pass --config=path. Facter, even with -p, doesn't look for a --puppet-config=path option which means I don't get pluginsync'd facts, external or otherwise. I imagine that a puppet fact face would properly load the puppet config file and would help solve my problem.
On Thu, Sep 26, 2013 at 12:20 PM, Luke Kanies <[email protected]> wrote: > On Sep 26, 2013, at 2:44 PM, Ryan Coleman <[email protected]> wrote: > > > On Thu, Sep 26, 2013 at 6:45 AM, Andy Parker <[email protected]> wrote: > >> Agreed, the last thing that is needed is to present a solution that we >> say is to make things "easier" and then have people start the simple case >> by having to learn an abstract language expressed in data structures :) >> >> How about a hybrid approach: >> >> myfacts.sh >> myfacts.meta >> >> where meta can still contain the description, confine, etc. However >> instead of immediately forcing the author to write s-expressions they can >> do a simplified version as you propose. That way, we can start with the >> simple equality matching (that is what a hash as the value of the confine >> means), and grow to the full expressions (which would be arrays at the >> value of the confine) if the need arises. >> > > I'm a little concerned about the complexity being proposed here, even in > this slightly more reserved hybrid approach. Extending pluginsync to > shuffle external fact scripts around seems reasonable enough but I'm > unconvinced that it's right to add what equates to metadata for each fact > in order to achieve it. External facts are meant to be a simple interface, > right? > > How often would you reasonably need to confine an external fact script > like that? At this point, what's wrong with the tiny overhead of a real > ruby Fact? > > > Also note that the original 'confine' was more about resolution mechanisms > than facts. That is, every OS has a different way of determining the > hostname, so I wanted to restrict those ways to the systems on which they > would work. > > Here we're talking about facts themselves, not different ways of > retrieving them, so the use of confine would be changing a bit. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-dev. > For more options, visit https://groups.google.com/groups/opt_out. > -- Spencer Krum (619)-980-7820 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev. For more options, visit https://groups.google.com/groups/opt_out.
