[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-01-15 Thread CD
ok I found a workaround to my problem. I updated the network module (https://forge.puppetlabs.com/razorsedge/network) so that it is now accepting a label as the name rather than interface (eth0 etc). In this way I can provide a unique name and get away with assigning same name leading to error.

Re: [Puppet Users] Re: Puppet calls the ENC twice for some nodes.

2014-01-15 Thread James Ellis
Thanks Jason for the info. Bear with me, but I'm still unsure why the ENC would run twice, particularly given the dynamic nature of an ENC terminus where it would be connecting to other systems to get information for a catalogue -- those systems are then hit twice, regardless of whether or not

[Puppet Users] ssh module dependency failure

2014-01-15 Thread Tim Dunphy
Hi All, I'm writing to you today because I am attempting to follow along in the "Pro Puppet" book I am attempting the ssh module example from page 39. I am getting the following error on the client when I try to implement it: [root@beta:~] #puppet agent --test --server puppet.mydomain.com info:

[Puppet Users] Using Virtual Resources and create_resource combination

2014-01-15 Thread CD
Hi friends, I have an issue where that I receive error Error 400 on SERVER: Cannot reassign variable name on node app1. When I run the agent on admin1 it works fine, but when I run the agent on app1 it give me the error. Having read few forum posts it seems this is most likely that the same re

[Puppet Users] Submit a Talk for PuppetConf 2014

2014-01-15 Thread Dawn Foster
I wanted to let everyone know that we have opened up the CFP for PuppetConf 2014. Submissions are due by midnight PDT on March 18, 2014. All of the details can be found here: http://puppetlabs.com/blog/submit-talk-puppetconf-2014 Here are a few examples of what we would like to see: * Introductor

[Puppet Users] puppet ERROR 400

2014-01-15 Thread Vassiliy Vins
Hi! I've created 2 files: file *test.pp* with code : class copy { file {"testfile": path => "/home/vassiliy/myfile", source => "puppet:///mpoint/client1/testfile", mode => '644' } } and file site.pp wuth code: import "test.pp" node client1 { include copy } in fileserver.conf was created sec

[Puppet Users] Re: Have An Issue To Report, But Can't Figure Out How

2014-01-15 Thread Lauren R
Hello from your neighborhood Docs team! We've updated the headers, and the bug tracker links should point to JIRA now. Apologies for missing that in the first go-round. All the best, Lauren On Monday, January 13, 2014 10:22:07 AM UTC-8, Paul Nickerson wrote: > > I have an issue to report in t

Re: [Puppet Users] Doubt about lots of persistent connections

2014-01-15 Thread Dick Davies
Those connections don't take much in the way of resources on the ActiveMQ server (you might need to up the number of open files the activemq process is able to access). I'm not sure what you mean about non-persistent connections; are you talking about agents periodically connecting to check? i'd e

Re: [Puppet Users] Re: Nagios_contact in multiple contactgroups

2014-01-15 Thread Jonathan Gazeley
On 14/01/14 23:27, jcbollinger wrote: On Tuesday, January 14, 2014 5:42:54 AM UTC-6, Jonathan Gazeley wrote: This is ridiculous and bizarre behaviour and seems to defy the whole point of having a managed resource, and there is an old, open bug for it. http://projects.puppetlab

[Puppet Users] hiera

2014-01-15 Thread Peter Romfeld
Hi, I just started learning puppet a few days ago.. I finished eBook "Pro Puppet" all the puppet e-courses and read quite a bunch about roles and so on... What i have not found so far is a Hiera tutorial I understand, i read through puppetlabs docu but i dont understand it. Maybe i should just st

Re: [Puppet Users] Re: Puppet calls the ENC twice for some nodes.

2014-01-15 Thread jcbollinger
On Tuesday, January 14, 2014 5:20:55 PM UTC-6, James Ellis wrote: > > Hi, chanced across this discussion when I noticed an ENC was being called > twice. I understand I may not be using the ENC terminus exactly as it's > been designed, but it's unexpected that it was called twice. Also worth >

Re: [Puppet Users] Replace multiple expression with a variable in a selector

2014-01-15 Thread Felix Frank
General remark: You should use hiera() to retrieve that value. hiera_array() is only useful in very specific situations, and only if you have a non-trivial hierarchy. On 01/15/2014 03:02 PM, Francisco José Bejarano wrote: > > HOSTS_TESTING: > - 'host1' > - 'host2' > - 'hos

Re: [Puppet Users] nodejs - Running make returns 2 instead of 0

2014-01-15 Thread Björn Becker
Ohhh, you made my day. That shows the problem. We need /bin in PATH for uname. Thanks a lot! Björn Am Mittwoch, 15. Januar 2014 14:39:54 UTC+1 schrieb Ken Barber: > > > This is my exec: > > > > exec {'make nodejs': > > command => "/usr/bin/make", > > creates => "/usr/local/src/n

[Puppet Users] Re: Write a function to puupet

2014-01-15 Thread jcbollinger
On Wednesday, January 15, 2014 4:28:41 AM UTC-6, shlo@gmail.com wrote: > > > > Hi, > I want to write a function for Puppet that check if package already > defined, I saw in this group to do: > > define safepackage ( $ensure = present ) { > if !defined(Package[$title]) { >

Re: [Puppet Users] Replace multiple expression with a variable in a selector

2014-01-15 Thread Francisco José Bejarano
With this runs hiera yaml HOSTS_TESTING: - 'host1' - 'host2' - 'host3' and manifest $HOSTS_TESTING = hiera_array('HOSTS_TESTING') if $::hostname in $HOSTS_TESTING { $testing = 'filetest' } else { $testing = 'file' } El miércoles, 15 de enero de 2014

Re: [Puppet Users] nodejs - Running make returns 2 instead of 0

2014-01-15 Thread Ken Barber
> This is my exec: > > exec {'make nodejs': > command => "/usr/bin/make", > creates => "/usr/local/src/node/out/Release/node", > cwd => "/usr/local/src/node", > path=> ["/usr/bin", "/usr/sbin"], > require => Exec['configure nodejs'], > } > > Do you got any idea? Try

[Puppet Users] nodejs - Running make returns 2 instead of 0

2014-01-15 Thread Björn
Hello, I try to build nodejs, unfortunately by running of make via puppet it returns 2 somehow. When I run make manually it returns 0 as expected. puppet agent -t info: Retrieving plugin info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb info: Loading facts in /var/lib/puppet/lib/fa

Re: [Puppet Users] Replace multiple expression with a variable in a selector

2014-01-15 Thread Francisco José Bejarano
Not runs I have tried with all combinatios of quotes, arrays, hiera, etc. Only runs with literal values in the expression even I have replaced the selector with if statement if $::hostname [ $variable ] { and neither runs only with literal values if $::hostname [ "host1","host2","host3" ] {

Re: [Puppet Users] Replace multiple expression with a variable in a selector

2014-01-15 Thread Andrey Kozichev
try $VARIABLE ='(host1|host2|host3)' $testing = $::hostname ? { /$VARIABLE/ => 'filetest', default=> 'file', } On 15 January 2014 11:19, Francisco José Bejarano wrote: > Greetings to all > > I have a question about the use of selectors. I am using 3.4.2 > > I have this selector in

[Puppet Users] Re: Help on Hiera automate

2014-01-15 Thread alessandro mazzoli
Thanks Jc, i did what you said..i have changed .yaml like this: servers: s10: sn: de3de project: b user: b dbname: de dbuser: e dbpwd: de s16: sn: de3dedede project: b user: a dbname: de dbuser: e dbpwd: d ... and obtain params like this hiera(

[Puppet Users] Replace multiple expression with a variable in a selector

2014-01-15 Thread Francisco José Bejarano
Greetings to all I have a question about the use of selectors. I am using 3.4.2 I have this selector in my code $testing = $::hostname ? { /(host1|host2|host3)/ => 'filetest', default=> 'file', } I would like to use a variable as a multiple expression in a selector

[Puppet Users] Doubt about lots of persistent connections

2014-01-15 Thread Dani Gutiérrez Porset
Hi community, in a testing PE installation I see each agent maintains a persistent collection to ActiveMQ process in master server, to be used by mcollective in a push (vs pull) scheme. As it's not so sure that one master is sending lots of petitions to agents, which are the advantages of this

Re: [Puppet Users] Optimizing the Puppet CA using Apache

2014-01-15 Thread Matthias Saou
On Tue, 14 Jan 2014 16:31:40 +0100 Erik Dalén wrote: > I did a bit of a hack to serve the static files in the Puppet CA > directly using Apache instead of going through the Ruby layer and > indirector. It speeds things up quite a lot and also allows use of > HTTP caching headers like IfModifiedSi

[Puppet Users] Re: Error 400 on SERVER: Could not autoload active_record: uninitialized constant ActiveRecord

2014-01-15 Thread Peter Romfeld
THANKS so much :) On Thursday, December 22, 2011 3:53:55 AM UTC+8, Joehillen wrote: > > Ok, I solved the issue. > > It took some doing because apparently puppet doesn't work with the newest > version of activerecord. > > http://projects.puppetlabs.com/issues/867 > > Here are the steps that ended

[Puppet Users] Write a function to puupet

2014-01-15 Thread shlo . afgin
Hi, I want to write a function for Puppet that check if package already defined, I saw in this group to do: define safepackage ( $ensure = present ) { if !defined(Package[$title]) { package { $title: ensure => $ensure } } } In which file I need put this function

Re: [Puppet Users] Dynamic Nagios Hostgroup members via collected resources?

2014-01-15 Thread Nikola Petrov
On Tue, Jan 14, 2014 at 08:57:08AM -0800, smalderma wrote: > Greetings All, > > I've referenced a few older discussions about nagios hostgroups and the > nagios_hostgroup resource. I admit I'm somewhat new to this game, so > please excuse my ignorance on the complexities. I'm looking for a way