Paste P6509

(An Untitled Masterwork)
ActivePublic

Authored by Paladox on Dec 31 2017, 8:57 PM.
root@puppet-phabricator:/home/paladox# curl -G 'http://localhost:8080/v2/facts' --data-urlencode 'query=["and",["~","certname","puppetdb?"],["or",["=","name","ipaddress"],["=","name","hostname"]]]'
[ {
"value" : "puppetdb-phabricator1",
"name" : "hostname",
"certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
}, {
"value" : "10.68.19.157",
"name" : "ipaddress",
"certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
} ]root@puppet-phabricator:/home/paladox# curl -G 'http://localhost:8080/v2/fact--data-urlencode 'query=["and",["~","certname","p?"],["or",["=","name","ipaddress"],["=","name","hostname"]]]'
[ {
"value" : "puppet-phabricator",
"name" : "hostname",
"certname" : "puppet-phabricator.phabricator.eqiad.wmflabs"
}, {
"value" : "phabricator",
"name" : "hostname",
"certname" : "phabricator.phabricator.eqiad.wmflabs"
}, {
"value" : "phab-tin",
"name" : "hostname",
"certname" : "phab-tin.phabricator.eqiad.wmflabs"
}, {
"value" : "puppetdb-phabricator1",
"name" : "hostname",
"certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
}, {
"value" : "10.68.22.46",
"name" : "ipaddress",
"certname" : "puppet-phabricator.phabricator.eqiad.wmflabs"
}, {
"value" : "10.68.20.184",
"name" : "ipaddress",
"certname" : "phabricator.phabricator.eqiad.wmflabs"
}, {
"value" : "10.68.18.56",
"name" : "ipaddress",
"certname" : "phab-tin.phabricator.eqiad.wmflabs"
}, {
"value" : "10.68.19.157",
"name" : "ipaddress",
"certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
} ]
Paladox created this paste.Dec 31 2017, 8:57 PM