Exported resources in Puppet 4 without using PuppetDB?

114 views
Skip to first unread message

Johnson Earls

unread,
Dec 16, 2016, 5:52:48 PM12/16/16
to Puppet Users
Hello all,

I was just wondering - has anyone come across a plugin or something that would allow the use of exported resources in Puppet 4.x without using PuppetDB?  The company I work for has declared PostgreSQL taboo within the corporate network and so I cannot run PuppetDB, and the lack of exported resources is really starting to grate.  I'm hoping someone has seen something out there that can help solve this for me :)

Thanks in advance,
- Johnson

Lowe Schmidt

unread,
Dec 17, 2016, 7:09:47 AM12/17/16
to puppet...@googlegroups.com
Sorry, but no. I'm quite sure that PuppetDB (and Postgres) is a hard dependency for exported resources. 

--
Lowe Schmidt | +46 723 867 157

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/95a0f132-7b41-4158-af41-8a9785646aa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trevor Vaughan

unread,
Dec 18, 2016, 12:50:18 PM12/18/16
to puppet...@googlegroups.com
Hi Johnson,

Do you have any information on why PostgreSQL is taboo? It might help to justify supporting additional back-end databases.

To solve your exported resources problem, you can use this as an example https://github.com/simp/pupmod-simp-ssh/blob/master/lib/puppet/parser/functions/ssh_global_known_hosts.rb.

Now, be aware that this will *not* synchronize between multiple servers but, if you have a single master, it will work just fine. Alternatively, if you have a shared filesystem it will also work.

We're working toward revamping these types of items to use a shared synchronization system but it's not high priority at this time since most places can use PuppetDB.

A better bet might be to take this snippet and turn it into something that writes to a DB that you control and then have a Hiera backend that feeds your your data as collected from that backend on a regular basis.

In Puppet functions, you have the entire catalog at your disposal and can do with the data what you will.

Good Luck,

Trevor

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/95a0f132-7b41-4158-af41-8a9785646aa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Trevor Vaughan
Vice President, Onyx Point, Inc

-- This account not approved for unencrypted proprietary information --

Johnson Earls

unread,
Dec 18, 2016, 1:14:08 PM12/18/16
to Puppet Users
Trevor: PostgreSQL is considered a competing product.  We're not allowed to use competing products without getting approval from the corporate information security group, legal, marketing, and a high level corporate officer (I don't remember how high off the top of my head, but at least 4 levels above my manager), and it's a process that takes months to go through.


On Sunday, December 18, 2016 at 9:50:18 AM UTC-8, Trevor Vaughan wrote:
Hi Johnson,

Do you have any information on why PostgreSQL is taboo? It might help to justify supporting additional back-end databases.

To solve your exported resources problem, you can use this as an example https://github.com/simp/pupmod-simp-ssh/blob/master/lib/puppet/parser/functions/ssh_global_known_hosts.rb.

Now, be aware that this will *not* synchronize between multiple servers but, if you have a single master, it will work just fine. Alternatively, if you have a shared filesystem it will also work.

We're working toward revamping these types of items to use a shared synchronization system but it's not high priority at this time since most places can use PuppetDB.

A better bet might be to take this snippet and turn it into something that writes to a DB that you control and then have a Hiera backend that feeds your your data as collected from that backend on a regular basis.

In Puppet functions, you have the entire catalog at your disposal and can do with the data what you will.

Good Luck,

Trevor
On Fri, Dec 16, 2016 at 5:52 PM, Johnson Earls <darkfo...@gmail.com> wrote:
Hello all,

I was just wondering - has anyone come across a plugin or something that would allow the use of exported resources in Puppet 4.x without using PuppetDB?  The company I work for has declared PostgreSQL taboo within the corporate network and so I cannot run PuppetDB, and the lack of exported resources is really starting to grate.  I'm hoping someone has seen something out there that can help solve this for me :)

Thanks in advance,
- Johnson

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

Jo Rhett

unread,
Dec 18, 2016, 2:46:43 PM12/18/16
to puppet...@googlegroups.com
Consider listing PuppetDB as a single application, not as an app and database. Closed box, vendor integrated data management.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.

Rob Nelson

unread,
Dec 18, 2016, 4:47:33 PM12/18/16
to puppet...@googlegroups.com
Agreed: it's a service, you won't be playing with the Postgres nerd knobs very much, if at all.

On Sun, Dec 18, 2016 at 2:46 PM Jo Rhett <jrh...@netconsonance.com> wrote:
Consider listing PuppetDB as a single application, not as an app and database. Closed box, vendor integrated data management.
On Fri, Dec 16, 2016 at 2:52 PM, Johnson Earls <darkfo...@gmail.com> wrote:
Hello all,

I was just wondering - has anyone come across a plugin or something that would allow the use of exported resources in Puppet 4.x without using PuppetDB?  The company I work for has declared PostgreSQL taboo within the corporate network and so I cannot run PuppetDB, and the lack of exported resources is really starting to grate.  I'm hoping someone has seen something out there that can help solve this for me :)

Thanks in advance,
- Johnson








--


You received this message because you are subscribed to the Google Groups "Puppet Users" group.


To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
--


You received this message because you are subscribed to the Google Groups "Puppet Users" group.


To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CABj%3DmDxLppsZPhcUSg_SAof%2BTxTPkZFi15SGcvLkmWNSAm9xRQ%40mail.gmail.com.



For more options, visit https://groups.google.com/d/optout.


--
Rob Nelson

Trevor Vaughan

unread,
Dec 18, 2016, 9:16:32 PM12/18/16
to puppet...@googlegroups.com
Fair enough. It's good to know just in case something can be done.

In this case, I don't think there's much of a choice.

However, if it is a competing product, I don't think that the PuppetDB project would reject a PR for support for your internal project. It might be faster than getting approval from on high!

Thanks,

Trevor

To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7966276a-e6d6-4447-b2d3-6654667fd1e3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages