[mshaik@puppetdb ~]$ curl -X GET http://localhost:8080/v3/facts/swapsize --data-urlencode 'query=["=", "value", "0.00 MB"]' [ { "value" : "0.00 MB", "name" : "swapsize", "certname" : "elk.c.rich-operand-154505.internal" } ] [root@puppetdb ~]# curl -X GET http://localhost:8080/v3/facts/role/puppetdb [ { "value" : "puppetdb", "name" : "role", "certname" : "puppetdb.puppethub.in" } ] [root@puppetdb ~]# curl -X GET http://localhost:8080/v3/facts/role --data-urlencode 'query=["=", "value", "puppetdb"]' [ … Continue reading puppetdb query
Day: February 6, 2017
puppetdb(postgres)
[root@puppetdb ~]# sudo -u postgres psql postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -----------+----------+----------+---------+-------+----------------------- postgres | postgres | UTF8 | en_IN | en_IN | puppetdb | postgres | UTF8 | en_IN | en_IN | =T/postgres + | | | | | postgres=CTc/postgres+ | | | … Continue reading puppetdb(postgres)
