Re: [Puppet Users] Re: postgres plugin puppetdb

2012-08-08 Thread Antidot SAS
Hi, The configuration files are attached. Here is the postgres login: [root@puppetmaster]:/data/local/postgresql/dumps # psql -h localhost puppetdb puppetdb psql (8.4.12) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help. puppetdb=> \l Lis

Re: [Puppet Users] Type Service: ignore "notify"

2012-08-08 Thread Erik Dalén
On 7 August 2012 17:20, tobias wrote: > Hi, > > Is it possible to configure a service to ignore notifies? > I'd like to have some special cases where a "notify => Service['xyz']" is > ignored by the service "xyz"... (The service is managed by Pacemaker and I > don't want Puppet to manage this ser

Re: [Puppet Users] Type Service: ignore "notify"

2012-08-08 Thread tobias
That worked! Thanks a lot... On Wednesday, August 8, 2012 10:37:33 AM UTC+2, Erik Dalén wrote: > > On 7 August 2012 17:20, tobias > wrote: > > Hi, > > > > Is it possible to configure a service to ignore notifies? > > I'd like to have some special cases where a "notify => Service['xyz']" > is

Re: [Puppet Users] Delete "unmanaged" files in directory

2012-08-08 Thread Calvin Walton
On Tue, 2012-08-07 at 22:53 -0700, Axel Bock wrote: > Hello readers, > > I might have the need for something like "delete all unmanaged files". > Explanation: I am creating a bunch of apache config files, which contain > information about the hostname and the port they're listening on. Now if I

Re: [Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-08 Thread jcbollinger
On Tuesday, August 7, 2012 2:26:47 PM UTC-5, Ygor wrote: > > - jcbollinger wrote: > > > > > > On Monday, August 6, 2012 10:48:25 AM UTC-5, Ygor wrote: > > > > > > I am putting together some system improvements based on using the > > > stdlib::facter-dot-d and I have a few questions: >

[Puppet Users] Re: Scope Confusion!

2012-08-08 Thread jcbollinger
On Tuesday, August 7, 2012 1:25:32 PM UTC-5, Douglas wrote: > > As usual, I'm confused about scope in puppet. This puppet 2.7.1. > > In my classes below, the bottom class, company::web::content, requires > the file resource '/usr/local/company'. However, that resource is > defined two includes

Re: [Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-08 Thread Dan White
- jcbollinger wrote: > On Tuesday, August 7, 2012 2:26:47 PM UTC-5, Ygor wrote: > > > > - jcbollinger wrote: > > > On Monday, August 6, 2012 10:48:25 AM UTC-5, Ygor wrote: > > > > > > > > I am putting together some system improvements based on using the > > > > stdlib::facter-dot-d and

[Puppet Users] Re: setting different values to same variables

2012-08-08 Thread jcbollinger
On Wednesday, August 8, 2012 12:49:57 AM UTC-5, Axel Bock wrote: > > Hi Oren, > > I'm kind of new to puppet myself - but I think this is not working as you > might like. If you import a class with your definitions, your scope changes > AFAIK. So between > import more_defs.qa > and > import mor

[Puppet Users] "tidy" is not :)

2012-08-08 Thread Dan White
In a node, for a test, I have: tidy { '/opt/home/users/george': age => "1w", recurse => true, rmdirs => true, } and when I ran it, it cleaned out all the files under "george", but not the directories. There are two directories, one with today's date on it (I expect that one to stay)

[Puppet Users] Exec resource don't write file after the command

2012-08-08 Thread Rost
Hi all, I'm trying to have the exec resource write a file after the command but it don't. here is the resource declaration class gepet { notify { 'begin':} file { '/root/essai/html': ensure => present, content => "Wrote By Yves Nton", notify => Exec['test'], } exec { 'test': path => "/usr/bin

Re: [Puppet Users] Exec resource don't write file after the command

2012-08-08 Thread Brian Gallew
The "creates" attribute tells Puppet that the "command" attribute actually creates a file, and that the Exec{} should not be run if that file exists. You need to alter your command: command => "rm -rf /root/essai/html;touch /root/essai/exec.txt" On Wed, Aug 8, 2012 at 6:42 AM, Rost wrote: > Hi

[Puppet Users] Re: Exec resource don't write file after the command

2012-08-08 Thread Rost
thanks Brian, You are right !!! It's working Le mercredi 8 août 2012 15:42:02 UTC+2, Rost a écrit : > > Hi all, > > I'm trying to have the exec resource write a file after the command but it > don't. > > here is the resource declaration > > class gepet { > notify { 'begin':} > file { '/root/es

Re: [Puppet Users] new module created , but does not load ( is ignored)

2012-08-08 Thread jcbollinger
On Tuesday, August 7, 2012 9:21:10 AM UTC-5, TORO wrote: > > > Am Dienstag, 7. August 2012 15:08:38 UTC+2 schrieb jcbollinger: >> >> >> >> On Tuesday, August 7, 2012 2:47:05 AM UTC-5, TORO wrote: >>> >>> Yes you are right , : >>> b) the class itself is not being included properly elsewher

Re: [Puppet Users] Custom Facts

2012-08-08 Thread jcbollinger
On Tuesday, August 7, 2012 8:45:45 AM UTC-5, Yaniv Fine wrote: > > well its wroking for me now . > newbie question . > if i put the test.rb file inside > > modules/common/test/lib/facter/test.rb > is it normal that it runs automatically on all servers without a way for > me to control what mac

[Puppet Users] Re: update yumrepo followed by packages updates.

2012-08-08 Thread jcbollinger
On Tuesday, August 7, 2012 5:46:31 PM UTC-5, trey85stang wrote: > > Hey All, > > I have an issue I need help working around or determining if it is a > bug > > the issue is as follows, I have a custom repo(s) that has all my software > for a specific version release in it. A new version ge

Re: [Puppet Users] update yumrepo followed by packages updates.

2012-08-08 Thread Kristof Willaert
Hi, Issue: > 1) I update my VERSION variable > 2) the next puppet run and only updates the repo (no rpms are upgraded) > 3) next puppet run updates the rpms. > > There are no errors. but shouldn't my rpms update on the first run after > the variable change? > not sure if this causes it, but yum

