[Puppet Users] hiera_hash explanation?

2011-09-06 Thread niksfirefly
Hi I want to create parametrized class with hash parameter from hiera .yaml file so i got hiera.yaml backends: - yaml - json - puppet :hierarchy: - %{host} - common :json: :datadir: /etc/puppet/hiera :yaml: :datadir: /etc/puppet/hiera :puppet:

Re: [Puppet Users] hiera_hash explanation?

2011-09-06 Thread R.I.Pienaar
- Original Message - Hi I want to create parametrized class with hash parameter from hiera .yaml file so i got hiera.yaml backends: - yaml - json - puppet :hierarchy: - %{host} - common :json: :datadir: /etc/puppet/hiera :yaml:

[Puppet Users] Re: hiera_hash explanation? - SOLVED

2011-09-06 Thread niksfirefly
just do hiera(mailserver) hiera_hash is a special lookup that builds a hash based on data found at many levels of the hierarchy, if you have a single key with a array or hash in it, then just look it up with hiera() thank u now it works! -- You received this message because you are

[Puppet Users] Cross-nodes modules: howto?

2011-09-06 Thread Francis GALIEGUE
Let's say I have a web application which I want to deploy separately: * the static content and appropriate configuration on a machine with Apache on it, * the dynamic content and appropriate configuration on a machine with Tomcat on it. Is there a possibility to write a module which takes as an

[Puppet Users] Re: Puppet unable to find a defined resource.

2011-09-06 Thread jcbollinger
On Sep 2, 1:21 pm, Brad Krane brad.kr...@gmail.com wrote: Here is a very simple manifest that recreates this error: class foo {   define bar ( $val ) {     notice(bar($val))   } } $some_hash = { 'name' = some_name } foo::bar { $some_hash['name']: } Puppet::Parser::AST::Resource

[Puppet Users] Skipped schedule resources in reports

2011-09-06 Thread Greg Sutcliffe
Hi all, Since upgrading a few test machines from 2.6.7 to 2.7.3, I've noticed something slightly odd. Every single run reports 6 skipped resources, yet the reports are empty - they only state the execution time as per usual). On digging further it seems that the auto-generated Schedule

[Puppet Users] config files for ruby dsl manifests

2011-09-06 Thread Matt
I know I brought this up in a different post a while ago in as a different question. Whats the best way to locate a configuration file from a ruby manifest? I'm tring to load a yaml for database properties but so far the only way to make it work is if I explicitly define a path either manually or

Re: [Puppet Users] Cross-nodes modules: howto?

2011-09-06 Thread Brian Gallew
I do this with a define. In my case, I define a web application and pass in several arrays of hosts. This expands, in turn, to a series of if statements that check to see which array (if any) $hostname is in and then sets appropriate variables. I use this to generate Nagios hostgroups, assign

[Puppet Users] classes with parameters

2011-09-06 Thread David Kavanagh
I have a node def that refers to 2 classes like this; node default { class { [ eucalyptus, eucalyptus::nc ]: } } The 2nd requires the first class. Now, I've added parameters to the 2nd class and would like to set values here. What is the appropriate way to do that? I'm looking at the

Re: [Puppet Users] classes with parameters

2011-09-06 Thread Gabriel Filion
Hi, On 11-09-06 11:11 AM, David Kavanagh wrote: I have a node def that refers to 2 classes like this; node default { class { [ eucalyptus, eucalyptus::nc ]: } } The 2nd requires the first class. Now, I've added parameters to the 2nd class and would like to set values

[Puppet Users] Slightly OT: Puppet + OpenQRM

2011-09-06 Thread treydock
I've recently been looking to move my KVM management (currently via Puppet and virt-manager) to something web-based and robust (ie Cloud), and came across OpenQRM. Looking at the features list it mentions puppet Class/Machine management. Has anyone that uses Puppet extensively given this a try?

Re: [Puppet Users] config files for ruby dsl manifests

2011-09-06 Thread Nan Liu
On Tue, Sep 6, 2011 at 7:24 AM, Matt mjbl...@gmail.com wrote: I know I brought this up in a different post a while ago in as a different question. Whats the best way to locate a configuration file from a ruby manifest? I'm tring to load a yaml for database properties but so far the only way

[Puppet Users] Re: config files for ruby dsl manifests

2011-09-06 Thread Matt
I'm trying to write a ruby dsl manifest that pulls data from a database. The issue I'm trying to overcome is I dont want to have to hardcode the location of the db configuration. If I set it at the init.pp level the configuration it will be picked up as top scope and dumped to the facts, and also

Re: [Puppet Users] Re: config files for ruby dsl manifests

2011-09-06 Thread Nan Liu
On Tue, Sep 6, 2011 at 9:08 AM, Matt mjbl...@gmail.com wrote: I'm trying to write a ruby dsl manifest that pulls data from a database. The issue I'm trying to overcome is I dont want to have to hardcode the location of the db configuration. If I set it at the init.pp level the configuration it

Re: [Puppet Users] puppet dashboard 1.2.0 install problem on ubuntu 10.04

2011-09-06 Thread Bram Vogelaar
turns out that the dashboard workers need to run as root instead of www-data because the fact that the reports are create by the root user On 6 September 2011 01:08, Denmat tu2bg...@gmail.com wrote: Hi, Not sure of the exact answer but can your www-data user read that directory? What user is

Re: [Puppet Users] Slightly OT: Puppet + OpenQRM

