Re: [Puppet Users] r10k database backend

2016-01-26 Thread Christopher Wood
On Mon, Jan 25, 2016 at 03:25:03PM -0800, Patrick Lesher wrote:
>Has anyone thought about or tried to have r10k run against a mysql backend
>to populate at least the information the puppetfile gives?

Not quite the same problem or solution, but we use basemodulepath to keep a 
common set of modules in a single environment. This also helps r10k do less 
work since it's not rolling out copies of the same module to multiple 
environments.

basemodulepath = /etc/puppet/r10k/common/modules

In practice this means that some environments drift over time, but only in 
modules with large amounts of configuration changes (MTA, httpd) and the 
environments which are principally about those modules' services. 

>Updating each puppetfile for a large number of “Environments” can be
>burdonsome when we have to update the version on a number of modules.  We
>already have all of our hiera data in a mysql backend and would like to
>try to simplify some processes.
> 
>Thanks,
>Patrick
> 
>--
>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 [1]puppet-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>
> [2]https://groups.google.com/d/msgid/puppet-users/4733e1e7-734b-4a13-8bea-c8942a988c40%40googlegroups.com.
>For more options, visit [3]https://groups.google.com/d/optout.
> 
> References
> 
>Visible links
>1. mailto:puppet-users+unsubscr...@googlegroups.com
>2. 
> https://groups.google.com/d/msgid/puppet-users/4733e1e7-734b-4a13-8bea-c8942a988c40%40googlegroups.com?utm_medium=email&utm_source=footer
>3. https://groups.google.com/d/optout

-- 
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/20160126192422.GA20518%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] r10k database backend

2016-01-25 Thread Garrett Honeycutt
On 1/25/16 6:25 PM, Patrick Lesher wrote:
> Has anyone thought about or tried to have r10k run against a mysql
> backend to populate at least the information the puppetfile gives?
> 
> Updating each puppetfile for a large number of “Environments” can be
> burdonsome when we have to update the version on a number of modules.
>  We already have all of our hiera data in a mysql backend and would like
> to try to simplify some processes.
> 
> Thanks,
> Patrick
> 
> -- 
> 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/4733e1e7-734b-4a13-8bea-c8942a988c40%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

Hi Patrick,

Without modifying r10k, you could generate the Puppetfile from data in
your database. Keeping the information in a file under revision control
buys you all the nice things related to using a VCS. What is the
motivation of using a database backend? I'm curious as to the problems
you encounter using the normal method of storing your Puppetfile in a
git repo.

Best regards,
-g

-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
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/56A6D41D.6060806%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] r10k database backend

2016-01-25 Thread Patrick Lesher
Has anyone thought about or tried to have r10k run against a mysql backend 
to populate at least the information the puppetfile gives?

Updating each puppetfile for a large number of “Environments” can be 
burdonsome when we have to update the version on a number of modules.  We 
already have all of our hiera data in a mysql backend and would like to try 
to simplify some processes.

Thanks,
Patrick

-- 
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/4733e1e7-734b-4a13-8bea-c8942a988c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.