Re: [mcollective-users] mco query with nested facts filter

2017-03-20 Thread rakare2015
in facter 1.6.7, we are getting facts output as below, uptime => 135 days uptime_days => 135 uptime_hours => 3259 uptime_seconds => 11735064 so we can use this as facts filter in mco query. On Tuesday, March 21, 2017 at 10:31:08 AM UTC+5:30, michael.smith wrote: > > > > On Mon, Mar 20, 2017 at

Re: [mcollective-users] mco query with nested facts filter

2017-03-20 Thread Michael Smith
On Mon, Mar 20, 2017 at 9:07 PM wrote: > yes please. > > Michael, > > By downgrading I can get facts in non nested structure and can be used to > with mco query facts filter. > > $ facter --version 2.4.6 $ facter ... system_uptime => {"seconds"=>3672217, "hours"=>1020,

Re: [mcollective-users] mco query with nested facts filter

2017-03-20 Thread rakare2015
yes please. Michael, By downgrading I can get facts in non nested structure and can be used to with mco query facts filter. On Wednesday, March 15, 2017 at 11:58:37 PM UTC+5:30, R.I.Pienaar wrote: > > > > On Wed, Mar 15, 2017, at 18:48, Michael Smith wrote: > > PUP-6040

Re: [mcollective-users] mco query with nested facts filter

2017-03-15 Thread R.I.Pienaar
On Wed, Mar 15, 2017, at 18:48, Michael Smith wrote: > PUP-6040 was talking > about > using this for 'puppet facts'. > #puppet-dev gave some .pp code to do it, easy to port https://puppetcommunity.slack.com/files/thrnio/F4JCD81L2/-.pp I'll

Re: [mcollective-users] mco query with nested facts filter

2017-03-15 Thread Michael Smith
PUP-6040 was talking about using this for 'puppet facts'. On Tue, Mar 14, 2017 at 11:11 AM Michael Smith wrote: > On Tue, Mar 14, 2017 at 11:07 AM R.I.Pienaar wrote: > > > > On Tue, Mar 14, 2017, at

Re: [mcollective-users] mco query with nested facts filter

2017-03-14 Thread R.I.Pienaar
On Tue, Mar 14, 2017, at 18:59, Michael Smith wrote: > That flattened view matches approaches we've discussed using elsewhere. > That certainly seems reasonable. yeah and facter.soon will have a flattened output of its own too with all the tools more or less supporting this I wonder if there's

Re: [mcollective-users] mco query with nested facts filter

2017-03-14 Thread Michael Smith
That flattened view matches approaches we've discussed using elsewhere. That certainly seems reasonable. On Tue, Mar 14, 2017 at 10:57 AM R.I.Pienaar wrote: > > > On Tue, Mar 14, 2017, at 18:49, Michael Smith wrote: > > I'm not sure how downgrading addresses your issue.

Re: [mcollective-users] mco query with nested facts filter

2017-03-14 Thread Michael Smith
I'm not sure how downgrading addresses your issue. Downgrading Facter version will just remove the new structured facts, but none of the old facts are missing in Facter 2.4.6. You can still query uptime_days, uptime_hours, uptime_seconds. On Mon, Mar 13, 2017 at 10:09 AM Ravi Kumar

Re: [mcollective-users] mco query with nested facts filter

2017-03-13 Thread Ravi Kumar
np. Is there any way with this one without doing downgrade? On Mon, Mar 13, 2017 at 10:31 PM, Michael Smith wrote: > > > On Sat, Mar 11, 2017 at 11:36 PM wrote: > >> Am using facter version 2.4.6 and it says invalid option. >> >>

Re: [mcollective-users] mco query with nested facts filter

2017-03-13 Thread Michael Smith
On Sat, Mar 11, 2017 at 11:36 PM wrote: > Am using facter version 2.4.6 and it says invalid option. > > [root@mco-console ~]# facter --show-legacy > invalid option: --show-legacy > [root@mco-console ~]# facter --version > 2.4.6 > [root@mco-console ~]# > > Ah, I should've

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
Am using facter version 2.4.6 and it says invalid option. [root@mco-console ~]# facter --show-legacy invalid option: --show-legacy [root@mco-console ~]# facter --version 2.4.6 [root@mco-console ~]# Regards Ravi On Sunday, March 12, 2017 at 12:36:08 PM UTC+5:30, michael.smith wrote: > > The

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread R.I.Pienaar
On Sun, Mar 12, 2017, at 07:50, rakare2...@gmail.com wrote: > ohh.. Then I may have to downgrade the facter to little lower version > make > use of all the facts through mcollective. > > Do you think any solution for this with the latest facts version with > nested structure? If not then the

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
ohh.. Then I may have to downgrade the facter to little lower version make use of all the facts through mcollective. Do you think any solution for this with the latest facts version with nested structure? If not then the only way to downgrade it. Regards Ravi On Sunday, March 12, 2017 at

Re: [mcollective-users] mco query with nested facts filter

2017-03-11 Thread rakare2015
hmmm. so you meant to say there is no way to filter with nested facts right? But found something on https://tickets.puppetlabs.com/browse/MCO-363 and not sure if this something what am expecting. Thanks Ravi On Saturday, March 11, 2017 at 11:25:24 PM UTC+5:30, R.I.Pienaar wrote: > > > >