puppetcamp sea @ blk 71 - what's new in puppet db
DESCRIPTION
Nick Lewis, who came down to Singapore all the way from the Puppet Labs headquarters in Portland, Oregon, is one of the first developers at Puppet Labs and also actively develops Puppet DB. He gave a very interesting talk and demonstration about how Puppet DB work as well as its latest updates.TRANSCRIPT
![Page 2: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/2.jpg)
What's Old in PuppetDB?
![Page 3: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/3.jpg)
PuppetDB 1.0
● Open-source data storage service
![Page 4: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/4.jpg)
PuppetDB 1.0
● Open-source data storage service● Replacement for ActiveRecord storeconfigs and
inventory service
![Page 5: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/5.jpg)
PuppetDB 1.0
● Open-source data storage service● Replacement for ActiveRecord storeconfigs and
inventory service● Catalogs and facts
![Page 6: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/6.jpg)
PuppetDB 1.0
● Open-source data storage service● Replacement for ActiveRecord storeconfigs and
inventory service● Catalogs and facts● Focused on performance and correctness
![Page 7: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/7.jpg)
PuppetDB 1.0
● Open-source data storage service● Replacement for ActiveRecord storeconfigs and
inventory service● Catalogs and facts● Focused on performance and correctness
○ Written in Clojure on the JVM
![Page 8: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/8.jpg)
PuppetDB 1.0
● Open-source data storage service● Replacement for ActiveRecord storeconfigs and
inventory service● Catalogs and facts● Focused on performance and correctness
○ Written in Clojure on the JVM○ Backed by PostgreSQL
![Page 9: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/9.jpg)
PuppetDB 1.0
● Open-source data storage service● Replacement for ActiveRecord storeconfigs and
inventory service● Catalogs and facts● Focused on performance and correctness
○ Written in Clojure on the JVM○ Backed by PostgreSQL○ Internal ActiveMQ provides asynchrony
![Page 10: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/10.jpg)
PuppetDB 1.0 data lifecycle
![Page 11: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/11.jpg)
PuppetDB 1.0 data lifecycle
1) Puppet sends facts to PuppetDB
Puppetmaster PuppetDB
Facts
![Page 12: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/12.jpg)
PuppetDB 1.0 data lifecycle
2) Puppet collects resources from PuppetDB
PuppetDBPuppetmaster
Resources
![Page 13: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/13.jpg)
PuppetDB 1.0 data lifecycle
1) Puppet sends catalog to PuppetDB
Puppetmaster PuppetDB
Catalog
![Page 14: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/14.jpg)
PuppetDB 1.0 data lifecycle
4) PuppetDB has all the data!
Puppetmaster PuppetDB
CatalogFactsCatalogFacts
![Page 15: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/15.jpg)
PuppetDB 1.0 data lifecycle
5) Nick gives a talk about how great all that data is
data data data
PuppetDB yay
Nick
![Page 16: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/16.jpg)
PuppetDB 1.0 data lifecycle
6) You get inspired and try to use the data
PuppetDB
CatalogFactsCatalogFacts
You
![Page 17: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/17.jpg)
PuppetDB 1.0 data lifecycle
7) You give up and ask for help
You Internet user
datafactsdata
data?
![Page 18: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/18.jpg)
PuppetDB 1.0 data lifecycle
8) Sorry, what you want is impossible now, maybe later
You Internet user
datafactsdata
February?
![Page 19: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/19.jpg)
PuppetDB 1.0 data lifecycle
A tragedy in eight steps
You Internet user
datafactsdata
February?
![Page 20: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/20.jpg)
PuppetDB probably-1.1-but-maybe-2.0
● Open-source data retrieval service
![Page 21: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/21.jpg)
PuppetDB probably-1.1-but-maybe-2.0
● Query API v2○ Any query you can imagine○ Almost everything is one query○ Regular expressions○ Tested on real users
![Page 22: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/22.jpg)
PuppetDB probably-1.1-but-maybe-2.0
● Storage of reports (experimental)○ Just another Puppet report processor○ Configurable data retention period○ Also queryable, but not as much yet
![Page 23: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/23.jpg)
PuppetDB probably-1.1-but-maybe-2.0
● Storage of reports (experimental)○ Just another Puppet report processor○ Configurable data retention period○ Also queryable, but not as much yet
![Page 24: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/24.jpg)
PuppetDB probably-1.1-but-maybe-2.0
● Exporable, RESTful API○ Data should be fun○ Perfect for answering simple questions○ Great for making charts○ Plays well with jgrep
![Page 25: PuppetCamp SEA @ Blk 71 - What's New in Puppet DB](https://reader034.vdocuments.mx/reader034/viewer/2022052621/5583f9afd8b42aa82c8b49f1/html5/thumbnails/25.jpg)
● links.puppetlabs.com/puppetdb-trello● github.com/puppetlabs/puppetdb
What's coming up?