Re: [Puppet Users] Hash iteration order in a template not consistent

2012-03-29 Thread Martijn Grendelman
On 28-03-12 14:39, R.I.Pienaar wrote: > > > - Original Message - >> From: "Martijn Grendelman" > > > >> http://serverfault.com/questions/368784/puppet-and-templates-how-to-loop-sequently-and-not-randomly >> >> which suggests to do something like >> >> <% aliases.sort_by {|key, val

[Puppet Users] Exec if file changed AND if other files exists on system

2012-03-29 Thread Topsurfer
Hello, I have to modiy a manifest. Actuall it's the restart of snmp-daemon if snmpd.conf is changed. ( File["FILESnmpd"] -> Exec["RESTARTSnmpd"]) New should be: If snmpd.conf is changed AND if binayA and binayB exists => Restart Snmpd => than: Restart ServiceA => than Restart ServiceB How can

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-03-29 Thread r0k5t4r
Hi, would you mind sharing the specfile you have used to build ruby-shadow? Regards, Oliver Am Montag, 12. März 2012 17:46:17 UTC+1 schrieb Jeffrey Watts: > > I took the RHEL/EPEL RPMs for ruby-shadow and puppet and rebuilt them for > SLES. There are very few things that need changing. The RH

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-03-29 Thread r0k5t4r
Hi, never mind I found a package on opensuse build: https://build.opensuse.org/package/binary?arch=i586&filename=ruby-shadow-1.4.1-10.1.i586.rpm&package=ruby-shadow&project=home%3Amcadet&repository=SLE_11_SP1 Am Donnerstag, 29. März 2012 11:03:42 UTC+2 schrieb r0k5t4r: > > Hi, > > would you min

[Puppet Users] Re: retrieving module directory

2012-03-29 Thread Antidot SAS
Hi everyone, I found my error, the default value for my module network was not set for the new OS (Centos) so my resource file was not correct. Sorry for the convenient On Wed, Mar 28, 2012 at 7:37 PM, Antidot SAS wrote: > Hi everyone, > > I have a puppet master/client infrastructure setup w

Re: [Puppet Users] Approach question on managing services

2012-03-29 Thread Felix Frank
Hi, I avoid ensure => running. Puppet is not an ideal tool for making sure a crash-prone daemon is getting restarted. Instead, puppet will make sure run levels are populated with the essentials. System monitoring (nagios etc.) informs of outages. Cheers, Felix On 03/22/2012 05:00 PM, Kenneth L

[Puppet Users] Node has to communicate?

2012-03-29 Thread Mailinglist
Does a node have to communicate with the master for it to have a policy? If so, is it possible to have a node that doesn't communicate with the master and it run a policy? Regards… -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to t

Re: [Puppet Users] Node has to communicate?

2012-03-29 Thread Luke Bigum
Yes, you can have "Masterless Puppet" by applying manifests directly to nodes using 'puppet apply '. You have to distribute your modules and manifests by hand then. On 29/03/12 13:19, Mailinglist wrote: Does a node have to communicate with the master for it to have a policy? If so, is it pos

[Puppet Users] Re: Empty node definition mysteriously runs yum class!

2012-03-29 Thread jcbollinger
On Mar 28, 3:00 pm, Ryan Bowlby wrote: > I'm having an issue where every single puppet node included our yum > class as part of the catalog. In all instances the nodes node > definition was empty. Has anyone experienced something like this > before? Is the yum class colliding with an internal cl

Re: [Puppet Users] Node has to communicate?

2012-03-29 Thread Mailinglist
Excellent. That points me a new direction. Thanks! Regards… On Mar 29, 2012, at 8:31 AM, Luke Bigum wrote: > Yes, you can have "Masterless Puppet" by applying manifests directly to nodes > using 'puppet apply '. You have to distribute your modules and > manifests by hand then. > > On 29/03/1

[Puppet Users] File copy on puppet windows failed!

2012-03-29 Thread mparrad
Hi guys, I'm trying to use puppet to run and install splunk on a Windows Box, I have created a module called splunk, and I try to get the powershell script and the files from the puppet master, everything is almost right but the file with the msi package couldn't copied to the windows box, What

