Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-17 Thread Felix Frank
On 04/17/2013 07:46 AM, Larry Fast wrote: > I think I found the problem. Pluginsync seems to load ALL plugins - > even for modules that are not included in that node's manifest. Is this > correct? Yes. Pluginsync happens before the manifest is even compiled. This is a logical necessity. E.g. you

Re: [Puppet Users] testing custom types?

2013-04-17 Thread Dominic Cleal
On 16/04/13 20:42, Jennings, Jared L CTR USAF AFMC 96 SK/CCI wrote: > I'm having scads of fun with custom resource types. But mine are getting > complicated enough that not having automated tests for them is starting > to seem really foolish. But the latest things I've seen about that issue > are f

Re: [Puppet Users] Modules, yum repo's & best practices

2013-04-17 Thread Jakov Sosic
On 12/31/2012 07:40 PM, Matthew Barr wrote: > class internalJenkins > { > include jenkins::repo > > include internalJenkins::repo # Inherits jenkins::repo > } > > class internalJenkins::repo inherits jenkins::repo { > yumrepo { "jenkins": > baseurl => "http://localrepo/jenkins";, > descr

Re: [Puppet Users] Re: Duplicate Declaration of resource (editing contents of same file in two diiferent module)

2013-04-17 Thread Felix Frank
On 04/16/2013 05:39 PM, Rahul Khengare wrote: > I am not able to change postgresql.conf file twice in postgresql module > and then pg_statsinfo module in case of db01, it give duplication > declaration of file resources. This is important: Puppet does not "change" your files. Puppet rewrites the f

Re: [Puppet Users] Modules, yum repo's & best practices

2013-04-17 Thread Johan De Wit
On 04/17/2013 12:56 PM, Jakov Sosic wrote: On 12/31/2012 07:40 PM, Matthew Barr wrote: class internalJenkins { include jenkins::repo include internalJenkins::repo # Inherits jenkins::repo } class internalJenkins::repo inherits jenkins::repo { yumrepo { "jenkins": baseurl => "http://l

Re: [Puppet Users] Re: Using onlyif for Windows exec

2013-04-17 Thread Gary Park
Hello, Thanks for all the information so far. Looks like I have got this working. I think that there was a couple things at play, most notable the use of double quotes in the onlyif command. I replaced these with \' and that seemed to help get things moving. Thanks again! Gary On Wednesday,

[Puppet Users] REST API in standalone configuration

2013-04-17 Thread Javier Dehesa
First of all, I really hope not to be republishing the same question, but I think the first time has failed. Is it possible to use the REST API in a standalone configuration of Puppet? I'm no expert in Puppet, but I've read the REST API guideand,

[Puppet Users] Run a node class through puppet dashboard

2013-04-17 Thread raji r
Hi All, Is it possible to run a class on a node through puppet dashboard. If yes can u please share the reference link ? Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it,

[Puppet Users] Configuring REST API in standalone Puppet

2013-04-17 Thread Javier Dehesa
Is there any possibility to use the REST API in a standalone configuration of Puppet? I'm still no expert in Puppet, but in the REST API guidesays I only have to add 'listen = true' in puppet.conf, or run 'puppet agent --listen'; however, I have

[Puppet Users] REST API in standalone configuration

2013-04-17 Thread Javier Dehesa
First of all, I really hope not to be republishing the same question, but I think the first time has failed. Is it possible to use the REST API in a standalone configuration of Puppet? I'm no expert in Puppet, but I've read the REST API guide and, as far as I understand, I just have to add 'lis

Re: [Puppet Users] Re: Puppet / hiera call a parametrised class from hieras yaml file?

2013-04-17 Thread jcbollinger
On Tuesday, April 16, 2013 8:50:08 AM UTC-5, alcy wrote: > > HI, > > John, doesn't it have the advantage of a seamless upgrade to puppet 3.0 ? > Can you elaborate on why its not advantageous to use explicit hiera calls ? > Read again. I did not recommend against explicit hiera calls; indeed,

Re: [Puppet Users] Re: Puppet / hiera call a parametrised class from hieras yaml file?

2013-04-17 Thread Mohit Chawla
Hi, Understood, thanks for clearing that up ! Will check the archive for more discussions on the mentioned parse-order issues. On Wed, Apr 17, 2013 at 7:03 PM, jcbollinger wrote: > > > On Tuesday, April 16, 2013 8:50:08 AM UTC-5, alcy wrote: >> >> HI, >> >> John, doesn't it have the advantage o

[Puppet Users] Issues with Puppet 2.8.0

2013-04-17 Thread Nicks
Dear all, I am new to puppet and running into some issues with making Puppet run after a new installation. Will appreciate if some one knows what could be the problem which I am facing? I have a puppet master and 2 agent nodes. When I click on live management --> Managed resources, it does n

[Puppet Users] Re: Problem on live-management - Node list missing - User ->Find Resources not working

2013-04-17 Thread Nicks
Hello All, I am facing the same problem and messages like following in the error logs. Stomp::Error::NoCurrentConnection - no current connection exists: I tried to download the fix but it does not allows me to even add a class in the puppet console. As I am fairly new to puppet I also can belie

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-17 Thread Larry Fast
Solution: Find the .rb files that contained Facter::Util::Resolution.exec and ... Facter.add("my_function") do confine :kernel => [ 'Linux' , 'SunOS' , 'FreeBSD' , 'Darwin' ] ... Thanks everyone! -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

[Puppet Users] Puppet 3.1, Hiera and a class parameter called "service"

2013-04-17 Thread Matthias Saou
Hi, I'm trying to clean up some manifests by moving class parameters which I change globally to Hiera lookups. I've been fighting with a boolean parameter for the last hour. My class has a parameter called $service, to enable/disable its service (duh!). When I try to set "mymodule::service: fals

Re: [Puppet Users] Puppet 3.1, Hiera and a class parameter called "service"

2013-04-17 Thread Keith Burdis
Perhaps try using the str2bool function from puppetlabs-stdlib [1]. - Keith [1] https://github.com/puppetlabs/puppetlabs-stdlib On 17 Apr 2013 18:09, "Matthias Saou" wrote: > Hi, > > I'm trying to clean up some manifests by moving class parameters which > I change globally to Hiera lookups. >

Re: [Puppet Users] Re: Problem on live-management - Node list missing - User ->Find Resources not working

2013-04-17 Thread Matthaus Owens
Nicks, We released Puppet Enterprise 2.8.1 today. You can upgrade to that release from 2.8.0 and it should resolve the live management issues you are seeing. On Wed, Apr 17, 2013 at 7:28 AM, Nicks wrote: > Hello All, > > I am facing the same problem and messages like following in the error logs

RE: [Puppet Users] testing custom types?

2013-04-17 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
> The only gotcha I've found are a couple of versions of Puppet (2.7.20+ > and 3.0.x) which don't load custom types from lib/ in the module, so > there's a workaround in the above file. This seemingly innocuous statement has cleared up for me the problem of being unable to require, from my custom

[Puppet Users] Re: Puppet 3.1, Hiera and a class parameter called "service"

2013-04-17 Thread Nick Fagerlund
Hey Matthias! It's a Puppet bug. Sorry. http://projects.puppetlabs.com/issues/17474 It's fixed in 3.2, which isn't quite out yet -- 3.2.0-rc1 is probably coming out this week. In the meantime, Keith is right: - Put quotes around "false" in your Hiera yaml files. - In your Puppet code, put a

Re: [Puppet Users] Re: Module structure for case-specific configuration

2013-04-17 Thread Boyan Tabakov
On 16.4.2013 16:30, jcbollinger wrote: > [... which carries maintenance costs typical of such boilerplate > repetition.] > > It sounds to me like requiring an explicit declaration for each project > class is the way to go. As I said already, however, that's entirely > unrelated to the question of