[Puppet Users] Re: node-specific resources outside of a general-purpose module

2012-04-16 Thread Jonathon Anderson
On Monday, April 9, 2012 5:35:09 PM UTC+3, jcbollinger wrote: I'm not following why defined types present a special problem here. They aren't a special problem: they simply haven't *solved* the problem. If as generalized as I can get is defining some types, where do I put the declaration of

Re: [Puppet Users] node-specific resources outside of a general-purpose module

2012-04-16 Thread Jonathon Anderson
On Monday, April 9, 2012 6:12:48 PM UTC+3, Nan Liu wrote: You can use create_resources to make this a bit more flexible and dynamic with the ability to specify resources in your ENC: Either that doesn't actually apply to my question, or using it as a solution horrifies me. -- You received

[Puppet Users] collecting resources for iteration in a template

2012-04-16 Thread Jonathon Anderson
I have a `sysctl::variable` defined type that creates files in `/etc/sysctl.d`. Some operating systems (*cough*SLES10*cough*) don't read sysctl settings from `/etc/sysctl.d`, though, and expect all settings to be in a single file, `/etc/sysctl.conf`. For such operating systems, I'd like to

[Puppet Users] pluginsync - custom fact with 0 size

2012-04-16 Thread ScOut3R
Dear List, i'm running Puppet version 2.7.1 (Natty backport) on both sides. I have a custom fact in [module]/lib/facter/customfact.rb and i have enabled pluginsync on both the server and client side. When i'm running the agent it shows the following output: puppetd --test --noop info:

[Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Sans
It's definitely a class loading problem and I don't think Jeeva is using modules at all. Jeeva: Could you pls try the things I said in my previous post and see if that works? Cheers!! On Monday, April 16, 2012 1:34:31 AM UTC+1, Wil Cooley wrote: On Apr 13, 10:49 am, Munna S

Re: [Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Munna S
Hi Sans i am trying it now. will let you know the output soon. Also in my site.pp i have the below content import 'nodes/*' $puppetserver = 'puppet-server.domain.com' I do have many modules , which works as expected. Thanks, Jeeva cat /etc/puppet/manifests/site.pp On Mon, Apr 16, 2012 at

[Puppet Users] puppet dashboard and mysql server is not localhost

2012-04-16 Thread Fabien COMBERNOUS
Hi, I'm installing puppet dashboard on a server1. I have an already existing mysql service, hosted on server2. Is it possible to configure database.yml in the puppet dashboard to use the host server2 instead of localhost ? Regards, -- *Fabien COMBERNOUS* /unix system engineer/ www.kezia.com

[Puppet Users] Question regarding multi-OS NTP manifest

2012-04-16 Thread Jesse
Hi all, I'm jumping into learning puppet with the modules on Puppetlabs websites, but I'm running into a few issues and I could use some help. I'm currently working on the second exercise here: http://docs.puppetlabs.com/learning/variables.html I can write a manifest that installs NTP for

[Puppet Users] Is paramater ordering non-deterministic?

2012-04-16 Thread Robert Rothenberg
I've run into the following issue with parameters that are dependent on each other. Suppose I have the following class: class foo( $owner, $prefix = /opt/${owner}, $etc_dir = ${prefix}/etc ) { file{${etc_dir}: ensure = directory, owner = $owner, group =

[Puppet Users]

2012-04-16 Thread Afroz Hussain
Hi, I updated the Puppet Enterprise 2.0 to 2.5.1 and tried to restart the httpd and getting following error in /var/log/pe-httpd/puppetdashboard.error.log [warn] RSA server certificate CommonName (CN) `pe-internal-dashboard' does NOT match server name!? -- Thanks, Aphroj Hussain -- You

[Puppet Users] Could not send report: Error 400 on SERVER: execution expired

2012-04-16 Thread Bernd Adamowicz
Hi all! One of my Puppet masters has to compile some 3800 stored configurations which takes a very long time to proceed. Example log: Apr 16 13:17:13 mymaster puppet-agent[15249]: Finished catalog run in 954.58 seconds Apr 16 13:18:35 mymaster puppet-master[11422]: execution expired Apr 16

Re: [Puppet Users] puppet dashboard and mysql server is not localhost

2012-04-16 Thread Mike Becker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 That is possible you just need to edit the hosts parameter. The Dashboard is a rails application don't forget to migrate your database afterwards, Regards, Mike Am 16.04.2012 12:19, schrieb Fabien COMBERNOUS: Hi, I'm installing puppet dashboard

Re: [Puppet Users] puppet dashboard and mysql server is not localhost

2012-04-16 Thread Fabien COMBERNOUS
Thank you for your answer. I added the hosts parameter in the file : # config/database.yml production: database: dashboard hosts: server2 username: dashboard password: dashboard encoding: utf8 adapter: mysql Then i used the migrate and got the following output :

Re: [Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Munna S
Hi Sans, I followed your steps, but i am getting the same error again Apr 16 11:29:39 pil-vm-pup-01 puppet-master[8092]: Could not find class cp_jboss_conf for vm-jeeva2.aircell.prod at /etc/puppet/manifests/nodes/vm-jeeva2.aircell.prod.pp:2 on node vm-jeeva2.aircell.prod Apr 16 11:29:39

Re: [Puppet Users] Could not send report: Error 400 on SERVER: execution expired

2012-04-16 Thread wen1023 wu
Hi I had met the problem,so I want to know the answer. 在 2012年4月16日 下午7:31,Bernd Adamowicz bernd.adamow...@esailors.de写道: Hi all! One of my Puppet masters has to compile some 3800 stored configurations which takes a very long time to proceed. Example log: Apr 16 13:17:13 mymaster

Re: [Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Sans
humm.. not sure but looks like couple of steps from my previous post are missing. Can you pls confirm that you have all of these: 1. The line: *import 'modules'* in */etc/puppet/manifests/site.pp* 2. The line: *import 'jb_test'* in* /etc/puppet/manifests/modules.pp* 3. The file:*

Re: [Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Munna S
1. The line: *import 'modules'* in */etc/puppet/manifests/site.pp - i do have site.pp file but dont have the entry for modules. i added the entry but later i saw lot of errors related to modules in log * 2. The line: *import 'jb_test'* in* /etc/puppet/manifests/modules.pp - i

[Puppet Users] Re: override/replace native types

2012-04-16 Thread jcbollinger
On Apr 13, 4:08 am, Guillaume Rousse guillomovi...@gmail.com wrote: Hello list. I'd like to implement a basic 'onlyif' property, as existing in 'exec' type, to 'service' type. Rather than patching the original puppet code, I think I could use the custom type mechanism, and implement my own

Re: [Puppet Users] puppet dashboard and mysql server is not localhost

2012-04-16 Thread Fabien COMBERNOUS
On 16/04/2012 14:03, Fabien COMBERNOUS wrote: [...] Then i used the migrate and got the following output : server1:puppet-dashboard root# rake RAILS_ENV=production db:migrate (in /usr/share/puppet-dashboard) rake aborted! uninitialized constant MysqlCompat::MysqlRes I missed something ? The

Re: [Puppet Users] Is paramater ordering non-deterministic?

2012-04-16 Thread Henrik Lindberg
The evaluation order of the parameters is not deterministic as I learned when implementing validation of references in Geppetto. (BTW, Geppetto issues warnings/errors when trying to reference potentially uninitialized variables as in your example). You need to move the logic computing the

[Puppet Users] Re: Does one puppet master support multiply users to manage their resources?

2012-04-16 Thread jcbollinger
On Apr 12, 10:06 pm, runner pengyongb...@gmail.com wrote: Hi, I am a new user of puppet. We want every user of our group to manage software in his/her machines. How can puppet support this? Thank you. Puppet does not prevent users from employing the ordinary tools (yum, apt, etc.) for

Re: [Puppet Users] Is paramater ordering non-deterministic?

2012-04-16 Thread Robert Rothenberg
So will the setting of the values for $owner and $prefix be deterministic, when set inside a class or resource definition? Also, what if I want to be able to override these with user settings? (That's one of the reasons that they are parameters in the first place.) On Monday, April 16, 2012

[Puppet Users] regsubst and regex

2012-04-16 Thread Antidot SAS
Hi everyone, A quick question for you, here is the code: $tt=regsubst(test,^(.*)-(.*),'\2') Doesn't return: undef or nil, it does return: test Niether does $tt=regsubst(test,^(.?)-(.*),'\2') or $tt=regsubst(test,^(.+?)-(.*),'\2'). Is there a way to return undef if the string doesn't include

[Puppet Users] Re: Define node environment on puppet master nodes.pp?

2012-04-16 Thread jcbollinger
On Apr 12, 5:26 pm, Will S. G. w...@arw.in wrote: Hello, Is there a way to define an environment for the prospective nodes in nodes.pp (maybe a default node?) I'd like to be able to define it there and then have my puppet module configure the node puppet.conf (erb template) based on the

Re: [Puppet Users] Re: override/replace native types

2012-04-16 Thread Guillaume Rousse
Le 16/04/2012 15:02, jcbollinger a écrit : Moreover, I don't find the current behavior that bad. Is it better to continue running the service with an out-of-date configuration? Is it better to delay discovering the problem until the machine is restarted, or until you or some other admin tries

Re: [Puppet Users] regsubst and regex

2012-04-16 Thread Thomas Bellman
On 2012-04-16 15:26, Antidot SAS wrote: A quick question for you, here is the code: $tt=regsubst(test,^(.*)-(.*),'\2') Doesn't return: undef or nil, it does return: test As expected and intended. Niether does $tt=regsubst(test,^(.?)-(.*),'\2') or $tt=regsubst(test,^(.+?)-(.*),'\2').

[Puppet Users] Re: New CA, why do clients with old certs still work?

2012-04-16 Thread jcbollinger
On Apr 13, 1:40 pm, Chip Schweiss chip.schwe...@gmail.com wrote: I'm in the process of scalling my puppet master to two server with a separate CA.   My plan was to establish a new CA and reissue certificates.   Part way through the process I noticed a behavior that seems a bit alarming.

[Puppet Users] Re: Puppet definitions and hashes/arrays syntax problem.

2012-04-16 Thread jcbollinger
On Apr 13, 10:17 am, Rocky rosco...@gmail.com wrote: Hi, I have this definiton for keepalived. And i need to feed the template this array that i will loop trough. site.pp definition snippet:  keepalived::vrrp_virtual_server {                real_servers = { realserver1 = { ip =

Re: [Puppet Users] regsubst and regex

2012-04-16 Thread Antidot SAS
Thx for the reply it helps. But how come the \2 returns something that I never asked? On Mon, Apr 16, 2012 at 3:47 PM, Thomas Bellman bell...@nsc.liu.se wrote: On 2012-04-16 15:26, Antidot SAS wrote: A quick question for you, here is the code: $tt=regsubst(test,^(.*)-(.*),'\2')

[Puppet Users] content source

2012-04-16 Thread Antidot SAS
Hi everyone, Maybe a dump question but what happens if for a file ressource I specify a source and a content? Is there a priority? The resul won't be determinist? Regards, JM -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this

[Puppet Users] Re: Is paramater ordering non-deterministic?

2012-04-16 Thread jcbollinger
On Apr 16, 8:22 am, Robert Rothenberg rob...@gmail.com wrote: So will the setting of the values for $owner and $prefix be deterministic, when set inside a class or resource definition? Manifest code inside a class or definition is processed in lexical order. Note also that some programming

[Puppet Users] How to modify a file content?

2012-04-16 Thread Marco Parra D.
Hi guys, I trying to modify a file on Windows using puppet, I got a template file like this: [default] host = SOmeNAme [WinEventLog:Security] disabled = 1 is copied using puppet to the windows machine as C:\Program Files\Soft1\inputs.conf And I need to replace the host line with the real

Re: [Puppet Users] Is paramater ordering non-deterministic?

2012-04-16 Thread Nan Liu
On Mon, Apr 16, 2012 at 6:22 AM, Robert Rothenberg rob...@gmail.com wrote: So will the setting of the values for $owner and $prefix be deterministic, when set inside a class or resource definition? Yes. The issue with parameters in class declaration is described in further details here:

[Puppet Users] Re: node-specific resources outside of a general-purpose module

2012-04-16 Thread jcbollinger
On Apr 16, 3:13 am, Jonathon Anderson anderbub...@gmail.com wrote: On Monday, April 9, 2012 5:35:09 PM UTC+3, jcbollinger wrote: I'm not following why defined types present a special problem here. They aren't a special problem: they simply haven't *solved* the problem.  If as generalized

Re: [Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Sans
According to your configuration, I don't think my code will work at all. Your setup is quite different then mine and I've no other suggestions for you at the moment. Hopefully, someone else will pick it up from here. Cheers!! On Monday, April 16, 2012 1:59:25 PM UTC+1, Jeeva wrote: 1.

[Puppet Users] Re: Puppet definitions and hashes/arrays syntax problem.

2012-04-16 Thread jcbollinger
On Apr 13, 10:17 am, Rocky rosco...@gmail.com wrote:                                        weight = '100' Also, you're missing a comma after each appearance of that entry. John -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to

Re: [Puppet Users] regsubst and regex

2012-04-16 Thread Thomas Bellman
On 2012-04-16 15:57, Antidot SAS top-posted: Thx for the reply it helps. But how come the \2 returns something that I never asked? It doesn't. But since there are no occurrances of '^(.*)-(.*)', then there are none that get replaced. Similarly, if you do: regsubst('foobar', 'x', 'y')

[Puppet Users] Re: Puppet Certificate's

2012-04-16 Thread Sean McGrath
Gary, thanks very much for that. I got that to work as I wanted after a bit of fighting with other issues of my own creation. So I am very grateful to you for your help. If you ever in Dublin, Ireland. Look me up, I owe you a favor so I'm willing to pay back, within reason of course. Best Sean

[Puppet Users] Re: Creating classes for individual nodes

2012-04-16 Thread Josh
Thanks everyone! This is a good start. I'll have to research most of this but at least I know what to research now. Thanks. Josh On Apr 12, 10:19 am, Brian Gallew g...@gallew.org wrote: I'm absolutely with John on this.  As an example, for our JBoss application we need the configuration file

Re: [Puppet Users] Re: Need puppet module for condition copy

2012-04-16 Thread Munna S
Thank you so much San for your time and help. Can anyone help me with this -Jeeva On Mon, Apr 16, 2012 at 9:54 AM, Sans r.santanu@gmail.com wrote: According to your configuration, I don't think my code will work at all. Your setup is quite different then mine and I've no other

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Josh Cooper
Hi Marco, On Mon, Apr 16, 2012 at 7:22 AM, Marco Parra D. marco.parr...@gmail.comwrote: Hi guys, I trying to modify a file on Windows using puppet, I got a template file like this: [default] host = SOmeNAme [WinEventLog:Security] disabled = 1 is copied using puppet to the windows

Re: [Puppet Users] content source

2012-04-16 Thread Josh Cooper
On Mon, Apr 16, 2012 at 6:59 AM, Antidot SAS antidot...@gmail.com wrote: Hi everyone, Maybe a dump question but what happens if for a file ressource I specify a source and a content? Is there a priority? The resul won't be determinist? Regards, JM The file resource should generate a

Re: [Puppet Users] content source

2012-04-16 Thread Antidot SAS
thx On Mon, Apr 16, 2012 at 6:01 PM, Josh Cooper j...@puppetlabs.com wrote: On Mon, Apr 16, 2012 at 6:59 AM, Antidot SAS antidot...@gmail.com wrote: Hi everyone, Maybe a dump question but what happens if for a file ressource I specify a source and a content? Is there a priority? The resul

Re: [Puppet Users] regsubst and regex

2012-04-16 Thread Antidot SAS
Ok, I totally forget that replacement part is not a search :D On Mon, Apr 16, 2012 at 5:00 PM, Thomas Bellman bell...@nsc.liu.se wrote: On 2012-04-16 15:57, Antidot SAS top-posted: Thx for the reply it helps. But how come the \2 returns something that I never asked? It doesn't. But

[Puppet Users] configured puppet server as client now no updates are working

2012-04-16 Thread psychobyte
Hi, My puppet server was working up until I configured it to be a puppet client. I applied the configuration on the server which seemed to work fine. However, now when ever a client or itself asks for an updated configuration it always comes back with a successful poll, no updates, and the

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Marco Parra D.
On 16-04-2012 12:55, Josh Cooper wrote: Hi Marco, On Mon, Apr 16, 2012 at 7:22 AM, Marco Parra D. marco.parr...@gmail.com mailto:marco.parr...@gmail.com wrote: Hi guys, I trying to modify a file on Windows using puppet, I got a template file like this: [default] host =

[Puppet Users] Re: configured puppet server as client now no updates are working

2012-04-16 Thread niraj
Hi Psychobyte, Can you please post you site.pp and nodes.pp file which u have in server. On Monday, April 16, 2012 10:15:25 PM UTC+5:30, psychobyte wrote: Hi, My puppet server was working up until I configured it to be a puppet client. I applied the configuration on the server which

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Marco Parra D.
Hi Josh On 16-04-2012 12:55, Josh Cooper wrote: Hi Marco, On Mon, Apr 16, 2012 at 7:22 AM, Marco Parra D. marco.parr...@gmail.com mailto:marco.parr...@gmail.com wrote: Hi guys, I trying to modify a file on Windows using puppet, I got a template file like this: [default]

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Marco Parra D.
Hi Josh, Where can I find the complete fact's list to use on windows?... thank you in advance! Regards.. On 16-04-2012 12:55, Josh Cooper wrote: Hi Marco, On Mon, Apr 16, 2012 at 7:22 AM, Marco Parra D. marco.parr...@gmail.com mailto:marco.parr...@gmail.com wrote: Hi guys, I trying to

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Kelsey Hightower
On Mon, Apr 16, 2012 at 1:30 PM, Marco Parra D. marco.parr...@gmail.comwrote: Hi Josh, Where can I find the complete fact's list to use on windows?... thank you in advance! Regards.. You should be able to run Facter directly on the system in question. On 16-04-2012 12:55, Josh Cooper

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Marco Parra D.
Hi Kelsey, thank you, Are these the only list of facts?, What makes this list?, It's possible add more facts to windows? Thank you Regards.! On 16-04-2012 14:33, Kelsey Hightower wrote: On Mon, Apr 16, 2012 at 1:30 PM, Marco Parra D. marco.parr...@gmail.com mailto:marco.parr...@gmail.com

Re: [Puppet Users] Supported Ruby Versions for Telly

2012-04-16 Thread Michael Stahnke
On Sat, Apr 14, 2012 at 8:53 PM, Dan White y...@comcast.net wrote: Great to hear this, but I am now looking for a reliable way to get Ruby 1.8.7 or 1.9.3 onto a RHEL-5 system.  The environment I am working still has RHEL 3 and 4 machines running, and I would not hold my breath waiting for

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Josh Cooper
Hi Marco, On Mon, Apr 16, 2012 at 10:45 AM, Marco Parra D. marco.parr...@gmail.comwrote: Hi Kelsey, thank you, Are these the only list of facts?, What makes this list?, I don't think we have a facts supported by platform sort of document. Windows does support basic facts, e.g. hostname,

Re: [Puppet Users] Supported Ruby Versions for Telly

2012-04-16 Thread Todd Zullinger
Gary Larizza wrote: Have you checked out the packages that Karanbir Singh has created? They work fairly well -- http://centos.karan.org/el5/ruby187/ They're also not updated for recent security vulnerabilities, which should be a concern for anyone deploying them in production. Basically,

Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Todd Zullinger
Michael Stahnke wrote: For the next major Puppet version, code-named Telly, we have some changes coming. This is the first in a series of emails around these changes and may require some input from the community. For Telly, the nagios types will be moved into a module. This allows them to

Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Tim Mooney
In regard to: Re: [Puppet Users] Telly: Nagios types moving into Module,...: If I wanted to use a secondary package management system, I could use gems or eggs or CPAN, but I don't. ;) +1. Tim -- Tim Mooney tim.moo...@ndsu.edu Enterprise Computing

Re: [Puppet Users] How to modify a file content?

2012-04-16 Thread Marco Parra D.
Hi Josh On 16-04-2012 15:24, Josh Cooper wrote: Hi Marco, On Mon, Apr 16, 2012 at 10:45 AM, Marco Parra D. marco.parr...@gmail.com mailto:marco.parr...@gmail.com wrote: Hi Kelsey, thank you, Are these the only list of facts?, What makes this list?, I don't think we have a facts

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Ken Barber
A pm2rpm tool perhaps Todd? :-). On Mon, Apr 16, 2012 at 7:36 PM, Todd Zullinger t...@pobox.com wrote: Michael Stahnke wrote: For the next major Puppet version, code-named Telly, we have some changes coming.  This is the first in a series of emails around these changes and may require some

[Puppet Users] hiera puppet augeas and hash keys ?

2012-04-16 Thread puppetguest
Hi, if possible can someone post a working example please ? I am using hiera = puppet = augeas. cat myserver.yaml --- myserver: Birthday: '1' Debug: '5' The no. of settings will change, so i would like to use a hash here. The hiera lookup works already: hiera -c

Re: [Puppet Users] Supported Ruby Versions for Telly

2012-04-16 Thread Jeff McCune
On Mon, Apr 16, 2012 at 11:29 AM, Todd Zullinger t...@pobox.com wrote: Gary Larizza wrote: Have you checked out the packages that Karanbir Singh has created?  They work fairly well -- http://centos.karan.org/el5/ruby187/ They're also not updated for recent security vulnerabilities, which

Re: [Puppet Users]

2012-04-16 Thread Jeff McCune
On Mon, Apr 16, 2012 at 4:14 AM, Afroz Hussain hussainaph...@gmail.com wrote: Hi, I updated the Puppet Enterprise 2.0 to 2.5.1 and tried to restart the httpd and getting following error in /var/log/pe-httpd/puppetdashboard.error.log [warn] RSA server certificate CommonName (CN)

Re: [Puppet Users] Facter not initialized in rspec in puppetlabs-stdlib?

2012-04-16 Thread Jeff McCune
On Sat, Apr 14, 2012 at 8:34 PM, Wil Cooley wilcoo...@gmail.com wrote: On Thursday, April 12, 2012 10:06:25 AM UTC-7, Jeff McCune wrote: The problem is that modules like stdlib need Puppet to be initialized in a manner suitable for testing.  Setting things like confdir and what not.  This

Re: [Puppet Users] Supported Ruby Versions for Telly

2012-04-16 Thread Jo Rhett
I'd like to recommend the frameos version instead. If you're going to do it from source, the frameos ruby spec file is much simpler, with much smaller diff files against the distro, and doesn't compile in a bunch of japanese and Tk stuff. I've been updating the spec file to track the latest

[Puppet Users] file resource

2012-04-16 Thread Eslam Mamdouh
Hi All, i'd like to define a file resource that transfers a tar ball that doesn't have fixed name actually tarball name will be tarball_name-version.tar.gz i tried to define file resouce as following using regex : file { /opt/tarball_name*.tar.gz : ... } but it seems that regex doesn't

[Puppet Users] Re: configured puppet server as client now no updates are working

2012-04-16 Thread psychobyte
Actually, this was a stupid mistake on my part. I manage the puppet.conf file, when I applied the config. the puppet master config file got set to a puppet client config. I'm surprised it didn't output any error messages. On Monday, April 16, 2012 9:45:25 AM UTC-7, psychobyte wrote: Hi,

[Puppet Users] Puppet Learner

2012-04-16 Thread OverDue Ocean
Hi Guys, Let me Introduce myself as self learner and very new to puppet and I am sure that now on I am staying here in this group for long and keep asking questions, I am sorry if my message annoys you or if its a bit childish please forgive me but i believes that if you want to learn you should

[Puppet Users] Requiring defines from other classes in a fact

2012-04-16 Thread Boudewijn Ector
Hi Guys, Currently I'm coding a recipe for installing some UNIX daemon (openca, but that's not very relevant). This works fine, except some dependency stuff regarding classes from an external module. My current setup is like this: /etc/puppet/modules/openca/manifests/init.pp: class openca {

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Kelsey Hightower
On Mon, Apr 16, 2012 at 4:07 PM, Ken Barber k...@puppetlabs.com wrote: A pm2rpm tool perhaps Todd? :-). Something like pm2rpm would work, but we need to have a least one standard path for Puppet modules. I guess we can count on /etc/puppet/modules or /usr/share/puppet/modules being part of the

[Puppet Users] how to get ruby-shadow installed before trying to make users,groups

2012-04-16 Thread Steve Roberts
I know I need to have ruby-shadow installed to get puppet to be able to manage shadow file based passwords. so tried to code that up in a puppet manifest like this: === class strobenet { package { 'ruby-shadow': ensure = 'present', } user { 'tuser':

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Nigel Kersten
On Mon, Apr 16, 2012 at 11:36 AM, Todd Zullinger t...@pobox.com wrote: Michael Stahnke wrote: For the next major Puppet version, code-named Telly, we have some changes coming. This is the first in a series of emails around these changes and may require some input from the community. For

[Puppet Users] Case statements in a file directive

2012-04-16 Thread Forrie
I want to distribute a binary directory based upon whether the architecture is 32- or 64-bit. It appears I cannot nest a case statement under file, however this is what I was attempting to do: file { /usr/local/nagios/libexec: require = File['/usr/local/nagios'],

Re: [Puppet Users] Case statements in a file directive

2012-04-16 Thread Geoff Davis
You're pretty close. You don't want the case statement per se, but you do want a conditional: file { /usr/local/nagios/libexec: require = File['/usr/local/nagios'], ensure = directory, owner = 'root', group = 'root', mode= 655, recurse = true, source = $::architecture {

Re: [Puppet Users] Puppet Learner

2012-04-16 Thread Walter Heck
If you are not running your agents in daemon mode, you can have a look at mcollective. It allows you to define a set of servers that you want to do a puppet run on. cheers, Walter On Tue, Apr 17, 2012 at 05:31, OverDue Ocean overdueoc...@gmail.com wrote: Hi Guys, Let me Introduce myself as  

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Michael Stahnke
On Mon, Apr 16, 2012 at 11:36 AM, Todd Zullinger t...@pobox.com wrote: Michael Stahnke wrote: For the next major Puppet version, code-named Telly, we have some changes coming.  This is the first in a series of emails around these changes and may require some input from the community. For

Re: [Puppet-dev] Re: [Puppet Users] Telly: Nagios types moving into Module

2012-04-16 Thread Ashley Penney
This is kind of an argument against moving these things out of the core in the first place in my opinion. The fact that you can now have multiple versions of the nagios provider is just worse than having a single copy. Before at least I could update to 2.7.x and be assured all my providers were

[Puppet Users] Trying to build Ruby 1.8.7 on a RHEL5 systems

2012-04-16 Thread Dan White
Old thread reference: http://www.mail-archive.com/puppet-users@googlegroups.com/msg27199.html I am trying to build Ruby 1.8.7 on a RHEL 5 system following the instructions in that thread and I have a few questions as I am a n00b to RPM building: On Jan 4, 2012, at 8:04 PM, Jo Rhett wrote: wget

[Puppet Users] Having trouble getting puppet to set users/groups to a defined state

2012-04-16 Thread Steve Roberts
I'm hoping I'm just missing something simple. I ran across this in my deployment setup and have replicated in a simple set of manifests. command output and the manifests below. basically start with a user/group name but it had the name was misspelled 'txuser' so correct it to 'tuser' but

Re: [Puppet Users] file resource

2012-04-16 Thread Denmat
Hi, Use file { /opt/tarball_name-${version}.tar.gz : You then declare that with $version = 1.2.3 See http://docs.puppetlabs.com/learning/variables.html for fuller explanation. Den On 17/04/2012, at 7:32, Eslam Mamdouh emamd...@cloud9ers.com wrote: Hi All, i'd like to define a file

[Puppet Users] Failed to parse template ... private method 'split' called for :undef:Symbol - github - puppetlabs/puppet-dhcp

2012-04-16 Thread Peter J. Foley
Hi Puppet Users, Puppet Version - v2.7.13 Ruby Version - ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux] I am trying to use the Puppetlabs DHCP module (https://github.com/puppetlabs/puppet-dhcp) to setup a DHCP server on one of my nodes. I have followed the example in the readme.md file

[Puppet Users] Re: Requiring defines from other classes in a fact

2012-04-16 Thread Wil Cooley
On Apr 16, 2:39 pm, Boudewijn Ector boudew...@boudewijnector.nl wrote: Very very simple, except for the fact that I want to add the dependency for the mysql::database too. I'm using this excellent module for managing mysql:https://github.com/camptocamp/puppet-mysql Is there a neat way to do

[Puppet Users] Re: Question regarding multi-OS NTP manifest

2012-04-16 Thread Wil Cooley
On Apr 15, 4:44 pm, Jesse anonym...@gmail.com wrote: case $operatingsystem {     centos, redhat: { $ntp = ntp }     debain, ubuntu: { $ntp = ntpd } This is backwards; centos/redhat should be 'ntpd' and debian/ubuntu should be 'ntp'. if $ntp == 'ntp' {   service { 'ntp':     name       =

[Puppet Users] This worked for me

2012-04-16 Thread Steve Shipway
Thankyou - this was a great help, and fixed my issue straight off. Good to know about the version problem. Steve -- 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 unsubscribe

[Puppet Users] Re: collecting resources for iteration in a template

2012-04-16 Thread Wil Cooley
On Apr 16, 1:45 am, Jonathon Anderson anderbub...@gmail.com wrote: I have a `sysctl::variable` defined type that creates files in `/etc/sysctl.d`.  Some operating systems (*cough*SLES10*cough*) don't read sysctl settings from `/etc/sysctl.d`, though, and expect all settings to be in a single