[Puppet Users] Re: service restart upon notify

2012-04-13 Thread Sans
"notify => Class["mysoftware::service"]" should work without any problem. Did you remember to include it beforehand? include mysoftware::service "notify => Exec['mysoftwarerestart']" should work too. Cheers!! On Apr 12, 11:39 pm, Trevor Smith wrote: > On Thursday, April 12, 2012 4:07:40

Re: [Puppet Users] using array parameters with inherited parameterized classes

2012-04-13 Thread Craig Dunn
class depacks( $packages = "$params::packages" ) inherits params { package{ $packages: Putting quotes around $params::packages is making $packages a string rather than an array. Remove the quotes and it should work Regards Craig -- Craig Dunn | http://www.craigdunn.org Yahoo/Skype

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

2012-04-13 Thread runner
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. BR/Peng Yong -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to pu

[Puppet Users] override/replace native types

2012-04-13 Thread Guillaume Rousse
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 'conditional_service' type. However, in order to keep the benefit of e

[Puppet Users] puppet environments - environment specific configs and templates

2012-04-13 Thread earthgecko
I just want to sanity check this before reinventing the wheel or more importantly doing something outside the "norm" which may come back to bite me on another puppet version release. Current versions - master 2.7.12, client 2.7.13. It appears that although puppet environments allows for environme

Re: [Puppet Users] override/replace native types

2012-04-13 Thread Craig Dunn
BTW, the exact intent is to allow to test the configuration file syntax before reloading a service, and avoid reloading it with an invalid state. Something as: file { "/etc/openldap/slapd.conf": content => template("slapd.conf.erb"), notify => Service["slapd"] } service { "slapd": ensure => "r

Re: [Puppet Users] Puppet not creating manifest file?

2012-04-13 Thread Kaya Saman
On Wed, Apr 11, 2012 at 1:20 PM, Peter Berghold wrote: > Kaya, > > Did you clean out: > > /var/lib/puppet > /etc/puppet/ssl > > > before you re-ran? > > > The error you are seeing indicates there is a mismatch between hostname is > associated with the server's certificate and what notion the clien

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

2012-04-13 Thread Sans
I'm not entirely sure but I don't think you can do that with single server - Puppet is actually for that. Someone please correct me if I'm wrong. But, as Puppet can maintain itself, all your users can use their machine as puppet-master and puppet-agent at the same time and can do whatever they want

Re: [Puppet Users] override/replace native types

2012-04-13 Thread Guillaume Rousse
Le 13/04/2012 12:07, Craig Dunn a écrit : To fail the resource if slaptest fails... service { "slapd": ensure => "running", start => "/usr/sbin/slaptest && service slapd start", } To continue silently but not start slapd service { "slapd": ensure => "running", start => "( /usr/sbin/slaptes

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

2012-04-13 Thread Greg Sutcliffe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri 13 Apr 2012 12:01:13 BST, Sans wrote: > I'm not entirely sure but I don't think you can do that with single > server - Puppet is actually for that. Someone please correct me if I'm > wrong. But, as Puppet can maintain itself, all your users can

[Puppet Users] Re: Implementing hooks

2012-04-13 Thread Gabriel Filion
On 12-04-12 02:10 AM, Gabriel Filion wrote: > Do you guys know if it would be possible to implement a way to "hook" my > extraneous logic into the define so that I don't need to modify the > module directly anymore? oh, I think I've just found something that does pretty much exactly this: https:/

[Puppet Users] slow file transfer using puppet client on solaris

2012-04-13 Thread r0k5t4r
Hi, I just wrote a new module and noticed the the file transfer under solaris is extremely slow. The file is just about 50mbyte and it transfers ok under Linux but not under Solaris. The Solaris box is really old (Ulta10) and is running puppet 2.7.9. Is this a limitation of the puppet client unde

[Puppet Users] rdoc escaping help

2012-04-13 Thread ollies...@googlemail.com
Hello, Trying to be a good boy and put rdoc headers in my classes. I am trying to put some scoped variables into the output i.e. # [*myclass::params::server*] # This is derived from the myclass::params class which returns the server to configure # # [*myclass::params::venafiport*] # This is

[Puppet Users] Re: using array parameters with inherited parameterized classes

2012-04-13 Thread Shantanu
On Apr 13, 4:07 am, Craig Dunn wrote: > > class depacks( > >    $packages = "$params::packages" > > ) inherits params { > > >    package{ $packages: > > Putting quotes around $params::packages is making $packages a string > rather than an array.  Remove the quotes and it should work > Thanks for

Re: [Puppet Users] Re: OpenSUSE weirdness.

2012-04-13 Thread Throwe, Jesse
There was a bug in SLES 11.1 similar to this one where puppet agent in daemon mode would hang. Our solution was to update to a newer package. On Mon, Apr 9, 2012 at 5:03 PM, scot spinner wrote: > I'm having a very similar issue.  Did anyone figure out a solution to > this? > > On Mar 20, 10:15 a

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

2012-04-13 Thread Rocky
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 => '192.168.33.10', >

Re: [Puppet Users] Re: service restart upon notify

2012-04-13 Thread Frank Schaefer
Works like a charm now: include mysoftware::service and notify => Class["mysoftware::service"], Thanks! 2012/4/13 Sans > "notify => Class["mysoftware::service"]" should work without any > problem. Did you remember to include it beforehand? > >include mysoftware::service > > > "notify => E

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

2012-04-13 Thread Munna S
I followed your steps. now i am getting below error Apr 13 17:42:44 pil-vm-pup-01 puppet-master[7899]: Could not find class dev_jboss_jeeva for vm-jeeva2.aircell.prod at /etc/puppet/manifests/nodes/jeeva_base.pp:2 on node vm-jeeva2.aircell.prod Apr 13 17:42:44 pil-vm-pup-01 puppet-master[7899]: Co

[Puppet Users] Telly: Nagios types moving into Module

2012-04-13 Thread Michael Stahnke
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 be iterated on in isolation f

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

2012-04-13 Thread Matthaus Litteken
By 2.7.13+ of course Mike means 2.7.14 and later (because 2.7.13 was a security release). Look for an rc of 2.7.14 later today with the module face included. -Matthaus On Fri, Apr 13, 2012 at 10:55 AM, Michael Stahnke wrote: > For the next major Puppet version, code-named Telly, we have some > c

Re: [Puppet Users] Puppet not creating manifest file?

2012-04-13 Thread Peter Berghold
what's in your resolv.conf? On Fri, Apr 13, 2012 at 6:59 AM, Kaya Saman wrote: > On Wed, Apr 11, 2012 at 1:20 PM, Peter Berghold > wrote: > > Kaya, > > > > Did you clean out: > > > > /var/lib/puppet > > /etc/puppet/ssl > > > > > > before you re-ran? > > > > > > The error you are seeing indica

[Puppet Users] [Puppet-dev] Announce: Facter 1.6.8rc1 Available

2012-04-13 Thread Moses Mendoza
Facter 1.6.8rc1 is a maintenance release candidate with bug fixes and improvements. It includes contributions from the following people: Stefan Schulte, Ken Barber. This release is available for download at: http://downloads.puppetlabs.com/facter/facter-1.6.8rc1.tar.gz See the Verifying Puppet

[Puppet Users] agent suddenly disabled

2012-04-13 Thread Thomas
Disclaimer: I'm a newbie... I've only been using Puppet for a few days. My agent has been running fine for a few days but now when I perform: puppet agent --no-daemonize --verbose --onetime I get the following message: notice: Skipping run of Puppet configuration client; administratively disabled

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

2012-04-13 Thread Chip Schweiss
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. With one of my clients pointing to the new CA and new Puppetmaster but with

Re: [Puppet Users] agent suddenly disabled

2012-04-13 Thread Patrick Carlisle
This is a bug in the error message ( http://projects.puppetlabs.com/issues/13299). The correct command is 'puppet agent --enable'. -- 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

[Puppet Users] Supported Ruby Versions for Telly

2012-04-13 Thread Michael Stahnke
Puppet Labs is happy to announce full support for Ruby 1.9.3 will be part of the next major release of Puppet, codenamed Telly. Ruby 1.8.7 and 1.9.3 are considered the primary supported Ruby versions, on all platforms including Unix, Linux, Windows, and MacOS-X. Ruby 1.8.5 is also supported, on t

[Puppet Users] Re: agent suddenly disabled

2012-04-13 Thread Thomas
That worked, thanks! On Apr 13, 2:54 pm, Patrick Carlisle wrote: > This is a bug in the error message > (http://projects.puppetlabs.com/issues/13299). The correct command is > 'puppet agent --enable'. -- You received this message because you are subscribed to the Google Groups "Puppet Users"

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

2012-04-13 Thread Ashley Penney
I think that would be OK. I'm actually fairly nervous about this new move towards dragging more and more out of the core into modules. It wouldn't be so bad if Puppet had a proper "packaging system" that handled dependencies and so forth, but as it stands I'm just worried about reaching a situati

Re: [Puppet Users] slow file transfer using puppet client on solaris

2012-04-13 Thread Russell Van Tassell
Have you tried other transfers over SSH or similar? I'm guessing this isn't limited to puppet? Check the interface settings and make sure the (default) auto-negotiation worked with your switch... Sun boxes of that age (particularly with hme and le cards) were notoriously bad in negotiating full du

Re: [Puppet Users] Re: Hiera Puppet backend - search order question

2012-04-13 Thread Markus Falb
On 23.3.2012 02:41, Lars Francke wrote: > Hiera in Defined Resource Types: > It's using the calling class and calling module to calculate the > places it looks for its data. For defines though this is not the path > where the define itself was defined (e.g. tmp::register) but the name > it was giv

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

2012-04-13 Thread Walter Heck
Am I missing soemthing or is one of your two array declarations using a '=' and the other an '=>' ? Seems simple to me if this is a real quote of your actual code.. On Fri, Apr 13, 2012 at 23:17, Rocky wrote: > Hi, I have this definiton for keepalived. And i need to feed the template > this array