[Puppet Users] Re: Strange behaviour of the exec / command function

2012-03-29 Thread jcbollinger
On Mar 28, 1:01 pm, Gael wrote: > Hi all, > > I am currently creating a java class to automate its installation. You > can find the class definition is below. > > In a nutshell, it is creating a temp folder to put the ".bin" file, > copy the .bin file in the folder then runs the installation. >

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-03-29 Thread Darin Perusich
You can grab the .spec from the build service project or the srpm links below. http://download.opensuse.org/repositories/home:/eclipseagent:/puppet/ https://build.opensuse.org/project/show?project=home%3Aeclipseagent%3Apuppet -- Later, Darin On Thu, Mar 29, 2012 at 5:03 AM, r0k5t4r wrote: > H

[Puppet Users] Re: Exec if file changed AND if other files exists on system

2012-03-29 Thread jcbollinger
On Mar 29, 2:41 am, Topsurfer wrote: > Hello, > I have to modiy a manifest. > Actuall it's the restart of snmp-daemon if snmpd.conf is changed. > ( File["FILESnmpd"] -> Exec["RESTARTSnmpd"]) > > New should be: > > If snmpd.conf is changed AND if binayA and binayB exists => Restart > Snmpd => tha

[Puppet Users] Re: File copy on puppet windows failed!

