[Puppet Users] variable not replace when come from hiera

2012-11-23 Thread fpommier
Hi, I use puppet 2.7.16 i try to use hiera to store file data yaml file : apt: '/etc/apt/preferences.d': ensure: directory recurse: true source: "puppet:///$environment/$module_name/preferences.d" When i try to use it with create_resource , it fail because $environment and $modul

[Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-23 Thread Alaric
Hi, I'm having a weird issue and was wondering if anyone else had run into it. I recently upgraded from puppet 2.7 -> 3.0.1 After cleaning up some gems on my puppet master everything seemed to be working ok. I had originally used the EPEL repo's to deploy puppet, but switched to the Puppet L

[Puppet Users] Re: Scope problem in 2.7.12, bug?

2012-11-23 Thread Walter Heck - OlinData.com
Bug reported here: http://projects.puppetlabs.com/issues/17799 On Mon, Nov 19, 2012 at 5:14 PM, jcbollinger wrote: > > > On Sunday, November 18, 2012 2:35:56 PM UTC-6, Walter Heck - OlinData.com > wrote: >> >> Hello, >> >> On Sun, Nov 18, 2012 at 6:47 PM, Stefan Heijmans >> wrote: >> > No, i's n

Re: [Puppet Users] Re: Puppet & Oracle Database config management

2012-11-23 Thread Stefan Schulte
On Thu, Nov 22, 2012 at 04:18:02AM -0800, Gavin Williams wrote: > Ok, I've come back to this functionality, and need to move it along... > > My challenge now is how I can use the oratab resource to trigger other > actions... > > So if oratab creates a new entry in /etc/oratab, then I want to i

Re: [Puppet Users] how to query yaml file with hiera function.

2012-11-23 Thread Dominik Żyła
Hi, 2012/11/23 Evelio VILA > Hi guys, > > i have a hiera.yaml config file like this: > > --- > :hierarchy: > - %{env}/%{tmp_module_name} > - %{env}/%{tmp_module_name}.common > :backends: > - yaml > :yaml: > :datadir: '/etc/puppet/hieradata' > > > I also have a test/some_module.ya

Re: [Puppet Users] Best practices on puppet installation

2012-11-23 Thread Dominik Żyła
Hello, 2012/11/23 Walter Heck > On Fri, Nov 23, 2012 at 3:46 PM, Ugo Bellavance wrote: > > But will I need to put all my agents to 3.0 as well? > You'll be better off if you switch now, since the 2.x releases are in > bugfix-only state. > You don't need to upgrade your agents. They would work

Re: [Puppet Users] Best practices on puppet installation

2012-11-23 Thread Walter Heck
On Fri, Nov 23, 2012 at 3:46 PM, Ugo Bellavance wrote: > But will I need to put all my agents to 3.0 as well? You'll be better off if you switch now, since the 2.x releases are in bugfix-only state. > On Thursday, November 22, 2012 6:16:26 PM UTC-5, Pete wrote: >>> able to make the rest work (par

[Puppet Users] exec 'refresh' attribute possible values

2012-11-23 Thread badbishop
A quote from http://docs.puppetlabs.com/references/latest/type.html#exec refreshHow to refresh this command. By default, the exec is just called > again when it receives an event from another resource, but this parameter > allows you to define a different command for refreshing. A different co

[Puppet Users] how to query yaml file with hiera function.

2012-11-23 Thread Evelio VILA
Hi guys, i have a hiera.yaml config file like this: --- :hierarchy: - %{env}/%{tmp_module_name} - %{env}/%{tmp_module_name}.common :backends: - yaml :yaml: :datadir: '/etc/puppet/hieradata' I also have a test/some_module.yaml file like this: --- db: root: pass

[Puppet Users] Re: passing array param to hiera

2012-11-23 Thread mickael avedissian
FYI, if I replace $hostnames = [ 'dummy_host', 'dummy_host1' ] by $hostnames = 'dummy_host' this works. On Friday, November 23, 2012 12:19:11 PM UTC-5, mickael avedissian wrote: > > Hi, > > I'm having an issue trying to pass an array parameter for a hiera lookup > > hiera.yaml: > :hierarchy: >

[Puppet Users] passing array param to hiera

2012-11-23 Thread mickael avedissian
Hi, I'm having an issue trying to pass an array parameter for a hiera lookup hiera.yaml: :hierarchy: - some_place/%{hostnames} dummy_host.yaml: --- host: 'dummy_host' instances: dummy01:1.2.3.4 dummy02:1.2.3.4 dummy03:1.2.3.4 in my manifest I have: $hostnames = [ 'dummy_host', 'dummy_h

Re: [Puppet Users] Best practices on puppet installation

2012-11-23 Thread Ugo Bellavance
But will I need to put all my agents to 3.0 as well? Ugo On Thursday, November 22, 2012 6:16:26 PM UTC-5, Pete wrote: > > On 22 November 2012 23:20, Ugo Bellavance >wrote: > >> Hi, >> >> We have ~20 Red Hat servers and usually use EPEL as third-party repo. >> I'm currently using the packages

[Puppet Users] Re: Best practices on puppet installation

2012-11-23 Thread Ugo Bellavance
Thanks Pete, Ugo On Thursday, November 22, 2012 8:20:31 AM UTC-5, Ugo Bellavance wrote: > > Hi, > > We have ~20 Red Hat servers and usually use EPEL as third-party repo. I'm > currently using the packages provided by this repo (2.6.17-2), but I was > wondering what were the pros and cons of us

Re: [Puppet Users] Fileserver in standalone mode.

2012-11-23 Thread Brice Figureau
On Thu, 2012-05-24 at 09:37 -0700, btimby wrote: > I am using puppet in standalone mode (puppet apply) to test manifests > that I also use in a client/server configuration. > > I have everything working as far as files included in modules. I can > reference file source as "puppet:///modules/module

[Puppet Users] Report processor and available variables

2012-11-23 Thread Jean Baptiste Favre
Hello, I'm trying to build a custom report processor so that I can get puppet metrics into Zabbix. I found one here: https://github.com/thomasvandoren/puppet-zabbix which basically works. The problem I have is that report processor mostly use self.host as hostname. But it represent certname i

[Puppet Users] Re: Fileserver in standalone mode.

2012-11-23 Thread Paul Tötterman
> > My workaround for now is to simply move the files to a module named files > and reference them as "puppet:///modules/files/path/to/file", but it seems > like there might be a better solution. I don't know about better, but you can also use file:///... URIs in the source parameter. Cheers

[Puppet Users] Re: Best Practices on node declaration

2012-11-23 Thread AnOnJoe
Thank you very much guys. Hiera saved my life ;-) Le mercredi 21 novembre 2012 18:46:06 UTC+1, AnOnJoe a écrit : > > Hello, > > I would like to know what are the best pratices in node declaration. > > I tried to play with inheritance with failures : > Here my* puppet/manifest/site.pp* > > nod