[Puppet Users] Re: Template with array and nested hash

2013-04-16 Thread Daniele Sluijters
Hi, So you have an array containing one or multiple hashes which in turn contains an array of rules which are hashes by themselves. In templates you use erb, so embedded ruby. Therefor you can use just about any construct from the Ruby language, including how you can do things with Arrays and

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

2013-04-16 Thread Boyan Tabakov
Hi John, Thanks for your reply! On 15.4.2013 18:02, jcbollinger wrote: Single point of entry does not serve well and is not a particularly useful goal when the desired results are very divergent. The single declaration then becomes magical, and therefore difficult to understand and

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

2013-04-16 Thread Brent Clark
Good day Im using puppet 2.7.18 and hiera 1.1.0. I would like to ask. For some servers I manage I use the following to pull in 'custom classes'. hiera_include('classes') And it all works very well. But Im now have a class that I now need to class via hiera, and pass arguments too (the

[Puppet Users] Re: testing static manifests

2013-04-16 Thread Bernardo Costa
The closest I could get until now is something like this link about using vagrant: http://blog.codecentric.de/en/2012/02/automated-virtual-test-environments-with-vagrant-and-puppet/ In one way or another, it looks like the real test has to be done in a (let's say linux) box without a specific

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

2013-04-16 Thread llowder
On Tuesday, April 16, 2013 4:19:26 AM UTC-5, Brent wrote: Good day Im using puppet 2.7.18 and hiera 1.1.0. I would like to ask. For some servers I manage I use the following to pull in 'custom classes'. hiera_include('classes') And it all works very well. But Im now have a

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

2013-04-16 Thread jcbollinger
On Tuesday, April 16, 2013 7:35:01 AM UTC-5, llowder wrote: On Tuesday, April 16, 2013 4:19:26 AM UTC-5, Brent wrote: Good day Im using puppet 2.7.18 and hiera 1.1.0. I would like to ask. For some servers I manage I use the following to pull in 'custom classes'.

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

2013-04-16 Thread jcbollinger
On Tuesday, April 16, 2013 3:52:40 AM UTC-5, Boyan Tabakov wrote: It is not website related components, but indeed web-server - vhost definitions, special apache configuration files (e.g. module configuration overrides, etc). Besides, the apache was just an example, I have other cases

[Puppet Users] Re: Hiera misbehavior: Dynamic data source notation

2013-04-16 Thread jcbollinger
On Monday, April 15, 2013 12:06:25 PM UTC-5, Ygor wrote: http://docs.puppetlabs.com/hiera/1/hierarchy.html#location-and-syntax Dynamic data source - It says I should use %{::variable} notation for the hierarchy in the hiera.yaml file. Well, that overstates the case slightly. The docs

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

2013-04-16 Thread Mohit Chawla
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 ? On Tue, Apr 16, 2013 at 6:34 PM, jcbollinger john.bollin...@stjude.orgwrote: On Tuesday, April 16, 2013 7:35:01 AM UTC-5, llowder wrote:

[Puppet Users] Re: Managing uniform package baselines (declaring *many* packages) - any tricks?

2013-04-16 Thread jcbollinger
On Monday, April 15, 2013 9:13:27 AM UTC-5, Kodiak Firesmith wrote: Hello, Our group is currently moving from RHEL5 and an in-house baseline management system and yum repositories to RHEL6, Puppet , and RHN Satellite. With our old homebrew management framework we had a lot of flexibility

[Puppet Users] DoDPuppet project

2013-04-16 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
For those inside the US Department of Defense, the DoD Puppet project on Software.forge.mil https://software.forge.mil/sf/projects/dodpuppet has seen some activity recently. (I apologize for posting a link to a site that most of those on the puppet-users list can't access, but this is the place

[Puppet Users] Re: Using onlyif for Windows exec

2013-04-16 Thread jcbollinger
On Monday, April 15, 2013 9:14:21 AM UTC-5, Gary Park wrote: Hello, I am in the process of trying out Puppet, and so far, it is going really well, and I can see a clear line of how we can use it internally. I do have one question though with regard to the using the onlyif parameter of

[Puppet Users] Puppet Dashboard errror

2013-04-16 Thread Jithin Xavier
Hi All, For some reason my puppet dashborad is not starting and new node requests are not displaying in dashboard. I am getting following error while restarting Puppet dashboard. root@PuppetMaster:/etc/puppetlabs/puppet/modules# /etc/init.d/pe-puppet-dashboard-workers start * Starting PE

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

2013-04-16 Thread Rahul Khengare
thanks for reply, first let me again describe my problem in detail. I have two database server db01 and db02, on the database server (db01) i have to install and configure postgresql and pg_statinfo module and on database server(db02) i have to install and configure only postgresql. I created

[Puppet Users] Re: hiera hiera-gpg

2013-04-16 Thread rashmi shiv
Hi , I Am new to puppet ,have setup the master and client.Now i am facing problem .Just cretated on module and ran the puppet on client. I am unable to see the output. For exaxmple :installed jboss but unable to view the output when i run puppettd . I have downloaded the puppet -jboss module

[Puppet Users] How to get return code of a command used in a custom provider.

2013-04-16 Thread Schofield
When using optional_commands in a custom provider is there a means to get the return code of the execution? Something similar to echo $? on Linux. For example, if I define foo optional_commands :foo = 'foo' I want to execute foo() and test if it was successful or not with in some conditional

[Puppet Users] testing custom types?

2013-04-16 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
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 from three years ago (https://github.com/mikepea/puppet-git,

[Puppet Users] Microsoft dotNet Framework 4.0 (.net, .netfx, dotnetfx)

2013-04-16 Thread Kevin D
I noticed an issue when trying to deploy Microsoft .NET Framework 4.0 using Puppet's package resource type. On first run, Puppet appropriately installs the package. But on each subsequent run, puppet invokes a repair of the framework (see attached picture). Has anyone else encountered this?

[Puppet Users] Re: Using onlyif for Windows exec

2013-04-16 Thread Gary Park
Hello, Thanks for getting back to me. I think I forgot to mention, I am using this: http://forge.puppetlabs.com/joshcooper/powershell Does this change how the onlyif parameter interprets what it is provided? Thanks Gary On Tuesday, April 16, 2013 3:54:19 PM UTC+1, jcbollinger wrote:

Re: [Puppet Users] Microsoft dotNet Framework 4.0 (.net, .netfx, dotnetfx)

2013-04-16 Thread Josh Cooper
On Tue, Apr 16, 2013 at 12:56 PM, Kevin D kevin.dimic...@pearson.comwrote: I noticed an issue when trying to deploy Microsoft .NET Framework 4.0 using Puppet's package resource type. On first run, Puppet appropriately installs the package. But on each subsequent run, puppet invokes a repair

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

2013-04-16 Thread Gerardo Santana Gómez Garrido
FWIW, I've wrote puppet-cleaner to help me make comply thousands of lines of puppet 2.6 DSL code to puppet 2.7 style guide and expectations. I'm uploading it to github today for anyone to use. https://github.com/santana/puppet-cleaner Externally, you run puppet-clean file.pp and it can

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

2013-04-16 Thread Justin Stoller
On Tue, Apr 16, 2013 at 1:29 PM, Gary Park gep...@gmail.com wrote: Hello, Thanks for getting back to me. I think I forgot to mention, I am using this: http://forge.puppetlabs.com/joshcooper/powershell Does this change how the onlyif parameter interprets what it is provided? yes it

Re: [Puppet Users] Microsoft dotNet Framework 4.0 (.net, .netfx, dotnetfx)

2013-04-16 Thread Kevin D
Josh, Thanks for the prompt reply! I forgot about that requirement for the resource name. This leads to an interesting issue. The file 'dotNetFx40_Full_x86_x64.exe' performs, two installations: - Microsoft .NET Framework 4 Extended - Microsoft .NET Framework 4 Client Profile Is

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

2013-04-16 Thread Larry Fast
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? I think my problem is a plugin that runs fine in Unix but does not work properly in windows. Side issue: diagnostics could have been better.