Re: [Puppet Users] new module created , but does not load ( is ignored)

2012-08-07 Thread TORO
Am Montag, 6. August 2012 20:16:35 UTC+2 schrieb Ken Barber: > > > Hope someone can help, ( not sure if this is the right place ... as I´m > new > > to this group) > > Yes - this is the correct place. > > > I have created a new module ( see snipped from tree below ) but its not > > used an

Re: [Puppet Users] new module created , but does not load ( is ignored)

2012-08-07 Thread TORO
Am Dienstag, 7. August 2012 09:47:05 UTC+2 schrieb TORO: > > > Am Montag, 6. August 2012 20:16:35 UTC+2 schrieb Ken Barber: >> >> > Hope someone can help, ( not sure if this is the right place ... as >> I´m new >> > to this group) >> >> Yes - this is the correct place. >> >> > I have create

Re: [Puppet Users] Re: postgres plugin puppetdb

2012-08-07 Thread Antidot SAS
Here is the puppetdb.log: 2012-08-05 10:39:12,431 WARN [qtp2101818118-104743] [server.AbstractHttpConnection] /commands java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2894) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.j

Re: [Puppet Users] Dealing with group privileges

2012-08-07 Thread Denmat
Hi Vlad, Care to provide a bit more detail of what you're aiming to do and what errors are preventing you from doing it? Cheers, Den On 07/08/2012, at 7:09, Vlad wrote: > Hello, > > I am wondering what the best practice is with installations that ask for > a user to log in and log out.

Re: [Puppet Users] service resource type

2012-08-07 Thread Denmat
Hi, Depending on your version latest docs are described here: http://docs.puppetlabs.com/references/latest/type.html#service You should specify whether you want the service enabled or not and try to provide a status script so puppet can figure out if the service is already running or not. Also

Re: [Puppet Users] Custom Facts

2012-08-07 Thread Yaniv Fine
Hi Dan . thank you for your help and pointers . i need your advice pls . lets say i have /tmp/yanivf.txt inside i have a line testing when i run require 'facter' Facter.add("yaniv") do setcode do 'cat /tmp/yanivf.txt' end end and than i run facter i get nothing when i run export FACTER_yan

Re: [Puppet Users] unable to install on Ubuntu 12.04

2012-08-07 Thread Denmat
Hi, When you do the install, there should be an answers file generated in the current directory. Check that for passwords (from memory). In your current case I would uninstall, remove mysqld-server, remove /var/lib/mysql and /opt/puppet and /etc/puppetlabs (this is assuming nothing else used t

Re: [Puppet Users] Custom Facts

2012-08-07 Thread Foster Rilindo
Since you are directly executing a command, you really want to use the built-it Puppet function here: require 'facter' Facter.add("yaniv") do setcode do Facter::Util::Resolution.exec("cat /tmp/yanivf.txt") end end There is probably some newlines that file that may not be immediatel

Re: [Puppet Users] Custom Facts

2012-08-07 Thread Yaniv Fine
Thank you for your answer . any reson why Facter::Util::Resolution. exec not working . i don't see either when running factor on the client or on the puppet server yaml file any record of fact named yaniv ? On Tue, Aug 7, 2012 at 12:49 PM, Foster Rilindo wrote: > Since you are directly execut

[Puppet Users] hooking NewRelic into Puppet agent

2012-08-07 Thread Daniele Sluijters
Hello everyone, I'm trying to hook NewRelic into the Puppet agent. Why? Because I'm pretty positive at this point that the metrics Dashboard reports are not accurate / incomplete and I can't really split out those metrics in stuff like 'which commands take too long' or 'how long am I waiting on

Re: [Puppet Users] new module created , but does not load ( is ignored)

2012-08-07 Thread jcbollinger
On Tuesday, August 7, 2012 2:47:05 AM UTC-5, TORO wrote: > > Yes you are right , : > >> b) the class itself is not being included properly elsewhere > > as it is not listed i > /var/lib/puppet/state/classes.txt > > And Yes you are right , I should have attached my init.pp and oel.pp see > now

Re: [Puppet Users] Custom Facts

2012-08-07 Thread llowder
On Tuesday, August 7, 2012 4:59:01 AM UTC-5, Yaniv Fine wrote: > > Thank you for your answer . > any reson why Facter::Util::Resolution. > exec not working . > i don't see either when running factor on the client or on the puppet > server yaml file any record of fact named yaniv ? > > Have you d

