-
-
Save kbarber/18bbc392b8a1ae404380 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ken@kb puppetdb]# curl 'http://puppetdb1.vm:8080/v4/resources' | |
[ { | |
"tags" : [ "class", "default", "node" ], | |
"file" : null, | |
"type" : "Node", | |
"title" : "default", | |
"line" : null, | |
"resource" : "2a09158b9a8de9f8c0fdd600342bda5a3775752e", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "main", | |
"line" : null, | |
"resource" : "02eedf3d0c02cba430c3e9b147a69d9fa5d15c60", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "stage" ], | |
"file" : null, | |
"type" : "Stage", | |
"title" : "main", | |
"line" : null, | |
"resource" : "19f758a34555e7897f89df3f6f96f3c4a8185616", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "settings", "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "Settings", | |
"line" : null, | |
"resource" : "3fa48ecbd844cdfa4b6e5c5c699dfc8c9b452838", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "notify", "bob", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "bob", | |
"line" : 15, | |
"resource" : "da391e92b6815f1facc4bec1da35f3e519e015ca", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : true | |
}, { | |
"tags" : [ "remote", "notify", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "remote", | |
"line" : 12, | |
"resource" : "aed83a9f647808123eabfb59fce9e88eb5bf0a6f", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "puppetdb1.vm", "notify", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "puppetdb1.vm", | |
"line" : 13, | |
"resource" : "b7d88642038b69228d7b02acf0340fd6c386d089", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class", "file" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "File", | |
"title" : "/tmp/foo", | |
"line" : 10, | |
"resource" : "5a402dde476a1190ed30de9b2bc89cda19b5c5b5", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"content" : "asdfsdsdfsdf" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "foo", "notify", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "foo", | |
"line" : 6, | |
"resource" : "f4a3a7692cfd0b9503392257f9187a3e3a911a85", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"message" : "fact is: " | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "stage" ], | |
"file" : null, | |
"type" : "Stage", | |
"title" : "main", | |
"line" : null, | |
"resource" : "19f758a34555e7897f89df3f6f96f3c4a8185616", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "main", | |
"line" : null, | |
"resource" : "02eedf3d0c02cba430c3e9b147a69d9fa5d15c60", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "settings", "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "Settings", | |
"line" : null, | |
"resource" : "3fa48ecbd844cdfa4b6e5c5c699dfc8c9b452838", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class", "foobar", "notify" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "foobar", | |
"line" : 1, | |
"resource" : "2a763fb32da0a9aafcc6c643c64ac68d73f0242e", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "main", | |
"line" : null, | |
"resource" : "02eedf3d0c02cba430c3e9b147a69d9fa5d15c60", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "stage" ], | |
"file" : null, | |
"type" : "Stage", | |
"title" : "main", | |
"line" : null, | |
"resource" : "19f758a34555e7897f89df3f6f96f3c4a8185616", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "settings", "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "Settings", | |
"line" : null, | |
"resource" : "3fa48ecbd844cdfa4b6e5c5c699dfc8c9b452838", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { }, | |
"exported" : false | |
} ]% ruby-1.9.3-p547@puppetdb (git)-[1.6.x] | |
[ken@kb puppetdb]# ssh -l root pg1.vm | |
Linux pg1 3.14-1-amd64 #1 SMP Debian 3.14.4-1 (2014-05-13) x86_64 | |
The programs included with the Debian GNU/Linux system are free software; | |
the exact distribution terms for each program are described in the | |
individual files in /usr/share/doc/*/copyright. | |
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | |
permitted by applicable law. | |
Last login: Mon Apr 28 05:58:18 2014 from 192.168.182.1 | |
root@pg1:~# service postgresql stop | |
[ ok ] Stopping PostgreSQL 8.4 database server: main. | |
[ ok ] Stopping PostgreSQL 9.3 database server: main. | |
root@pg1:~# logout | |
Connection to pg1.vm closed. | |
ruby-1.9.3-p547@puppetdb (git)-[1.6.x] | |
[ken@kb puppetdb]# curl 'http://puppetdb1.vm:8080/v4/resources' | |
ruby-1.9.3-p547@puppetdb (git)-[1.6.x] | |
[ken@kb puppetdb]# ssh -l root pg1.vm | |
Linux pg1 3.14-1-amd64 #1 SMP Debian 3.14.4-1 (2014-05-13) x86_64 | |
The programs included with the Debian GNU/Linux system are free software; | |
the exact distribution terms for each program are described in the | |
individual files in /usr/share/doc/*/copyright. | |
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | |
permitted by applicable law. | |
Last login: Fri Jun 6 01:10:06 2014 from 192.168.182.1 | |
root@pg1:~# service postgresql start | |
[ ok ] Starting PostgreSQL 8.4 database server: main. | |
[ ok ] Starting PostgreSQL 9.3 database server: main. | |
root@pg1:~# logout | |
Connection to pg1.vm closed. | |
ruby-1.9.3-p547@puppetdb (git)-[1.6.x] | |
[ken@kb puppetdb]# curl 'http://puppetdb1.vm:8080/v4/resources' | |
[ { | |
"tags" : [ "class", "default", "node" ], | |
"file" : null, | |
"type" : "Node", | |
"title" : "default", | |
"line" : null, | |
"resource" : "2a09158b9a8de9f8c0fdd600342bda5a3775752e", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "main", | |
"line" : null, | |
"resource" : "02eedf3d0c02cba430c3e9b147a69d9fa5d15c60", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "stage" ], | |
"file" : null, | |
"type" : "Stage", | |
"title" : "main", | |
"line" : null, | |
"resource" : "19f758a34555e7897f89df3f6f96f3c4a8185616", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "settings", "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "Settings", | |
"line" : null, | |
"resource" : "3fa48ecbd844cdfa4b6e5c5c699dfc8c9b452838", | |
"environment" : "production", | |
"certname" : "puppetdb1.localdomain", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "notify", "bob", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "bob", | |
"line" : 15, | |
"resource" : "da391e92b6815f1facc4bec1da35f3e519e015ca", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : true | |
}, { | |
"tags" : [ "remote", "notify", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "remote", | |
"line" : 12, | |
"resource" : "aed83a9f647808123eabfb59fce9e88eb5bf0a6f", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "puppetdb1.vm", "notify", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "puppetdb1.vm", | |
"line" : 13, | |
"resource" : "b7d88642038b69228d7b02acf0340fd6c386d089", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class", "file" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "File", | |
"title" : "/tmp/foo", | |
"line" : 10, | |
"resource" : "5a402dde476a1190ed30de9b2bc89cda19b5c5b5", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"content" : "asdfsdsdfsdf" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "foo", "notify", "class" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "foo", | |
"line" : 6, | |
"resource" : "f4a3a7692cfd0b9503392257f9187a3e3a911a85", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"message" : "fact is: " | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "stage" ], | |
"file" : null, | |
"type" : "Stage", | |
"title" : "main", | |
"line" : null, | |
"resource" : "19f758a34555e7897f89df3f6f96f3c4a8185616", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "main", | |
"line" : null, | |
"resource" : "02eedf3d0c02cba430c3e9b147a69d9fa5d15c60", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "settings", "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "Settings", | |
"line" : null, | |
"resource" : "3fa48ecbd844cdfa4b6e5c5c699dfc8c9b452838", | |
"environment" : null, | |
"certname" : "puppetdb1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class", "foobar", "notify" ], | |
"file" : "/etc/puppet/manifests/site.pp", | |
"type" : "Notify", | |
"title" : "foobar", | |
"line" : 1, | |
"resource" : "2a763fb32da0a9aafcc6c643c64ac68d73f0242e", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { }, | |
"exported" : false | |
}, { | |
"tags" : [ "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "main", | |
"line" : null, | |
"resource" : "02eedf3d0c02cba430c3e9b147a69d9fa5d15c60", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "stage" ], | |
"file" : null, | |
"type" : "Stage", | |
"title" : "main", | |
"line" : null, | |
"resource" : "19f758a34555e7897f89df3f6f96f3c4a8185616", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { | |
"alias" : [ "main" ], | |
"name" : "main" | |
}, | |
"exported" : false | |
}, { | |
"tags" : [ "settings", "class" ], | |
"file" : null, | |
"type" : "Class", | |
"title" : "Settings", | |
"line" : null, | |
"resource" : "3fa48ecbd844cdfa4b6e5c5c699dfc8c9b452838", | |
"environment" : "production", | |
"certname" : "pg1.vm", | |
"parameters" : { }, | |
"exported" : false | |
} ]% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment