Interesting...

This fact returned using PuppetDB API query only after I run puppet agent 
-t manually.
I believe this fact should appear after usual puppet agent daemon run 
(every 10 minutes), but it doesn't.

And what is more interesting - those entries disappear after a while. Looks 
like some expiration procedure in action?

$ curl -X GET -H 'Accept: application/json' http://puppetdb:8080/v2/facts 
--data-urlencode 'query=["=", "name", "appenvironment"]'
[ {
  "certname" : "web0.local",
  "name" : "appenvironment",
  "value" : "production"
}, {
  "certname" : "web98.local",
  "name" : "appenvironment",
  "value" : "production"
}, {
  "certname" : "web99.local",
  "name" : "appenvironment",
  "value" : "production"
} ]

After a while:

$ curl -X GET -H 'Accept: application/json' http://puppetdb:8080/v2/facts 
--data-urlencode 'query=["=", "name", "appenvironment"]'
[ {
  "certname" : "web97.local",
  "name" : "appenvironment",
  "value" : "production"
}, {
  "certname" : "web98.local",
  "name" : "appenvironment",
  "value" : "production"
} ]

And one more time:
$ curl -X GET -H 'Accept: application/json' http://puppetdb:8080/v2/facts 
--data-urlencode 'query=["=", "name", "appenvironment"]'
[ {
  "certname" : "web97.local",
  "name" : "appenvironment",
  "value" : "production"
} ]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to