2011-09-06 Thread James Turnbull
treydock wrote: I've recently been looking to move my KVM management (currently via Puppet and virt-manager) to something web-based and robust (ie Cloud), and came across OpenQRM. Looking at the features list it mentions puppet Class/Machine management. Has anyone that uses Puppet

[Puppet Users] Re: config files for ruby dsl manifests

2011-09-06 Thread Matt
I am using 2.6.6, when I try your example I get a empty string back, I tried with 'module_name' and the actual name of the module and both return an empty string. On Sep 6, 12:27 pm, Nan Liu n...@puppetlabs.com wrote: On Tue, Sep 6, 2011 at 9:08 AM, Matt mjbl...@gmail.com wrote: I'm trying

Re: [Puppet Users] classes with parameters

2011-09-06 Thread Gabriel Filion
On 11-09-06 12:15 PM, David Kavanagh wrote: Thanks, It wasn't clicking that it was an array notation. hep, no problem ;) I thought it was a little bit weird too, to be changing from include classname to class { 'classname': ...}. (e.g. because of the 'class' reserved word, it now looks like

[Puppet Users] The require function

2011-09-06 Thread Douglas Garstang
The puppet documentation at http://docs.puppetlabs.com/references/stable/function.html says for the require function, that: Evaluate one or more classes, adding the required class as a dependency. This implies that any resources in the required class are automatically added as a dependancy. I'm

[Puppet Users] Re: The require function

2011-09-06 Thread Douglas Garstang
On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang doug.garst...@gmail.com wrote: The puppet documentation at http://docs.puppetlabs.com/references/stable/function.html says for the require function, that: Evaluate one or more classes, adding the required class as a dependency. This implies

[Puppet Users] OS X Lion group membership not updated

2011-09-06 Thread David Thompson
Switching to puppet (2.7.3) for managing my OS X Lion systems, I'm finding group membership not being updated. Starting out, user dt is not a member of group dt-grp: # dscl . read /groups/dt-grp | grep GroupMembership GroupMembership: ...Run puppet, says it adds to the group: # puppet agent

[Puppet Users] Package provider for gentoo?

2011-09-06 Thread Peter Berghold
Once again I'm experimenting with the Gentoo Linux distro and trying to get puppet to work with it. I'm starting to think it is a lost cause. In my puppet setup I have a list of packages that are built on any system that I support regardless of the systems final use. These include tmpwatch,

Re: [Puppet Users] OS X Lion group membership not updated

2011-09-06 Thread James Turnbull
David Thompson wrote: Switching to puppet (2.7.3) for managing my OS X Lion systems, I'm finding group membership not being updated. Any help much appreciated... David I think there are a bunch of OSX Lion bugs in the ticket DB that might be worth checking if this one is picked up.

Re: [Puppet Users] Package provider for gentoo?

2011-09-06 Thread James Turnbull
Peter Berghold wrote: Now I get: err: Could not prefetch package provider 'portage': Command update_eix is missing I'm running puppet 2.7.3 on both the puppet master and the client. Any thoughts? Caveat: I am not a Gentoo person. Is the binary update_eix present on the host? James --

Re: [Puppet Users] Package provider for gentoo?

2011-09-06 Thread Peter Berghold
Doing a google after I sent the email I found the following page: http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Gentoo after doing a emerge eix and re-running the puppet transaction things *look* to be going normally can't tell for sure since it is still running and it is not

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Craig White
On Sep 6, 2011, at 11:58 AM, Douglas Garstang wrote: On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang doug.garst...@gmail.com wrote: The puppet documentation at http://docs.puppetlabs.com/references/stable/function.html says for the require function, that: Evaluate one or more classes,

Re: [Puppet Users] Re: The require function

2011-09-06 Thread R.I.Pienaar
- Original Message - class platform::common { file { '/etc/somedir': ensure = directory; } class webapp::common { require platform::common file { /etc/somedir/configfile: # stuff here. } } When puppet runs,

Re: [Puppet Users] Re: The require function

2011-09-06 Thread R.I.Pienaar
- Original Message - That's a feature in newish versions, right? no, it's been there for ages and ages. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To

Re: [Puppet Users] Package provider for gentoo?

2011-09-06 Thread Matthew Marlowe
Peter, Puppet works great on gentoo with the following caveats: - Puppet conceptually uses a binary package paradigm, and one needs to work around that. It would be nice if we could extend puppet for gentoo to make it more source based distribution aware and especially allow it to manage portage

Re: [Puppet Users] Package provider for gentoo?

2011-09-06 Thread Daniel Pittman
On Tue, Sep 6, 2011 at 13:26, Matthew Marlowe m...@professionalsysadmin.com wrote: Puppet works great on gentoo with the following caveats: - Puppet conceptually uses a binary package paradigm, and one needs to work around that.  It would be nice if we could extend puppet for gentoo to make

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Douglas Garstang
On Tue, Sep 6, 2011 at 1:19 PM, R.I.Pienaar r...@devco.net wrote: - Original Message - That's a feature in newish versions, right? no, it's been there for ages and ages. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post

Re: [Puppet Users] Package provider for gentoo?

2011-09-06 Thread Matthew Marlowe
This comes down to the package provider depending on eix, which is presumably some sort of interface to portage that isn't standard; fixing the provider should fix the problem there.  That pretty much depends on someone who cares sending an appropriate patch.  (hint ;) That's probably most