CloudFormation/puppet/hiera integration..

117 views
Skip to first unread message

linux...@gmail.com

unread,
Apr 1, 2014, 4:09:51 PM4/1/14
to puppet...@googlegroups.com
  Hello all, thanx in advance for listening to my sniffles as I am failing at solving this problem.

  I have CloudFormation template that builds out some servers.  I have parameterized a few values like. DatabseName DataBaseUser DataBaseLocation and some others.  The problem I seem to be faced with is getting these values to puppet to perform the correct configuration steps.  I had a pretty good idea about how I could accomplish this, and then someone introduced .yaml files as part of hiera..  While I am not that impressed with hiera, it seems to introduce a-lot of static environment files to manage.  This is not a road our team wants to travel down.  If I am wrong about this I am certainly open to enlightenment, but from what I have read and witnessed, it's static.

 So here I am, I have this CF template that asks for parameters that I need puppet to use for configuration.  Does anyone have any suggestions as I read on through all this documentation?


 Thanks,

J

Nathan Valentine

unread,
Apr 1, 2014, 5:01:02 PM4/1/14
to puppet...@googlegroups.com
Hiera allows multiple backends, YAML being one and also being the one
with which most people start, some of which can be non-static. If you
Google for Craig Dunn's blog you'll see an example where he uses a
backend which enables Hiera data retrieval from a CouchDB backend.
That particular example is one of my favorites examples of the
flexibility of Hiera.

As to how to get CF data into Puppet, I've not used CF enough to
venture a solid guess but the first thing I would do is look to see if
someone has a Forge module which presents user data as facter
variables. In the case of AWS/EC2 facts this is done, if memory
serves, via a Type and Provider that queries the 169.x node metadata
service embedded in AWS/EC2.

Feel free to let me know how that goes via direct email. I rarely have
time to keep up with the mailing list.

Cheers.
> --
> 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/7d2b3b5a-87b5-4078-bff1-ab3e0ed49388%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
---
Nathan Valentine, Puppet Labs Professional Services

Join us at PuppetConf 2014, September 23-24 in San Francisco -
http://puppetconf.com

Nathan Valentine

unread,
Apr 1, 2014, 5:02:23 PM4/1/14
to puppet...@googlegroups.com
> variables. In the case of AWS/EC2 facts this is done, if memory
> serves, via a Type and Provider that queries the 169.x node metadata
> service embedded in AWS/EC2.

Sorry, perils of multitasking... s/Type and Provider that/series of
custom facts which/g.

José Luis Ledesma

unread,
Apr 1, 2014, 5:08:20 PM4/1/14
to puppet...@googlegroups.com

Hiera is really great, but if you have to configure diferent parameters per host the yaml backend could be a nightmare..

Note that i  talk about the backend, you can switch it to a nosql database ( couchdb, redis) or sql( mysql) or ldap ...

Regards,

--
Reply all
Reply to author
Forward
0 new messages