Paste P6509

(An Untitled Masterwork)
ActivePublic

Authored by Paladox on Dec 31 2017, 8:57 PM.
1​root@puppet-phabricator:/home/paladox# curl -G 'http://localhost:8080/v2/facts' --data-urlencode 'query=["and",["~","certname","puppetdb?"],["or",["=","name","ipaddress"],["=","name","hostname"]]]'
2​[ {
3​ "value" : "puppetdb-phabricator1",
4​ "name" : "hostname",
5​ "certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
6​}, {
7​ "value" : "10.68.19.157",
8​ "name" : "ipaddress",
9​ "certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
10​} ]root@puppet-phabricator:/home/paladox# curl -G 'http://localhost:8080/v2/fact--data-urlencode 'query=["and",["~","certname","p?"],["or",["=","name","ipaddress"],["=","name","hostname"]]]'
11​[ {
12​ "value" : "puppet-phabricator",
13​ "name" : "hostname",
14​ "certname" : "puppet-phabricator.phabricator.eqiad.wmflabs"
15​}, {
16​ "value" : "phabricator",
17​ "name" : "hostname",
18​ "certname" : "phabricator.phabricator.eqiad.wmflabs"
19​}, {
20​ "value" : "phab-tin",
21​ "name" : "hostname",
22​ "certname" : "phab-tin.phabricator.eqiad.wmflabs"
23​}, {
24​ "value" : "puppetdb-phabricator1",
25​ "name" : "hostname",
26​ "certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
27​}, {
28​ "value" : "10.68.22.46",
29​ "name" : "ipaddress",
30​ "certname" : "puppet-phabricator.phabricator.eqiad.wmflabs"
31​}, {
32​ "value" : "10.68.20.184",
33​ "name" : "ipaddress",
34​ "certname" : "phabricator.phabricator.eqiad.wmflabs"
35​}, {
36​ "value" : "10.68.18.56",
37​ "name" : "ipaddress",
38​ "certname" : "phab-tin.phabricator.eqiad.wmflabs"
39​}, {
40​ "value" : "10.68.19.157",
41​ "name" : "ipaddress",
42​ "certname" : "puppetdb-phabricator1.phabricator.eqiad.wmflabs"
43​} ]
Paladox created this paste.Dec 31 2017, 8:57 PM