[Puppet Users] Realize a virtual parametriced class

2013-04-09 Thread Israel Calvete
Hi, I try some like this... I need virtual parametriced class. *@class {backup::client:* * backup => xx* *}* Is posible to do something like this? If To realice... This don't works. (err: Could not retrieve catalog from remote server: Error 400 on SERVER: Resource* type class *doesn

[Puppet Users] Custom Functions and hash as parameter

2013-11-27 Thread Israel Calvete
Hi all, I try write a custom function My code: * $gluster = {* *'10.241.5.6' => '/data/gv0/brick1',* *'10.241.5.7' => '/data/gv0/brick1',* * }* * $a = glusterFunctions($gluster)* * notify{$a:}* My simple custom function: *require 'rubygems'* *module Puppet::Parser::Functions*

Re: [Puppet Users] Custom Functions and hash as parameter

2013-12-01 Thread Israel Calvete
On Wednesday, November 27, 2013 11:13:52 PM UTC+1, Henrik Lindberg wrote: > > On 2013-27-11 17:33, Israel Calvete wrote: > > Hi all, > > > > I try write a custom function > > > > My code: > > > > / $gluster = {/ > > /

[Puppet Users] Hiera.yaml not interpolate variables

2014-05-08 Thread Israel Calvete
Hi, This is my hiera config. *---* *:backends: - yaml* *:hierarchy: - %{::environment}* *- common* *:yaml:* * :datadir: "/usr/share/puppet/configuration/%{::environment}/hiera/current/hieradata"* *:puppet:* * :datasource: data* It seems if puppet master can't resolve enviroment va

Re: [Puppet Users] Hiera.yaml not interpolate variables

2014-05-08 Thread Israel Calvete
Yes, hiera file is in /etc/puppet/hiera.yaml On Thursday, May 8, 2014 6:15:34 PM UTC+2, Brendan O'Bra wrote: > > Where is your hiera.yaml located? Default for puppet is > /etc/puppet/hiera.yaml > > > On Thu, May 8, 2014 at 8:21 AM, Israel Calvete > > wrote: &g