Re: [Puppet Users] Custom Facts

2012-08-08 Thread Yaniv Fine
what is i put the rb file in another dir bellow the module dir . any way i can control what node will load it ? On Wed, Aug 8, 2012 at 5:16 PM, jcbollinger wrote: > > > On Tuesday, August 7, 2012 8:45:45 AM UTC-5, Yaniv Fine wrote: >> >> well its wroking for me now . >> newbie question . >> if i

[Puppet Users] Re: Tag Negation

2012-08-08 Thread Douglas Garstang
Anyone? Anyone? Sent from my iPhone On Aug 7, 2012, at 4:47 PM, Douglas Garstang wrote: > All, > > Is there a way to run puppet and specify to apply resources NOT > containing a tag? > > ie, negating something like this? > > puppetd --tags solaris > > The use case for this is to put a tag i

[Puppet Users] Re: setting different values to same variables

2012-08-08 Thread Oren Marmor
John, Axel, thanks for your comments defining default variable in module top-scope is exactly what i did but like you said, its not very pretty. i'll look at hiera, any ideas when its supposed to be released in puppet3? Oren. On Wednesday, August 8, 2012 4:37:23 PM UTC+3, jcbollinger wrote: > >

[Puppet Users] Switching agent to another environment does not work

2012-08-08 Thread Bernd Adamowicz
Tried to attach one of my agents to another environment with a command like this: puppet agent --verbose --debug --server my.puppet.master --environment my_new_env --no-daemonize But it still receives the old catalog of the old environment. No errors or warnings in log files both on master and

