Hi Stella,
my first thought goes to implement a ENC script. Since you are already
keeping inventory data in a database, you could keep everything in one
place. If it is possible to add puppet support, in practice, make it
possible to assign puppet classes to your nodes in your sybase setup.
If that is not possible, I would look at a hiera backend getting the
info from your sybase database.
Keep in mind that it is the puppet master that needs the info from your
sybase database, so facts is not really an option.
(technically you can, but then every node needs access to your database,
but your master can get the needed info also, only keep in mind your
master identifies the nodes with the 'clientcert' or 'certname'.
Personally, I would go for the ENC first place, hiera in second, but
facts is a no-go.
hth a bit
jo
On 20/10/14 19:27, Stella wrote:
Hi,
I am using Puppet 3.62. Trying to figure out what is the best way to
connect to my sybase database to query machine information.
Which is better:
1. Define facts that will connect to my sybase and do the query.
2. Use Hiera to connect to my sybase and do the query.
Anyone has any example to share?
Thanks!
Stella
--
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+unsubscr...@googlegroups.com
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/69fa9702-708a-442c-803c-1b3bead7ab2f%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/69fa9702-708a-442c-803c-1b3bead7ab2f%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013/2014 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
Next Events:
Puppet Introduction Course |
http://www.open-future.be/puppet-introduction-course-13th-october
Puppet Practitioner Training |
http://www.open-future.be/puppet-practitioner-former-puppet-advanced-training-14-till-16th-october
Linux Training | http://www.open-future.be/linux-training-20-till-24th-october
Puppet Introduction Course |
http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training |
http://www.open-future.be/puppet-fundamentals-training-12-till-14th-november
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/54458051.3060704%40open-future.be.
For more options, visit https://groups.google.com/d/optout.