[Puppet Users] Re: Announce: PuppetDB 1.4.0 Available

2013-08-12 Thread Daniele Sluijters
Hey, Great work! I really like the addition of puppetdb-anonymize, that's going to help me out in a few situations. -- Daniele Sluijters On Friday, 9 August 2013 01:59:25 UTC+2, Ken Barber wrote: PuppetDB 1.4.0 is now available for download! This is a new feature release and the start of

[Puppet Users] Problems With Facts

2013-08-12 Thread Richie Rees
I have a problem with facts, running puppet and foreman as the ENC. When hosts are created in sample.com domain the facts are returned when they are created in testing,sample.com the facts are not returned I can see in the log that they are reaching the server and getting redirected to the

[Puppet Users] Re: Copying multiple files to multiple locations

2013-08-12 Thread Rahul Khengare
Hi Matthijs, You can try using array variable in file resource.This may solve your issue. Can you explain in detail. I mean the location of files and directory structures. If you want to copy the same file content in several files refer following code snippet,You can use various files path

[Puppet Users] LDAP backend for Hiera

2013-08-12 Thread Arnaud Gomes-do-Vale
Hi folks, I have written a small LDAP backend for Hiera. I am aware of the one at https://github.com/hunner/hiera-ldap but it's not what I was looking for. You can find mine at http://forge.ircam.fr/p/hiera-ldap-backend/. How to use it = Basically, the hiera.yaml file should look

[Puppet Users] Re: looping over an hashmap in an .pp file

2013-08-12 Thread jcbollinger
On Friday, August 9, 2013 10:47:27 AM UTC-5, Simon Hönscheid wrote: I have an interesting problem an I found no solution yet: I want puppet to repeat an exec for every hast element I have: $database_users = [ { user = 'jira', passwort

Re: [Puppet Users] LDAP backend for Hiera

2013-08-12 Thread Arnaud Gomes-do-Vale
Arnaud Gomes-do-Vale arnaud.go...@ircam.fr writes: objectclass ( 1.3.6.1.4.1.7568.1.2.43.1 NAME 'hieraSource' SUP top STRUCTURAL s/STRUCTURAL/AUXILIARY/ of cource. -- A -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this

Re: [Puppet Users] looping over an hashmap in an .pp file

2013-08-12 Thread Dick Davies
+1 for create_resources. I use it on 2.7 without storeconfigs, and it doesn't involve hiera at all. I just declare $modulename::data = [ {.}] and feed that into a resource with: create_resources(resourcename, $modulename::data) One gotcha: this is a function (essentially a macro that expands

Re: [Puppet Users] dynamic hiera_config setting

2013-08-12 Thread Pablo Wright
Hi James, One thing to take into account here is that hiera_config is under the [master] section, so it might not take into account settings in [agent], such as the environment. Try running puppet master --configprint environment to see if it's set to the default (which is production). Hope this

[Puppet Users] Puppet (v3.2.x) Performance

2013-08-12 Thread Tony McMahon
Hi - I'm new to puppet, but I'm managing to use it to keep ~130 linux servers to a standard config. I only have one small problem which is affecting 3 RedHat 6.4 servers - when running as a daemon the puppet agents take ~250seconds to complete. When I stop the daemon and run a one-time agent

[Puppet Users] Making REST calls from provider

2013-08-12 Thread Jeff
It's a bit non-standard, but we're going to be making REST calls from a provider to an outside service. The call will be SSL, so I'm a little worried about performance. Is there a notion of using persistent and shared (between providers in the same module) connections? How would this be

[Puppet Users] Passenger-Rack error 500: no such file to load -- rack

2013-08-12 Thread Larry Fast
I have a puppetmaster running within passenger+rack. It has been running properly for almost a year and decided to stop working on the weekend. Now I'm getting the Purple Ruby (Rack) application could not be started screen with Error: no such file to load -- rack Application:

[Puppet Users] Re: Freebsd + Puppet 3.2.2 pkg_add -f ?

2013-08-12 Thread Russell Jackson
The standard provider doesn't work with packages that have multiple origins (the apache ports for instance) because the package name doesn't match was is recorded in the package database. So, what will happen is that puppet will think the package isn't installed on every run and attempt to

Re: [Puppet Users] Passenger-Rack error 500: no such file to load -- rack

2013-08-12 Thread Denmat
Hi, Try loading rack in the ruby irb console. The other thing is depending on your version of puppet an passenger you will need a particular rack version. Do a gem list and see if you have more than one rack gem installed and remove any that may have been recently upgraded. Can be a bit

Re: [Puppet Users] Puppet (v3.2.x) Performance

2013-08-12 Thread Denmat
Hi, Run --debug --evaltrace on the agent run and check the output. It will give you an idea of what is taking time. But sounds networky - dns? Den On 13/08/2013, at 2:05, Tony McMahon tony.mcma...@gmail.com wrote: Hi - I'm new to puppet, but I'm managing to use it to keep ~130 linux

[Puppet Users] Re: Newbie: Could not retrieve catalog from remote server: Error 400 on SERVER

2013-08-12 Thread Dan M
John You are correct. I faced the same problems once the Hiera was uncommented. While fixing them I had to address following open issues: Pre-requisitions: puppet.conf: hiera_config = /biz/puppet/hiera/hiera.yaml hiera.yaml: --- :backends: - json :json: :datadir:

[Puppet Users] Puppet Managing Symlink

2013-08-12 Thread chengkai liang
Hi Everybody, So I have design a puppet module that will create a symlink under a given directory, and here's the module and a hiera, and fact data: Hiera data --- confluence_setup::lic::lic_info: confluence_lib_path: /usr/local/confluence/confluence/WEB-INF/lib A custom fact that will

[Puppet Users] Re: Freebsd + Puppet 3.2.2 pkg_add -f ?

2013-08-12 Thread badgerious
I should disclaim that I'm not a huge FreeBSD guy, but do have a couple of FreeBSD boxes around. I've been content getting all packages with 'pkg_add -r' (which seems to work fine with the unpatched freebsd provider); no idea about the interactions with ports you've mentioned. Couple of