Re: [Puppet Users] Is there a more elegant way of declaring this variable and its value?

2015-10-06 Thread Joao Morais
On 05/10/15 19:48, Henrik Lindberg wrote: On 2015-05-10 8:51, Fabien Delpierre wrote: foo::python_pips: "pbr": ensure: 1.3.0 install_args: ['-I'] proxy: 'http://proxy.example.com:3128; "linecache2": ensure: 1.0.0 install_args: ['-I'] proxy:

Re: [Puppet Users] Multi environment and multi system

2015-10-06 Thread Joao Morais
On 05/10/15 21:22, Garrett Honeycutt wrote: On 10/2/15 8:08 PM, Joao Morais wrote: How to manage a Puppet Server with multi-environment and multi-system? Hi Joao, What do you mean by base configuration and system configuration? Hi Garrett. Base configuration is common manifests

Re: [Puppet Users] Multi environment and multi system

2015-10-06 Thread Joao Morais
On 06/10/15 07:25, Joao Morais wrote: On 05/10/15 21:22, Garrett Honeycutt wrote: On 10/2/15 8:08 PM, Joao Morais wrote: How to manage a Puppet Server with multi-environment and multi-system? Hi Joao, What do you mean by base configuration and system configuration? Hi Garrett. Base

Re: [Puppet Users] Multi environment and multi system

2015-10-05 Thread Joao Morais
On 04/10/15 13:36, Maxim Nikolaev wrote: Can you split repositories for manifests and config? Do you mean manifests and hieradata in the same repository, but split into one repository per system? We can do it and this is currently the move we are trying to achieve. Problem is that we don't

Re: [Puppet Users] Multi environment and multi system

2015-10-05 Thread Joao Morais
On 04/10/15 18:23, Richard Gray wrote: On 03/10/15 13:08, Joao Morais wrote: How to manage a Puppet Server with multi-environment and multi-system? Rather than having puppet environments that correspond to physical environments, the single production Puppet environment represents the stable

Re: [Puppet Users] Multi environment and multi system

2015-10-03 Thread Joao Morais
On 03/10/15 08:22, Maxim Nikolaev wrote: You can use hiera and set there all environment and system variables. So you'll have same manifest for all environments , but devided code variables. Hi. Most of my configurations already come from Hiera. This makes things easier. However the problem

[Puppet Users] Multi environment and multi system

2015-10-02 Thread Joao Morais
How to manage a Puppet Server with multi-environment and multi-system? Background: I am using a `puppet-environments` repository with some branches that represents my environments. r10k provides the sinchronization between repository and Puppet Server. Environments (branches) are something

Re: [Puppet Users] Hiera lookup function doesnt fail if attr isnt found

2015-09-19 Thread Joao Morais
Em 19/09/15 09:38, Julian Meier escreveu: On 18 Sep 2015, at 23:36, Joao Morais <l...@joaomorais.com.br> wrote: Hello list. I am using the hiera() lookup function in order to query some few attributes from a http backend. Something like this: common.yaml --- ... class

[Puppet Users] Hiera lookup function doesnt fail if attr isnt found

2015-09-18 Thread Joao Morais
Hello list. I am using the hiera() lookup function in order to query some few attributes from a http backend. Something like this: common.yaml --- ... class::attr: "%{hiera('other::attr')}" This works very well if other::attr is defined, but an empty string is returned in the

Re: [Puppet Users] Generate an array from PuppetDB

2015-07-17 Thread Joao Morais
Em sexta-feira, 17 de julho de 2015 00:17:28 UTC-3, Ken Barber escreveu: Hello list. I'm trying to use PuppetDB to link a webserver cluster to an EJB cluster. Each webserver host need to reference a comma separated list of IPs provided by each EJB host Exporting and

[Puppet Users] Generate an array from PuppetDB

2015-07-16 Thread Joao Morais
Hello list. I'm trying to use PuppetDB to link a webserver cluster to an EJB cluster. Each webserver host need to reference a comma separated list of IPs provided by each EJB host Exporting and collecting resources works pretty nice but I think this isn't the better approach. I just need a

[Puppet Users] Load balancing Puppet Server

2015-05-11 Thread Joao Morais
Hello list. I'm using open source Puppet 3.7.4 with Puppet Server 1.0.2 and I'm evaluating how to load balance two or more Puppet Servers, specially about centralizing the CA. Is the doc http://docs.puppetlabs.com/guides/scaling_multiple_masters.html up to date and is it the way to go? If

[Puppet Users] Re: Facter doesnt resolve ipaddress or ipaddress_eth0

2014-07-28 Thread Joao Morais
List, just to document the solution. My CentOS was localized and facter couldn't parse de output properly. Changing the locale to en_US solves this issue. Joao Morais Em quinta-feira, 26 de junho de 2014 14h25min27s UTC-3, Joao Morais escreveu: Hello list. I am trying to read the IP

Re: [Puppet Users] Re: Facter doesnt resolve ipaddress or ipaddress_eth0

2014-07-28 Thread Joao Morais
local LANG* stuff through the wire and messing ifconfig output. Can you reproduce on other boxes? Yes. Facter does some regex on ifconfig output. The regex just didn't match and facter silently ignored ifconfig related facts. FYI the VM was using pt_BR.UTF8 locale. Joao Morais On 28

[Puppet Users] Re: Duplicate declaration with nested create_resources

2014-07-14 Thread Joao Morais
://docs.puppetlabs.com/hiera/latest/variables.html#best-practices Joao Morais -- 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

[Puppet Users] Duplicate declaration with nested create_resources

2014-07-10 Thread Joao Morais
Hello list, I have some services that may be duplicated in some machines. They are much like an Apache vhost. In order to remove details from my manifests, I moved the service names to ENC because they are machine-dependent. Here are my datasources and manifests: ENC: parameters:

[Puppet Users] Facter doesnt resolve ipaddress or ipaddress_eth0

2014-06-26 Thread Joao Morais
Hello list. I am trying to read the IP address of the eth0 interface from a CentOS 6.5 VM (XenServer). Running the manifest gives empty values to all of the following vars: $ipaddress, $ipaddress_eth0, and its $::name version. $interfaces has eth0,lo. Running facter from the VM I get: #