[Puppet Users] Problem with puppet-agent

2012-08-08 Thread mfons
On client: [root@xxx ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.7 (Tikanga) [root@xxx ~]# rpm -qa|grep puppet puppet-2.6.12-1.el5 On server: [root@server ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.7 (Tikanga) [root@server ~]# rpm -qa|grep puppe

[Puppet Users] exec executes remote command but the actual script not run

2012-08-08 Thread duckegg01
Hi I have wriiten a class to deploy a tra file and extract on a remote puppet client. The tar file gets copied across fine and it seems to puppet the thet tar extraction suceeds, but when I check the client I dont see the extracted files exec { "Deploy Code": command => "/bin/

[Puppet Users] Puppet Dashboard installation on Debian Wheezy

2012-08-08 Thread Deimos Fr
Hi, I've got an issue on installing Puppet Dashboard on Debian wheezy. When I launch the db:migrate, I've got an error : > > rake RAILS_ENV=production db:migrate --trace > NOTE: Gem.source_index is deprecated, use Specification. It will be > removed on or after 2011-11-01. > Gem.s

[Puppet Users] Puppet exec script generate exit 0 but script not run

2012-08-08 Thread duckegg01
Hi I have a simple class wriited to deploy a tar file and and extract on a puppet client; The copy of the tar file works fine, the dashboard logs indicate a successfull run but the tar file has not been extracted, exec { "Deploy Code": command => "/bin/tar -xvf /var/tmp/deplo

Re: [Puppet Users] Re: Issues with installing some modules !!!

2012-08-08 Thread Ryan Coleman
On Tue, Aug 7, 2012 at 10:44 PM, Rakesh K wrote: > > Actually I have tried fresh install of the module multiple times after > clearing all traces of the mysql package on the client but still getting the > same result. Ok. Have you tried using the released Forge module instead of the GitHub code i

Re: [Puppet Users] Switching agent to another environment does not work

2012-08-08 Thread Ryan Coleman
On Wed, Aug 8, 2012 at 8:45 AM, Bernd Adamowicz wrote: > Tried to attach one of my agents to another environment with a command like > this: > > puppet agent --verbose --debug --server my.puppet.master --environment > my_new_env --no-daemonize > > But it still receives the old catalog of the old

Re: [Puppet Users] exec executes remote command but the actual script not run

2012-08-08 Thread Peter Bukowinski
On Aug 8, 2012, at 5:40 AM, duckegg01 wrote: > Hi > > I have wriiten a class to deploy a tra file and extract on a remote puppet > client. The tar file gets copied across fine and it seems to puppet the thet > tar extraction suceeds, but when I check the client I dont see the extracted > file

RE: [Puppet Users] Re: Passing parameters for a class in Dashboard

2012-08-08 Thread Kenneth Lo
As I said parameters created by dashboard is on top scope. You can check out puppet’s doc regarding scoping. Assuming you don’t what to rely on their dynamic lookup (which is what they recommended since the feature is retiring) In your module you can reference global variable directly with the

Re: [Puppet Users] Re: postgres plugin puppetdb

2012-08-08 Thread Chris Price
Thanks JM. Your config files look good and the existence of all of those tables in your puppetdb database certainly makes it look as though puppetdb is communicating with postgres properly. Since increasing the heap size seems to have gotten you past the issues for now, my next guess is that i

Re: [Puppet Users] Puppet Dashboard installation on Debian Wheezy

2012-08-08 Thread Juan Sierra Pons
Hi Yesterday I had the same problem. I solved it using this link: http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#installing-dependencies Install the RubyGems package system with the script provided. Hope it helps. Best regards On Aug 8, 2012 5:59 PM, "Deimos Fr" wrote: >

Re: [Puppet Users] Re: Accessing a fileserver file from a custom function

2012-08-08 Thread j4m3s
Fantastic thank you Nan, I'll give this a try tonight. It should be easy to modify yours to do what I need, thank you for sharing it :) On Tuesday, August 7, 2012 10:52:42 PM UTC+1, Nan Liu wrote: > > On Tue, Aug 7, 2012 at 11:13 AM, Krzysztof Wilczynski > > wrote: > > Hi James, > > > > [...

Re: [Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-08 Thread Tim Mooney
In regard to: Re: [Puppet Users] Re: A few questions about setting up...: I want to use puppetlabs-stdlib and /etc/facter/facts.d to create a set of local facts. Some of these facts come in variable quantities. I would like to stack these up into a delimited string. I can deal with that. On

[Puppet Users] Puppet Master Forbidding Access to Cert Revocation List

2012-08-08 Thread kp-v
Hey folks; I am having issues retrieving the catalog from my master. It seems to be an issue with the ACLs for the /certificate_revocation_list/ca, however it still produces an error when I set the ACLs to allow everything! I am almost certain it has something to do with my non-default installa

Re: [Puppet Users] Re: A few questions about setting up Custom Facts

2012-08-08 Thread Dan White
- Tim Mooney wrote: > In regard to: Re: [Puppet Users] Re: A few questions about setting up...: > > > I want to use puppetlabs-stdlib and /etc/facter/facts.d to create a set > > of local facts. Some of these facts come in variable quantities. I > > would like to stack these up into a delimi

Re: [Puppet Users] "tidy" is not :)

2012-08-08 Thread Stuart Cracraft
What are the ownerships of the unremoved directories? Also, were the directories themselves not at least a week old? Perhaps a bug is lurking. If I am the Puppet pattern-applicator and I remove the files first, the directory file is updated and will fail the age test if that calculation is not

Re: [Puppet Users] "tidy" is not :)

2012-08-08 Thread Dan White
Valid questions, Stuart, but I get the same behavior if I set age to zero. I do a "chmod -vR a+rw" to the directory named in the resource, and it still misbehaves. I tried cleaning it out by hand, then putting things back in to be removed (tidy age still zero). All the new objects are owned by

[Puppet Users] Re: Problem with puppet-agent

2012-08-08 Thread jcbollinger
On Wednesday, August 8, 2012 10:51:31 AM UTC-5, mfons wrote: > > On client: > [root@xxx ~]# cat /etc/redhat-release > Red Hat Enterprise Linux Server release 5.7 (Tikanga) > [root@xxx ~]# rpm -qa|grep puppet > puppet-2.6.12-1.el5 > > On server: > [root@server ~]# cat /etc/redhat-release >

[Puppet Users] Re: setting different values to same variables

2012-08-08 Thread jcbollinger
On Wednesday, August 8, 2012 10:43:13 AM UTC-5, Oren Marmor wrote: > > John, Axel, thanks for your comments > defining default variable in module top-scope is exactly what i did but > like you said, its not very pretty. > i'll look at hiera, any ideas when its supposed to be released in puppet3?

Re: [Puppet Users] Custom Facts

2012-08-08 Thread jcbollinger
On Wednesday, August 8, 2012 10:06:27 AM UTC-5, Yaniv Fine wrote: > > what is i put the rb file in another dir bellow the module dir . > any way i can control what node will load it ? > I don't know, but I think it unlikely that you could get some nodes to run it but not others. What are you

Re: [Puppet Users] Re: Scope Confusion!

2012-08-08 Thread Douglas Garstang
On Wed, Aug 8, 2012 at 6:25 AM, jcbollinger wrote: > > > On Tuesday, August 7, 2012 1:25:32 PM UTC-5, Douglas wrote: >> >> As usual, I'm confused about scope in puppet. This puppet 2.7.1. >> >> In my classes below, the bottom class, company::web::content, requires >> the file resource '/usr/local/

Re: [Puppet Users] Problem with puppet-agent

2012-08-08 Thread Denmat
This sounds like a risky process to me. Wiping out your certs sounds like a hammer. Not sure how you are provisioning your nodes but even ssh call to the master during the provisioning to remove the cert (if it exists) would be preferable. Maybe you could look at alternatives, like generating

[Puppet Users] Announce: Facter 1.6.11 Available

2012-08-08 Thread Moses Mendoza
Facter 1.6.11 is a maintenance release candidate in the 1.6.x branch with bug fixes. It includes contributions from Andrew Parker, Matthaus Litteken, Dominic Cleal, Andrew Elwell, Michael Stahnke. Downloads are available at: * Source: https://downloads.puppetlabs.com/facter/facter-1.6.11.tar.gz

[Puppet Users] Symbolic Link directory of files

2012-08-08 Thread Allen
Is there a way to symbolically link files from one directory into another inside of Puppet? I did this: "/opt/openerp/server/openerp/addons/": owner => "openerp", group => "admin", links => "manage", ensure => directory, recurse => true,

[Puppet Users] Help with puppet variables

2012-08-08 Thread thiago
Hi, I'm a beginner on Puppet and i have one priority on my configuration. I have a lot of hosts and each one need different variables. Is it possible to configure a specific environment of these variables for each host? -- Thiago Silveira Alexandre LPI I Certified -- You received this message

[Puppet Users] Re: cert issues, puppet agent applying configs, problems oh my!

2012-08-08 Thread Zippy Zeppoli
I resolved the dnsdomain name issues by adding a FQDN (which dnsdomainname requires). I was under the impression puppet doesn't require a FQDN when using the hosts file, but I guess I'm wrong based on the behavior. Here is the output once this is fixed, (it still doesn't create the pidfile) htt

Re: [Puppet Users] Help with puppet variables

2012-08-08 Thread Ashley Penney
Hi, Good news! You sound like someone who would benefit greatly from Hiera. Hiera is part of Puppet 3 (you have to do a little bit more work with Puppet 2.7) and provides a way of providing different bits of data, via variables, for different hosts. If you take a look at http://puppetlabs.com/

Re: [Puppet Users] Re: Tag Negation

2012-08-08 Thread Peter Brown
I don't think the tag system was designed to be used like that. Have you checked all the docs? On 9 August 2012 01:19, Douglas Garstang wrote: > Anyone? Anyone? > > Sent from my iPhone > > On Aug 7, 2012, at 4:47 PM, Douglas Garstang wrote: > >> All, >> >> Is there a way to run puppet and specif

Re: [Puppet Users] Switching agent to another environment does not work

2012-08-08 Thread Peter Brown
Just in case you didn't know that command will only apply the environment for that run. It won't switch the node to the environment permanently, you need to set environment in puppet.conf to do that. On 9 August 2012 02:18, Ryan Coleman wrote: > On Wed, Aug 8, 2012 at 8:45 AM, Bernd Adamowicz >

[Puppet Users] Using ENC with existing node definitions

2012-08-08 Thread Foster Rilindo
I currently have puppet configured to use node definitions in /etc/puppet/manifests/node.pp. At the time, most of the machines are physical hosts. Now I need to start putting puppet on virtual guests. Ideally, I want to use an ENC for those guests, but I don't want to using the physical hosts w

Re: [Puppet Users] Using ENC with existing node definitions

2012-08-08 Thread Ryan Coleman
On Wed, Aug 8, 2012 at 6:18 PM, Foster Rilindo wrote: > I currently have puppet configured to use node definitions in > /etc/puppet/manifests/node.pp. At the time, most of the machines are physical > hosts. > > Now I need to start putting puppet on virtual guests. Ideally, I want to use > an EN

Re: [Puppet Users] Custom Facts

2012-08-08 Thread Yaniv Fine
In general . I am trying to parse a variable i have in a file in few of my servers and add it as a fact i can than use in a module . This specific file that reside in few of my servers have looks like value : var .inside the rb file i do facter.add .and add the value to a fact .there is no reson to