[Puppet Users] Calling hiera functions from inside Ruby templates broken in Puppet 4.x?

2015-05-22 Thread Maura Dailey
Yes, I know this practice is discouraged in the documentation, but the updated hiera 2.0 documentation also assures me that it's supported and implies no changes to puppet 3.x manifests or templates are required. This networking.erb file used to work in puppet 3.8 (this is a cruddy example, I u

[Puppet Users] Error 400 on SERVER: Could not find class lamp

2015-05-22 Thread Joe Koenig
Hi all, I'm trying to learn puppet and am running into a roadblock trying to get an agent to pickup its configuration from a master server. On master, I have created a class called 'lamp': [x@master manifests]# pwd /etc/puppet/modules/lamp/manifests [x@master manifests]# ls -l total 4 -r--r

[Puppet Users] Re: r10k issue when trying to deploy environment in PE 3.8 with svn

2015-05-22 Thread Anderson Mills
Spriya, Sorry, I realized that I was speaking from a git perspective, and not an svn perspective. r10k maps the trunk directory in the svn repository to the production environment. This means that, by default, you're going to have a production environment for every source. svn is not official

[Puppet Users] Re: r10k issue when trying to deploy environment in PE 3.8 with svn

2015-05-22 Thread Anderson Mills
Spriya, This error is telling you that you have a production environment in both your testing: and development: sources. You cannot have the exact same environment in more than one source. To fix this, either change the name of one environment, which is controlled by the branch names in your c

[Puppet Users] Re: Puppet 4.0: Evaluation Error: Error while evaluating a Function Call, Could not find data item classes in any Hiera data file and no default supplied

2015-05-22 Thread Danny Roberts
Looks like I need some slight code re-work but Puppet 4.1.0 seems to have fixed the error, many thanks! On Thursday, 21 May 2015 06:52:43 UTC+1, Thomas Müller wrote: > > Reading the puppet 4.1.0 releasenotes there is some bugfix for > hiera_include included: > https://tickets.puppetlabs.com/plu

Re: [Puppet Users] String substituion in puppet template

2015-05-22 Thread Henrik Lindberg
On 2015-22-05 11:08, Gabriel Filion wrote: On 20/05/15 09:04 AM, Björn wrote: I tried it with regsubst, but without success: | <%ip_xforward.each do|name|-%><%="\t\tSetEnvIF X-Forwarded-For ^(regsubst(#{name}, '\.','\\.')) AllowIP\n"%><%end-%> | maybe you need to call the function outside of t

Re: [Puppet Users] String substituion in puppet template

2015-05-22 Thread Björn
Am Freitag, 22. Mai 2015 11:09:15 UTC+2 schrieb Gabriel Filion: > > On 20/05/15 09:04 AM, Björn wrote: > > I tried it with regsubst, but without success: > > | > > <%ip_xforward.each do|name|-%><%="\t\tSetEnvIF X-Forwarded-For > > ^(regsubst(#{name}, '\.','\\.')) AllowIP\n"%><%end-%> > > |

Re: [Puppet Users] String substituion in puppet template

2015-05-22 Thread Gabriel Filion
On 20/05/15 09:04 AM, Björn wrote: > I tried it with regsubst, but without success: > | > <%ip_xforward.each do|name|-%><%="\t\tSetEnvIF X-Forwarded-For > ^(regsubst(#{name}, '\.','\\.')) AllowIP\n"%><%end-%> > | maybe you need to call the function outside of the string. e.g.: <%= "\t\tSetEnvIf X

[Puppet Users] Changed at and Changed from in file header

2015-05-22 Thread Björn
Hello, is there any possibility to realize that? ## # # Managed by Puppet #