this is the most useful way to identify the fact names: mco inventory nodename | awk '/Facts:/','/^$/'
how are you populating the facts.yaml file? This is likely the cause of the problem.
grilled-cheese
with your cron job
although you’re about to get a PR on it
waiting 10 minutes to see if it works
ok, done
jorhett: the facts.yaml file is a valid yaml dump from facter
it also works on basic unstructured facts like ssldir
for some reason structured facts are special though
jorhett
I think the question is whether it's outputting strings or structured facts into the file. I had to write some code to handle both situations early last year...
so this works: mco find -S 'fact("os.family").value=RedHat'
but it appears that "mco facts" not so much
gutocarvalho has quit
grilled-cheese
in puppet 3 that wasn’t as huge an issue, but with 4 structured facts are the way forward
jorhett nods
jorhett
Looks like I know what PR I'm working on this weekend :(
gutocarvalho joined the channel
unfortunately I'm using Chef at $dayjob and facts-ohai supports structured facts just fine
grilled-cheese
yeah… sorry
I’ve created a bunch of work for you with the mco PR and the merge with voxpupuli
ircuser-1 joined the channel
jorhett
so how much is the PR you sent me hurting you? If it's seriously getting in your way, I could prioritize it. If you're just playing around, I might prefer that you test the new merged version
grilled-cheese
It’s not phasing me at the moment, but I’m trying to tidy up my PoC, get security officer signoff, and expand into production all before leaving my current job next month
at the moment, I’m using my cronjob PR branch in my environment with R10k
finding this facts bug was an accident of trying to validate mco was setup properly before moving on to authorization and wiring it up to my puppet deployment scripts
I’m glad it isn’t just me though
I’ve chased it a while today trying to figure out what I’d done wrong
whenry has quit
gutocarvalho has quit
m0xr99 has quit
jorhett
yeah, the output of inventory pipe awk facts is the hint
I knew I was using them, but I had to go lookup how
kpease joined the channel
grilled-cheese
That’s a workaround, but it puts more load on the middleware and client where it should be a simple distributed server load