Re: [Puppet Users] Re: Adding a parameter to a custom Puppet type/provider

2012-08-07 Thread jcbollinger
On Monday, August 6, 2012 11:32:38 PM UTC-5, Josh Cooper wrote: > > Recently Nick L and I "discovered" that parameter validation does not > occur on the master (in 2.7.x) yet many people believe this to be > true. Specifically the munge and validate methods for parameters and > properties are

Re: [Puppet Users] Custom Facts

2012-08-07 Thread Yaniv Fine
well its wroking for me now . newbie question . if i put the test.rb file inside modules/common/test/lib/facter/test.rb is it normal that it runs automatically on all servers without a way for me to control what machine will run it ? all my modules reside : modules/common/apache java .. On T

[Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-07 Thread jcbollinger
On Monday, August 6, 2012 10:48:25 AM UTC-5, Ygor wrote: > > I am putting together some system improvements based on using the > stdlib::facter-dot-d and I have a few questions: > > Are facts always single “key => value” pairs or can you get a hash or > array into a fact ? > > I suspect array

Re: [Puppet Users] new module created , but does not load ( is ignored)

2012-08-07 Thread TORO
Am Dienstag, 7. August 2012 15:08:38 UTC+2 schrieb jcbollinger: > > > > On Tuesday, August 7, 2012 2:47:05 AM UTC-5, TORO wrote: >> >> Yes you are right , : >> >>> b) the class itself is not being included properly elsewhere >> >> as it is not listed i >> /var/lib/puppet/state/classes.txt >>

Re: [Puppet Users] Re: postgres plugin puppetdb

2012-08-07 Thread Antidot SAS
In fact I am starting to have more and more errors regarding java exception: 2012-08-07 16:39:23,864 ERROR [command-proc-77] [puppetdb.command] Fatal error parsing command java.lang.OutOfMemoryError: Java heap space 2012-08-07 16:39:26,628 WARN [command-proc-77] [listener.DefaultMessageListenerCon

Re: [Puppet Users] access "indexed" facter facts

2012-08-07 Thread tobias
> > > I have a fact which looks like that: drbdconnectionstate0. You see > > the "0" at the end... Now I'd like to access this fact in a > > "dynamic" way, the "0" should be variable. I'm thinking of something > > like that: if ${drbdconnectionstate0}${drbddevice} == > > 'Unconfigured'. > > B

[Puppet Users] Type Service: ignore "notify"

2012-08-07 Thread tobias
Hi, Is it possible to configure a service to ignore notifies? I'd like to have some special cases where a "notify => Service['xyz']" is ignored by the service "xyz"... (The service is managed by Pacemaker and I don't want Puppet to manage this service) Cheers, Tobias -- You received this mes

Re: [Puppet Users] exec in master transfer files to the node

2012-08-07 Thread Nikolaos Hatzopoulos
I use this inside the class generate("/bin/bash","/etc/puppet/manifests/myusers/sshkeygen.bash") and I am generating a key inside the server but the permission of the folder must be: user: puppet group: puppet --Nikos On Wed, Aug 1, 2012 at 12:28 AM, David Schmitt wrote: > On 31.07.2012 20:

Re: [Puppet Users] Re: postgres plugin puppetdb

2012-08-07 Thread Chris Price
JM, Hmm... so, those versions of Java seem fine--those are probably the ones we've done the most testing with. So, the error message that you sent indicates that the JVM is running out of RAM. This could possibly indicate that you are still using the embedded database instead of postgres--the

[Puppet Users] setting different values to same variables

2012-08-07 Thread Oren Marmor
Hi all. i have a design question and would appreciate your suggestions. i would like to use templates to define files on nodes according to the node's environment, for example dev,qa problem is i have many variables in many groups and defining them all in one file would be pretty ugly i would lik

Re: [Puppet Users] unable to install on Ubuntu 12.04

2012-08-07 Thread alike
I consulted finch & justinstoller from IRC and they said something evil with dpkg and my machine is in a state of un-reinstallable. justinstoller suggested me restore my machine to the previous state, but I don't have a easy way to do that. So I am giving up now and trying "apt-get install pup