2012-03-29 Thread mparrad
Hi guys, I check my fileserver.conf file, and I see that /etc/puppet/files was allowed to serve files, and also modules, I tried changing my init.pp file to from this: file {"D:/Powershell-Scripts/Apps/splunkforwarder-4.3-115073-x64-release.msi": mode => 0777, source => 'puppe

[Puppet Users] stdlib module not working

2012-03-29 Thread Stefan Wiederoder
I´m trying to utilize the new stdlib module, but got stuck after installation on my puppet server. I´ve tried to use the included test file file_line.pp on the server, but it´s only creating the file - but not managing the content. the same problem on my clients (the new provider file_line has

[Puppet Users] python script to find cycles in relationship graph "dot" file

2012-03-29 Thread Jason Antman
In the hopes that it may be as useful to someone else as it was to me: I wrote up a simple little Python script that uses the NetworkX package (http://networkx.lanl.gov/) and Pydot (http://code.google.com/p/pydot/) to automatically identify cycles in the .dot graph files produced by Puppet (wh

[Puppet Users] Puppet Enterprise 2.5 and cucumber-puppet

2012-03-29 Thread Brian Carpio
Is cucumber-puppet compatible with Puppet Enterprise 2.5? If not is there a test framework which is similar that is? -- 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 unsubscri

[Puppet Users] stdlib/range issue

2012-03-29 Thread Pablo Fernandez
Dear stdlib'ers... I have just discovered the wonders of the parser functions, and got impressed with the tens of functions that come with stdlib. First things first... good work!!! Thanks!! And now the issue. It seems like the writer of the range() function did not think about ranges with m

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Gary Larizza
On Thu, Mar 29, 2012 at 8:48 AM, Pablo Fernandez wrote: > Dear stdlib'ers... > > I have just discovered the wonders of the parser functions, and got > impressed with the tens of functions that come with stdlib. First things > first... good work!!! Thanks!! > > And now the issue. It seems like the

[Puppet Users] Upgrading puppet - upgrade O/S of puppet master but leave clients on older version?

2012-03-29 Thread Richard
Hi there, I'm currently using an old version of puppet - my server is running puppet-server-0.25.4-1.el5 and my clients are running puppet-0.25.4-1.el5. This is on RHEL 5. I'm thinking of making the jump to the latest stable release - 2.7.12, possibly running RHEL 6.2 on the master server. Q

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Jeff McCune
On Thu, Mar 29, 2012 at 8:57 AM, Gary Larizza wrote: > > I tried to submit a bug report, but I just can list the open ones, can't >> make one myself. Is this intentional? How do I properly address this >> request? >> > > No problem. We've turned off Github Issues because we use our central > Red

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Pablo Fernandez
Hi, And now the issue. It seems like the writer of the range() function did not think about ranges with more than one digit that need leading zeros in the first items, like "01..99", when you usually want to have 01, 02, and so on. Ruby allows you to do ("01".."99") and that

[Puppet Users] Going insane : Puppet PHP module for multiple distributions

2012-03-29 Thread Matthias Saou
Hi, Before making any further changes to my existing PHP module, I'd like to get a few recommendations from anyone who has already faced this problem... My existing module supports Fedora, RHEL and clones. I'd like to extend support to more distributions, by adding a typical "params" class to it.

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Pablo Fernandez
Gotcha, thanks! On 03/29/2012 06:23 PM, Jeff McCune wrote: On Thu, Mar 29, 2012 at 8:57 AM, Gary Larizza > wrote: I tried to submit a bug report, but I just can list the open ones, can't make one myself. Is this intentional? How do I properly

Re: [Puppet Users] Upgrading puppet - upgrade O/S of puppet master but leave clients on older version?

2012-03-29 Thread Justin Stoller
On Thu, Mar 29, 2012 at 9:16 AM, Richard wrote: > Hi there, > > I'm currently using an old version of puppet - my server is running > puppet-server-0.25.4-1.el5 and my clients are running puppet-0.25.4-1.el5. > This is on RHEL 5. > > I'm thinking of making the jump to the latest stable release -

Re: [Puppet Users] catalog format performance comparison

2012-03-29 Thread Gabriel Filion
On 12-03-25 11:43 PM, Gabriel Filion wrote: > Changelog from 0.24.5 mentions a new format, "marshal", being very much > faster than the previous default, "yaml". > > But the current default format is "pson". I can't find any comparison in > performance to the other two. > > Is "pson" the new defa

Re: [Puppet Users] Re: File copy on puppet windows failed!

2012-03-29 Thread Josh Cooper
Hi Marco, On Thu, Mar 29, 2012 at 6:34 AM, mparrad wrote: > Hi guys, I check my fileserver.conf file, and I see that /etc/puppet/files > was allowed to serve files, and also modules, > > I tried changing my init.pp file to from this: > > file > {"D:/Powershell-Scripts/Apps/splunkforwarder-4.3-11

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Ashley Penney
I needed this just yesterday, actually, for NFS mounts. $PO_0_9 = prefix(range("0","9"),'/PO_0') $PO_10_31 = prefix(range("10","31"),'/PO_') $PO_32_76 = prefix(range("32","76"),'/PO_') nfs::po_mounts_50{ $PO_0_9: options => 'soft,bg,tcp', } nfs::po_mounts_50{ $PO_10_31: optio

[Puppet Users] Re: Could not prefetch package provider 'freebsd': No resource and no name in property hash in freebsd instance

2012-03-29 Thread wernerbahlke
Just thought I post the solution which we eventually found. It has to do with installing the mail/p5-Mail-SpamAssassin package and how the new package is constructed. When we tried another test and installed a random package (found in the ports tree) manually and ran the agent again, we had no pro

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-03-29 Thread Thomas Bellman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (I know I'm late in responding; I'm a couple of months behind in reading the mailing-list, and still have 2000 unread. I have read this entire thread, though.) On 2012-01-19 18:18, Nigel Kersten wrote: > I'm looking for strong opinions on whether we

Re: [Puppet Users] Re: File copy on puppet windows failed!

2012-03-29 Thread Josh Cooper
Hi Marco, On Thu, Mar 29, 2012 at 10:29 AM, Josh Cooper wrote: > Hi Marco, > > On Thu, Mar 29, 2012 at 6:34 AM, mparrad wrote: > >> Hi guys, I check my fileserver.conf file, and I see that >> /etc/puppet/files was allowed to serve files, and also modules, >> >> I tried changing my init.pp file

Re: [Puppet Users] Re: File copy on puppet windows failed!

2012-03-29 Thread Marco Parra D.
Hi Josh, I re-read this page, and then I saw my mistake http://askubuntu.com/questions/61080/how-to-copy-file-to-all-clients-using-puppet Thank you josh for your answer...! I have another question, Is it possible to copy several files at once?, for example, *.msi files to the agent? or c

Re: [Puppet Users] Re: File copy on puppet windows failed!

2012-03-29 Thread Nan Liu
On Thu, Mar 29, 2012 at 10:47 AM, Marco Parra D. wrote: > Hi Josh, > I re-read this page, and then I saw my mistake > > http://askubuntu.com/questions/61080/how-to-copy-file-to-all-clients-using-puppet > > Thank you josh for your answer...! > > I have another question, Is it possible to copy s

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-03-29 Thread Thomas Bellman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (Coming late to the discussion, I know. Sorry.) On 2012-01-26 11:19, Felix Frank wrote: [Regarding common modules for installing packages.] > Thinking about other examples of similar systems (CPAN, Gems, Pear, you > name it), module dependencies ar

Re: [Puppet Users] Re: File copy on puppet windows failed!

2012-03-29 Thread Marco Parra D.
Thank you so much.. Nan... I'll try this..! Regards.. On 29-03-2012 14:52, Nan Liu wrote: On Thu, Mar 29, 2012 at 10:47 AM, Marco Parra D. wrote: Hi Josh, I re-read this page, and then I saw my mistake http://askubuntu.com/questions/61080/how-to-copy-file-to-all-clients-using-puppet Tha

[Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-03-29 Thread jcbollinger
On Mar 29, 12:39 pm, Thomas Bellman wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > (I know I'm late in responding; I'm a couple of months behind in reading > the mailing-list, and still have 2000 unread.  I have read this entire > thread, though.) > > On 2012-01-19 18:18, Nigel Ker

[Puppet Users] Dashboard 1.2.7 available

2012-03-29 Thread Michael Stahnke
This is a maintenance release candidate of Puppet Dashboard. It includes contributions from Carl Caum, Josh Lifton, and Matt Robinson. This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarball. See the Veri

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Krzysztof Wilczynski
Hi, irb(main):008:0> ("08".."12").to_a > => ["08", "09", "10", "11", "12"] > > irb(main):010:0> (8..12).to_a > => [8, 9, 10, 11, 12] > > But then, the range() function in stdlib, makes a type conversion, that > breaks this possibility. I don't understand why do you do that > conversion... the f

[Puppet Users] Re: Empty node definition mysteriously runs yum class!

2012-03-29 Thread Ryan Bowlby
Nailed it. Accidentally had the include outside the class at "top- level". That's a scary uhum feature. Might need to look into integrating some test code that looks for top-level includes within the modules dir and warns. Thanks John! -Ryan On Mar 29, 5:42 am, jcbollinger wrote: > On Mar 28, 3:

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Jeff McCune
On Thu, Mar 29, 2012 at 8:48 AM, Pablo Fernandez wrote: > Dear stdlib'ers... > > I have just discovered the wonders of the parser functions, and got > impressed with the tens of functions that come with stdlib. First things > first... good work!!! Thanks!! > > And now the issue. It seems like the

Re: [Puppet Users] Going insane : Puppet PHP module for multiple distributions

2012-03-29 Thread Walter Heck
>From what I've seen in other modules, the more common way is to do something like this: class php {    case $::operatingsystem {        'Gentoo': {                include php::gentoo        }        /(RedHat|CentOS)/: {                include php::redhat        } } And then implement the c

Re: [Puppet Users] stdlib module not working

2012-03-29 Thread Dan White
Why not use host instead of file_line ? http://docs.puppetlabs.com/references/latest/type.html#host host { 'puppet master host entry': ip => '172.16.240.200', name => 'master.dev.puppetlabs.com', host_aliases => ['master'], } On Mar 29, 2012, at 11:08 AM, Stefan Wiederoder wrote: >

Re: [Puppet Users] stdlib module not working

2012-03-29 Thread Eric Shamow
Stefan, Looks related to https://projects.puppetlabs.com/issues/13530, which I just opened. Make sure you ensure => present in the file_line resource. -Eric -- Eric Shamow Professional Services http://puppetlabs.com/ (c)631.871.6441 On Thursday, March 29, 2012 at 6:17 PM, Dan White wrot

[Puppet Users] How to use smart variables

2012-03-29 Thread Len Rugen
We're running foreman 0.4.2 and puppet 2.7.12. I've defined a smart variable some_sv but can't figure out how to reference it in a puppet class. Is it not just $some_sv like any other variable? The settings page has Enable_Smart_Variables_in_ENC set to true. What am I missing? Thanks -- You

[Puppet Users] apt-get update before package installations

2012-03-29 Thread Gino Lisignoli
I'm stupidly new to puppet and have taken over someone's "in-progress-to-be-completed" implementation of puppet. I'm trying to see how I can run apt-get update before any package installs. I've googled around found some articles but they don't seem to work (or rather I most likely don't understa

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-29 Thread Amos Shapira
Thanks Luke (and sorry for late reply). This sort of addresses another question I haven't got around to investigate - the question is whether Puppet has functions/facts to tell me things like whether a particular provider is available or not. I guess it can be somehow scripted. But as you say

Re: [Puppet Users] Upgrading puppet - upgrade O/S of puppet master but leave clients on older version?

2012-03-29 Thread Richard
On Thursday, 29 March 2012 17:47:15 UTC+1, Justin Stoller wrote: > > > Hi there, >> >> I'm currently using an old version of puppet - my server is running >> puppet-server-0.25.4-1.el5 and my clients are running puppet-0.25.4-1.el5. >> This is on RHEL 5. >> >> I'm thinking of making the jump t

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-29 Thread Ken Barber
Hi Amos - its been a long long long time mate :-). > example for (1): Our vagrant (http://vagrantup.com/) dev base boxes > still come with Puppet 2.6.3 while the manifest depends on Puppet 2.7 > features. I can manually upgrade puppet manually (and that's what I do > on dev), but when the time to

Re: [Puppet Users] Upgrading puppet - upgrade O/S of puppet master but leave clients on older version?

2012-03-29 Thread Brian Gallew
On Thu, Mar 29, 2012 at 10:23 PM, Richard wrote: > > Thanks Justin! > > If we go with the stepped approach, would the following work? > > Puppet Master running 2.6.x on RHEL 6.2, serving 2.5.x clients on RHEL 5? > Do the different versions of Ruby come into play at all? > > You're not thinking ab

Re: [Puppet Users] Upgrading puppet - upgrade O/S of puppet master but leave clients on older version?

2012-03-29 Thread Richard
On Friday, 30 March 2012 06:43:17 UTC+1, Brian Gallew wrote: > > > >> Thanks Justin! >> >> If we go with the stepped approach, would the following work? >> >> Puppet Master running 2.6.x on RHEL 6.2, serving 2.5.x clients on RHEL >> 5? Do the different versions of Ruby come into play at all? >>

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-29 Thread Brian Gallew
I just did a 2.6.11 -> 2.7.12 migration with Puppet updating Puppet. The only real hitch I ran into was my puppet masters would update themselves but somehow Apache/Passenger didn't get restarted, so I had to do that by hand. Since I didn't start putting any 2.7 features into my manifests until *

Re: [Puppet Users] Upgrading puppet - upgrade O/S of puppet master but leave clients on older version?

2012-03-29 Thread Brian Gallew
You're very welcome. The stepwise upgrade previously mentioned is a little tedious, but it's safe and, if you collect and watch your logs, it will give you the chance to see how new versions are looking at old manifests (think deprecation warnings). On Thu, Mar 29, 2012 at 10:48 PM, Richard wrot

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-29 Thread Amos Shapira
Thanks Ken, I think I may have been confused with the pre-2.7.8 puppet still being installed before this upgrade was pushed out. Once the later version was installed the manifest seemed to work right. For instance the first opsview run on a server will complain about the missing config file bu

Re: [Puppet Users] stdlib/range issue

2012-03-29 Thread Pablo Fernandez
Hi, It looks like range("host01", "host99") works fine, returning [ "host01", "host02", ..., "host98", "host99" ] Is this what you're looking for, or is it an issue only if the leading portion of the string is zero padded? This is exactly what I was looking for, which indeed is much nicer th