# Module Puppetdb

**URL:** <https://community.icinga.com/t/module-puppetdb/101>\
**Category:** Icinga Web Modules\
**Created:** [January 9, 2019, 1:27pm UTC](https://community.icinga.com/t/module-puppetdb/101 "2019-01-09T13:27:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dokon](https://community.icinga.com/user_avatar/community.icinga.com/dokon/32/26_2.png) [@dokon](https://community.icinga.com/u/dokon)\
**Post date:** [January 9, 2019, 1:27pm UTC](https://community.icinga.com/t/module-puppetdb/101/1 "2019-01-09T13:27:14Z")

</div>

![](https://community.icinga.com/uploads/default/original/1X/5e3b4c56c1901d778b2d1add1934b79c29d92c70.png)

## **About**

The Puppetdb Module provides the extended capability for the Director module to add an Puppetdb as an import source for the director.

* * *

## **Installation**

The module can be found [here](https://github.com/Icinga/icingaweb2-module-puppetdb)

The Instructions on how to install the module can be found [here](https://github.com/Icinga/icingaweb2-module-puppetdb/blob/master/doc/01-Installation.md)

* * *

## **Additional Info**

Information how to use the import source can be found [here](https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/70-Import-and-Sync.md)

* * *

## **To Do’s**

We would also like to know how you use the Puppetdb module to import your hosts and services into your environment so please share it with us.

In written 📖 form or even as a screencast in 📹 visual form

---

<div class="post-metadata">

**Author:** ![linuxmail](https://community.icinga.com/user_avatar/community.icinga.com/linuxmail/32/771_2.png) [@linuxmail](https://community.icinga.com/u/linuxmail)\
**Post date:** [May 24, 2019, 12:03pm UTC](https://community.icinga.com/t/module-puppetdb/101/2 "2019-05-24T12:03:49Z")

</div>

hi,

since Icinga2 supports the proxy CA, we have four PuppetDBs in different locations (and networks):

- Linode
- Datacenter 1
- Datacenter 2
- Office

With VPN, we made it possible, that the Director is able to connect to all PostgreSQL servers to fetch all nodes. So we have four sources and for all of them, we have sync rules. Two of the most important rules are:

1. Set host.zone, which is a Puppet fact from facts.datacenter
2. Add host templates for imports, out of the facts.role (which is a stripped hostname, like dc1-rack-mariadb-01. So the facts.role is mariadb)

We have a lot of them, all assigned via the PuppetDB Director module. We have a lot of rules too, to set many host.vars, like block devices, to assign rules for Samsung SSD smarts, or Crucial (Which brings it own check tool) and many many more.