Re: [Puppet Users] Re: Could not evaluate: Could not retrieve information from environment production source(s) for one module, for other is ok

2012-08-07 Thread Juan Sierra Pons
Thank you all for point me in the right direction: - The problem was the "file" part include in the path. No it works OK I didn't pay enough attention to it - http://docs.puppetlabs.com/guides/file_serving.html explains perfectly how it works - puppet-lint is an excellent tool too Best regards

[Puppet Users] Puppet fails to build passenger support

2012-08-07 Thread Ross
Hi I am a newbie. Trying to build passenger support in and keep getting this error below: sudo puppet apply --verbose manifests/site.pp > info: Applying configuration version '1344324839' > info: FileBucket adding {md5}af62707310b11f1806137ce653ca064e > info: /Stage[main]/Passenger/File[/etc/apa

[Puppet Users] Re: razor -> dhcp -> dns/bind

2012-08-07 Thread Paul Archer
Anyone? On Monday, August 6, 2012 4:58:53 PM UTC-5, Paul Archer wrote: > > [First, I'm an experienced Linux admin, but new to puppet.] > I'm trying to setup razor, which really needs a DHCP server. So I'm > following the guide here ( http://puppetlabs.com/blog/puppet-razor-module/), > which poi

Re: [Puppet Users] razor -> dhcp -> dns/bind

2012-08-07 Thread Nan Liu
On Mon, Aug 6, 2012 at 2:58 PM, Paul Archer wrote: > [First, I'm an experienced Linux admin, but new to puppet.] > I'm trying to setup razor, which really needs a DHCP server. So I'm following > the guide here ( http://puppetlabs.com/blog/puppet-razor-module/ ), which > points to a DHCP module.

Re: [Puppet Users] razor -> dhcp -> dns/bind

2012-08-07 Thread Nan Liu
On Tue, Aug 7, 2012 at 10:45 AM, Nan Liu wrote: > On Mon, Aug 6, 2012 at 2:58 PM, Paul Archer wrote: >> [First, I'm an experienced Linux admin, but new to puppet.] >> I'm trying to setup razor, which really needs a DHCP server. So I'm >> following the guide here ( http://puppetlabs.com/blog/pupp

[Puppet Users] Re: Accessing a fileserver file from a custom function

2012-08-07 Thread Krzysztof Wilczynski
Hi James, [...] > How could I acheive this please?  I'd rather not hard-code the full path as > this would be brittle - how can I "resolve" the puppet:/// url to the actual > file location please? Using "puppet:///" and "file:///" in a way similar to what the File type offers from within a cus

[Puppet Users] Scope Confusion!

2012-08-07 Thread Douglas Garstang
As usual, I'm confused about scope in puppet. This puppet 2.7.1. In my classes below, the bottom class, company::web::content, requires the file resource '/usr/local/company'. However, that resource is defined two includes back in the class company::common. I always thought this wasn't supposed to

Re: [Puppet Users] razor -> dhcp -> dns/bind

2012-08-07 Thread Paul Archer
I appreciate you responding, but this really doesn't help. It doesn't answer my questions at all. OK, I could just ignore these lines, but I really hate the idea of not using something because I don't have the documentation or I don't understand it. And what if I need DDNS? But the big thing is

Re: [Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-07 Thread Dan White
- jcbollinger wrote: > > > On Monday, August 6, 2012 10:48:25 AM UTC-5, Ygor wrote: > > > > I am putting together some system improvements based on using the > > stdlib::facter-dot-d and I have a few questions: > > > > Are facts always single “key => value” pairs or can you get a hash or

Re: [Puppet Users] Problems granting privileges with puppetlabs/mysql

2012-08-07 Thread Nicholas Andre
I've posted on the puppetlabs bug databaseabout this. Is there any solution for managing mysql grants through puppet? Am I doing anything wrong or is this module just fatally flawed? On Monday, July 23, 2012 4:35:37 AM UTC-4, thijso wrote: > > > > On

Re: [Puppet Users] razor -> dhcp -> dns/bind

2012-08-07 Thread Nan Liu
On Tue, Aug 7, 2012 at 11:55 AM, Paul Archer wrote: > I appreciate you responding, but this really doesn't help. It doesn't answer > my questions at all. The bind module referenced isn't available publicly, so no it's not published anywhere. > OK, I could just ignore these lines, but I really ha

Re: [Puppet Users] Re: Issues with installing some modules !!!

2012-08-07 Thread Ryan Coleman
On Mon, Aug 6, 2012 at 2:05 AM, Rakesh K wrote: > Any updates ?? Sorry Rakesh, I was waiting for your response to Nan's comments. I've pasted them below for reference. >>> Yeah, per Ryan, most likely you already have an existing password, and you need to set old_root_password before you can set

Re: [Puppet Users] Re: Accessing a fileserver file from a custom function

2012-08-07 Thread Nan Liu
On Tue, Aug 7, 2012 at 11:13 AM, Krzysztof Wilczynski wrote: > Hi James, > > [...] >> How could I acheive this please? I'd rather not hard-code the full path as >> this would be brittle - how can I "resolve" the puppet:/// url to the actual >> file location please? > > Using "puppet:///" and "f

[Puppet Users] update yumrepo followed by packages updates.

2012-08-07 Thread trey85stang
Hey All, I have an issue I need help working around or determining if it is a bug the issue is as follows, I have a custom repo(s) that has all my software for a specific version release in it. A new version gets a new repo. The problem lies when I move to upgrade software. My idea was to

[Puppet Users] Tag Negation

2012-08-07 Thread Douglas Garstang
All, Is there a way to run puppet and specify to apply resources NOT containing a tag? ie, negating something like this? puppetd --tags solaris The use case for this is to put a tag in our application code so that when running puppet we know changes made there will NOT be enacted. The only way

[Puppet Users] Announce: Puppet 2.7.19rc2 Available

2012-08-07 Thread Moses Mendoza
Puppet 2.7.19rc2 is a maintenance release candidate for Puppet in the 2.7.x series with bug fixes. Downloads are available at: * Source https://downloads.puppetlabs.com/puppet/puppet-2.7.19rc2.tar.gz Windows package is available at https://downloads.puppetlabs.com/windows/puppet-2.7.19rc2.msi R

Re: [Puppet Users] Scope Confusion!

2012-08-07 Thread Christopher Wood
On Tue, Aug 07, 2012 at 11:25:32AM -0700, Douglas Garstang wrote: > As usual, I'm confused about scope in puppet. This puppet 2.7.1. > > In my classes below, the bottom class, company::web::content, requires > the file resource '/usr/local/company'. However, that resource is > defined two includes

Re: [Puppet Users] NFS mounts with puppet creates error

2012-08-07 Thread Axel Bock
Well, I am creating those directories using puppet, and when nothing's mounted I don't want to have to be root to mess around with them. Kind of annoying. I went for an exec/unless thing now, in which I simply set the permissions on the command line - unless the directory already exists :) . No

Re: [Puppet Users] Re: Issues with installing some modules !!!

2012-08-07 Thread Rakesh K
Actually I have tried fresh install of the module multiple times after clearing all traces of the mysql package on the client but still getting the same result. I am using the same nodes.pp as above as the password is not set at all, I hv not tried using the old_password parameter at all.

Re: [Puppet Users] Re: Issues with installing some modules !!!

2012-08-07 Thread Rakesh K
Also can you please guide me as to how can I try this from the dashboard ? I know I can simply include the mysql class and assign it to my node.. but how can I actually pass these parameters and how will dashboard know which parameters refers to which class? On Wednesday, August 8, 2012 11:14:

[Puppet Users] Re: setting different values to same variables

2012-08-07 Thread Axel Bock
Hi Oren, I'm kind of new to puppet myself - but I think this is not working as you might like. If you import a class with your definitions, your scope changes AFAIK. So between import more_defs.qa and import more_defs.dev there is - again: AFAIK - one major disadvantage. Using classes you will

Re: [Puppet Users] Re: Passing parameters for a class in Dashboard

2012-08-07 Thread Rakesh K
Ok.. I understand ... I can simply include the class and assign it to my node.. but how will dashboard know which parameters refers to which class? There could be a parameter like "ensure => present" and it could have been used in multiple classes that I have included, how will these things be

[Puppet Users] Delete "unmanaged" files in directory

2012-08-07 Thread Axel Bock
Hello readers, I might have the need for something like "delete all unmanaged files". Explanation: I am creating a bunch of apache config files, which contain information about the hostname and the port they're listening on. Now if I change the host name - or the port - the last generated file