Re: [Puppet Users] Need some suggestions about how to handle dependencies between different Puppet nodes

2013-04-18 Thread Peter Brown
Someone else was asking something similar a while ago. The only solution I can remember is to export a file from the 1st node with the server id in it and require that on the second node. I would be using the ripienaar-concat module on puppet forge to manage the config file and export the server

Re: [pe-users] Re: [Puppet Users] fact_stomp_server

2013-04-18 Thread Matthaus Owens
That's also true. stdlib 4.x has facts.d removed, while stdlib 2.x and 3.x still have facts.d, so figuring out which version of stdlib you are using may be important. The version that ships with PE 2.8.1 is 2.5.1, which does have facts.d. `puppet module list` should show you the modules installed,

Re: [Puppet Users] fact_stomp_server

2013-04-18 Thread Matthaus Owens
Tommy, I'm CCing the pe-users list as well because this is a PE specific issue. This fact might not be loaded if the facts.d custom fact isn't loaded. A quick way to check is to run `facter -p` as root on the machine. You should see those facts if facts.d is available. Can you post the output of `f

[Puppet Users] Need some suggestions about how to handle dependencies between different Puppet nodes

2013-04-18 Thread pholas
I'm trying to use puppet to automate IBM Domino installation. The first demo that I want to make is including two servers. - One will be the primary Domino Server. - The other will be the additional server. Now the problem I met is when I have to define an sequence there because Domin

Re: [Puppet Users] Re: Anyone managed to integrate Ambari/Hortonworks with an existing puppet installation?

2013-04-18 Thread John Warburton
On 18 April 2013 14:35, Yusaku Sako wrote: > Hi John, > > You are looking at an old version of HDP (1.1). > > The Puppet library that is used by the Ambari agent is completely > sandboxed - it will not interfere with your existing Puppet installation. > Yusaku > Thanks Yusaku - that will make

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

2013-04-18 Thread Calvin Walton
On Wed, 2013-04-17 at 14:27 -0700, Nick Fagerlund wrote: > 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 qu

[Puppet Users] fact_stomp_server

2013-04-18 Thread Tommy Speigner
Does anyone have any insight into this error message? err: Could not retrieve catalog from remote server: Error 400 on SERVER: The fact named fact_stomp_server does not appear to be a valid hostname. The value of '' does not match '^[a-zA-Z0-9.-]+$'. A common cause of this problem is running p

[Puppet Users] Announce: Puppet 3.2.0-rc1 Available

2013-04-18 Thread Matthaus Owens
Puppet 3.2.0-rc1 is a feature release candidate for the 3.x series of Puppet. To see a list of the issues addressed by this release, check out the 3.2.0 version in our issue tracker at: https://projects.puppetlabs.com/versions/371 The most notable changes are: An optional, experimental "Future" p

[Puppet Users] Scoping of default types & dependency loops

2013-04-18 Thread Matthew Barr
I'm seeing an interesting dependency issue, based on scoping of default types. Using 3.1.1 & aware of http://docs.puppetlabs.com/guides/scope_and_puppet.html#declare-resource-defaults-per-file Our mongo::repos class is inheriting the File default that is set in the mongo class. This leads to

[Puppet Users] Re: [Puppet-dev] Managing System Reboots

2013-04-18 Thread Justin Stoller
On Thu, Apr 18, 2013 at 1:09 PM, Erik Dalén wrote: > Would the reboot_pending fact return true on Unix after a newer kernel > version has been installed but the system isn't rebooted yet? > If I understand the armature correctly the fact example is simply something that could be implemented at an

Re: [Puppet Users] Hiera Automatic Parameter Lookup Question

2013-04-18 Thread Brian Lalor
When you use the hiera() function, you ate by definition not doing automatic param lookup. :-) whatever you put in for the first argument is the key that will be looked up via hiera verbatim. If you leave the class parameter without a default and instantiate it without a value, puppet will prefi

[Puppet Users] Announce: Hiera 1.2.1 Available

2013-04-18 Thread Matthaus Owens
Hiera 1.2.1 is a bugfix release in the 1.x series. To see a list of the issues addressed by this release, check out the 1.2.1 version in our issue tracker at: https://projects.puppetlabs.com/versions/398 Downloads are available at: * Source: https://downloads.puppetlabs.com/hiera/hiera-1.2.1.tar

[Puppet Users] Hiera Automatic Parameter Lookup Question

2013-04-18 Thread Alaric
This may be a dumb question, but here goes So I'm running on Puppet 3.1.1 on RHEL5, and i've been using Hiera since 2.5/2.6 ish and it's been great!! I was reading up on Automatic Parameter Lookups and would love to use it for my modules. But I can't seem to ever get Hiera/Puppet to load the

[Puppet Users] Re: [Puppet-dev] Managing System Reboots

2013-04-18 Thread Erik Dalén
Would the reboot_pending fact return true on Unix after a newer kernel version has been installed but the system isn't rebooted yet? On 18 April 2013 19:57, Josh Cooper wrote: > I've submitted a proposal for managing reboots, for Windows in particular. > Please review the document[1] and make c

[Puppet Users] Re: Best practice to always fully qualify classes with :: ?

2013-04-18 Thread Ken Coar
ARAIK, we haven't had to do that for anything except parameters from the node manifest, and we haven't completely finished doing that. Isn't this covered somewhere in the 'death of dynamic scoping' discussions/documentation? #k -- You received this message because you are subscribed to the Go

[Puppet Users] How to remove a node from Puppet CA, Puppet DB from a remote host

2013-04-18 Thread Rajul Vora
I need to programmatically remove cert from Puppet master and remove all information in Puppet DB for a node from another machine which is neither Puppet Master or PuppetDB. It does have a Puppet signed cert since it is also provisioned using Puppet. I can't find any decent documentation on th

[Puppet Users] Best practice to always fully qualify classes with :: ?

2013-04-18 Thread Matthias Saou
Hi, I've been bitten by this quite a few times now, so it got me wondering... When I have both the following classes available : nagios::client mycompany::nagios::client And I decide to "include nagios::client", things get weird. What I've seen is that even if it's from the top scope, puppet ca

[Puppet Users] Fetching class parameteres fails when tiering node inheritance under puppet 3.x

2013-04-18 Thread Gerard B
Hi, I'm running into some trouble when trying to access some variables which actually are a class parameter. The following works OK: node "common" { $var='foo' } node "gratia-base" inherits common { class { 'gratia': dbhost => 'server.mysite.net', } } node "node

[Puppet Users] Fileserver on a client rather than a puppetmaster

2013-04-18 Thread Ken Coar
Background: The puppetmasters are under the authority and control of a specific group (not mine ;-) ). Client sysadmins have control over the node manifests and, to a certain extent, can modify the puppet modules. One of the modules (and potentially others) used by my group uses a lot of files th

[Puppet Users] Re: Anyone managed to integrate Ambari/Hortonworks with an existing puppet installation?

2013-04-18 Thread Yusaku Sako
Hi John, You are looking at an old version of HDP (1.1). The current version is HDP 1.2.3.1: http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3.1/bk_using_Ambari_book/content/ambari-chap1.html HDP 1.2.3.1 is based on Ambari 1.2.2, which is very different from the Ambari version packaged wit

[Puppet Users] Managing System Reboots

2013-04-18 Thread Josh Cooper
I've submitted a proposal for managing reboots, for Windows in particular. Please review the document[1] and make comments on the associated pull request[2]. For more information about the armature process itself, please see[3] Josh [1] https://github.com/joshcooper/armatures/blob/reboot/arm-14.

Re: [Puppet Users] Re: [ANN] puppet-cleaner: makes puppet DSL code comply with a subset of the style guide

2013-04-18 Thread Gerardo Santana Gómez Garrido
Hi Alcy, that's nice! I used puppet-lint before writing puppet-cleaner and was very useful at the time. Thanks to the author for writing it. puppet-lint has an issue though that may make it more difficult to implement those corrections: it uses regular expressions to tokenize the source code.

Re: [Puppet Users] Deploying Modules on Windows Node without using Dashboard (Puppet Enterprise Console)

2013-04-18 Thread Ryan Coleman
Hi. I apologize for my delay. I missed your reply. On Thu, Apr 11, 2013 at 6:20 PM, wrote: > Let me explain what I did: > - 1. Installed 3 new Modules on the Puppet Master > - 2. Went to the Dashboard, Added the new Classes > - 3. In the Dashboard, also Edited the Node to add the new Classes to

Re: [Puppet Users] Re: [ANN] puppet-cleaner: makes puppet DSL code comply with a subset of the style guide

2013-04-18 Thread Dan White
I just tried it and the "fix" option does not. [root manifests]# puppet-lint -v Puppet-lint 0.4.0.pre1 [root manifests]# puppet-lint --fix init.pp WARNING: double quoted string containing no variables on line 21 The example clearly shows this warning cause getting corrected “Sometimes I think

Re: [Puppet Users] Re: [ANN] puppet-cleaner: makes puppet DSL code comply with a subset of the style guide

2013-04-18 Thread Mohit Chawla
Hello, On Thu, Apr 18, 2013 at 10:22 PM, Gerardo Santana Gómez Garrido < gerardo.sant...@gmail.com> wrote: > A small follow up: the gem has just been pushed to rubygems, and you can > read more about the motivation for this at > http://santanatechnotes.blogspot.mx/2013/04/puppet-cleaner-010-relea

[Puppet Users] Re: [ANN] puppet-cleaner: makes puppet DSL code comply with a subset of the style guide

2013-04-18 Thread Gerardo Santana Gómez Garrido
A small follow up: the gem has just been pushed to rubygems, and you can read more about the motivation for this at http://santanatechnotes.blogspot.mx/2013/04/puppet-cleaner-010-released.html El martes, 16 de abril de 2013 17:31:38 UTC-5, Gerardo Santana Gómez Garrido escribió: > > FWIW, > > I

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

2013-04-18 Thread Matthias Saou
Thanks for the bug report link! I'll definitely be eagerly waiting for 3.2, and will try the RC for sure. In the meantime, even using the quoted "false" means that I'll need to adapt my classes, since I'm doing simple existence/bool checks : if $service { ... } So when $service is the "false" st