Re: [Puppet Users] facter's zpool_version errors using zfsonlinux

2013-05-07 Thread Marc Fournier
Excerpts from treydock's message of 2013-05-06 20:04:16 +0200: > Has anyone run into an issue with zfsonlinux >= 0.6.1 failing to work with > the Facter zpool_version fact? I get the following error "Could not > retrieve zfs_version: undefined method `captures' for nil:NilClass" which a > bug r

[Puppet Users] Re: Can anyone recommend a module with a resource managing a block of lines in a file?

2013-05-07 Thread jcbollinger
On Monday, May 6, 2013 10:06:20 AM UTC-5, Schofield wrote: > > Indeed, templates and Concat, either individually or in combination, are >> great tools for managing files, including where responsibility for >> different pieces of the file is spread across multiple classes. >> > > This is exact

Re: [Puppet Users] Support for transactions

2013-05-07 Thread Denmat
Hi, No, puppet is not transactionable. There is also no simple way to do it in puppet and running noop first is no guarantee that the run will succeed. Version control may help you out to 'roll back' but it would be messy depending on changes. Traditional methods of snapshoting disk or backup/r

[Puppet Users] Re: Puppet Dashboard 1.2.23 issue deleting node

2013-05-07 Thread Klavs Klavsen
Found out anything about why this is ? Any fix ? deleting a node hangs puppet-dashboard here :( - I have to restart to get it up again. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails fr

Re: [Puppet Users] Support for transactions

2013-05-07 Thread Jason Slagle
On 05/07/2013 09:13 AM, Denmat wrote: Hi, No, puppet is not transactionable. There is also no simple way to do it in puppet and running noop first is no guarantee that the run will succeed. Version control may help you out to 'roll back' but it would be messy depending on changes. Traditional

[Puppet Users] Foreman and Puppet managing templates question

2013-05-07 Thread timo
Hi, I have just started to use Foreman 1.1. I have been using Puppet for a while and have some custom modules and ones that have been dragged down from git etc. I am using nodes.pp in Puppet to assign classes and template entries to hosts. So is Foreman meant to eliminate my need for a nodes

[Puppet Users] Trouble writing authorized_keys2

2013-05-07 Thread Bret Wortman
I've got a situation where a manifest fails when writing one particular key for a user. What I have is a manifest that looks like this: class my::accounts () { Ssh_authorized_key { ensure => present, type => ssh-dss, } Then, after making sure the user, group, and authoriz

[Puppet Users] Re: Feedback on module pattern?

2013-05-07 Thread jcbollinger
On Monday, May 6, 2013 12:25:30 PM UTC-5, Ken Coar wrote: > > I've been having to write (and modify) a lot of modules lately, and I've > so far moved to the following pattern. I'd appreciate comments and > feedback about my approach, particularly in light of the changes to name > scoping (all

RE: [Puppet Users] Trouble writing authorized_keys2

2013-05-07 Thread Steven Nemetz
I see this all the time. It happens due to lacks in the ssh_authorized_key type and the error message isn't very helpful. If the type sees something that it doesn't understand in the file this will happen, also when it runs into things that it does not support. I had a user change from dsa to rs

[Puppet Users] Re: hiera not using non-root user custom fact

2013-05-07 Thread jcbollinger
On Monday, May 6, 2013 9:22:40 PM UTC-5, Corey Osman wrote: > > Hi, > > Before I begin, my environment consists of a standard master/client config > with the exception that all my clients run under a non-root user. I have > to use non-root so I can't simply restart under root to fix the proble

Re: [Puppet Users] Foreman and Puppet managing templates question

2013-05-07 Thread Ashley Penney
Foreman does replace nodes.pp. It acts as an 'ENC', the external node classifier. We'd need more details on what you're doing with templates in Puppet and nodes.pp to really answer this question. Are you thinking in terms of how you'd put variables into nodes directly with Foreman? There's spac

Re: [Puppet Users] Support for transactions

2013-05-07 Thread jcbollinger
On Tuesday, May 7, 2013 8:13:39 AM UTC-5, denmat wrote: > > Hi, > > No, puppet is not transactionable. There is also no simple way to do it in > puppet and running noop first is no guarantee that the run will succeed. > > And this isn't so much an issue with Puppet as with the underlying system

[Puppet Users] Re: Feedback on module pattern?

2013-05-07 Thread Ken Coar
On Monday, May 6, 2013 3:36:06 PM UTC-4, Gerardo Santana Gómez Garrido wrote: > > Hi Ken, > > I'm not sure I fully understood the purpose of each class, and until then > I'm not pointing out issues. But if my interpretation is correct then you > may get something useful from this other pattern

Re: [Puppet Users] Feedback on module pattern?

2013-05-07 Thread Ken Coar
On Monday, May 6, 2013 9:22:36 PM UTC-4, Ygor wrote: > > This looks great. > Mine, or Gerardo's? Some constructive criticism: > > I think “defaults" and “settings” are redundant. > Use one. > Actually, though, IMHO they're not. 'Defaults' are what you get if they aren't overridden. 'Settin

Re: [Puppet Users] Feedback on module pattern?

2013-05-07 Thread Ken Coar
On Tuesday, May 7, 2013 12:02:11 AM UTC-4, Wolf Noble wrote: > > I'm happy to give my $.02, FWIW. > > I've found immense benefit from the overall paradigm described in Craig > Dunn's blog post here: > http://www.craigdunn.org/2012/05/239/ > I'll check it out in light of your comments. Thanks!

[Puppet Users] Re: Feedback on module pattern?

2013-05-07 Thread Ken Coar
On Tuesday, May 7, 2013 10:25:05 AM UTC-4, jcbollinger wrote: > > I think there's a great advantage to using a consistent module structure, > whatever that happens to be. D'accord! Hence this attempt. > >> >>1. mod::defaults (defaults.pp) >> - does *not* inherit from anywhere >>

[Puppet Users] Re: Feedback on module pattern?

2013-05-07 Thread Gerardo Santana Gómez Garrido
Find a better explanation here: http://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php El martes, 7 de mayo de 2013 10:42:47 UTC-5, Ken Coar escribió: > > > > On Monday, May 6, 2013 3:36:06 PM UTC-4, Gerardo Santana Gómez Garrido > wrote: >> >> Hi Ken, >> >> I'm not su

[Puppet Users] Puppet install decency issues

2013-05-07 Thread WojonsTech
I have run into the same error installing puppet 2.7 and 3.1.0 on centos box. In the end it tries to install 1.8.7 for the 3.1.0 even though I have 1.9.3 already installed I have dumped all sorts of things like rebuiding the yum repo but nothing seems to help I am using the puppetlabs yum repo

[Puppet Users] Announce: cis-puppet 0.2.0 is now available

2013-05-07 Thread Arild Jensen
Overview This module implements the Center for Internet Security (CIS) Security Configuration Benchmark for Red Hat Enterprise Linux 6 v.1.1.0 (avilable at http://benchmarks.cisecurity.org). Each scored control has been implemented as a class or a custom fact. Installation

[Puppet Users] Puppet Don't Send Message If Any Changes

2013-05-07 Thread Mesut Muhammet Şahin
I have two different server type. Once is debian 6.0 squeeze and puppet version is "2.6.2". And other Ubuntu 12.04 and puppet version 2.7.11. Puppet master server is Ubuntu 12.04. I write something in /etc/crond.d/puppetcron which works specific time. Problem is if debian servers have any chang

[Puppet Users] Dealing with slow resources

2013-05-07 Thread Alex Jurkiewicz
Hi all, I'm working to migrate our ~500 DNS records from bind flat files to individual route53 resources. Each route53 resource definition is very slow -- checking a record exists requires 2 API lookups and adding requires 3, which means a resource can take >5seconds to run. This implies a massive

[Puppet Users] Using Puppet to trigger a script when error occurs on log file

2013-05-07 Thread Nicola Zanetti
Hello everyone, I'm using Puppet on my Ubuntu servers and I would like it to restart a process whenever an error occurs while running an application. The error can be detected looking at the logs of the application of course, but I don't want to parse the log file to detect it. Is there a way us

[Puppet Users] Modules doesn't work from puppet agent.

2013-05-07 Thread Fco CM
Hi all, I think i'm forgetting something. If i do: "puppet apply manifiests/site.pp" it works perfectly, loading modules i have include in site.pp file. site.pp: cat manifiests/site.pp node default { include ntp, motd } But it does not work if i run puppet agent. puppet agent --test --serv

[Puppet Users] Extending puppet catalog face

2013-05-07 Thread Mohit Chawla
Hello, I am trying to extend the 'select' action in the catalog face to also display the value of the ensure parameter for that resource, like so: puppet catalog select --extra parameter=ensure I have two questions: 1) What is the general approach for extending the standard shipped faces, is it

[Puppet Users] How to have one file depend on many packages

2013-05-07 Thread Bret Wortman
Here's a puzzler (though I'm sure the answer is obvious and I'm just not seeing it): I have a manifest where I'm listing about 40-50 packages that I want the system to remove, and a file that I want to create only after successful removal of all the packages. What's the best way to show this d

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-07 Thread Charlie Brune
I did discover that Puppet appears to be running just fine. I think the problem may be isolated to facter and puppet appears to forgive the problem. 8-) Here's the output you requested. (I don't see a trace.) [root@hogwarts log]# facter -v > 1.7.0 > [root@hogwarts log]# facter --debug --trac

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread Ramin K
On 5/6/2013 5:34 PM, WojonsTech wrote: I have run into the same error installing puppet 2.7 and 3.1.0 on centos box. In the end it tries to install 1.8.7 for the 3.1.0 even though I have 1.9.3 already installed I have dumped all sorts of things like rebuiding the yum repo but nothing seems to hel

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread Jerald Sheets
Yeah... god forbid you actually need to stay up to date with Ruby... On May 7, 2013, at 1:01 PM, Ramin K wrote: > On 5/6/2013 5:34 PM, WojonsTech wrote: >> I have run into the same error installing puppet 2.7 and 3.1.0 on centos >> box. In the end it tries to install 1.8.7 for the 3.1.0 even

Re: [Puppet Users] Announce: cis-puppet 0.2.0 is now available

2013-05-07 Thread Dan White
Wow ! I will definitely be checking this out as my Puppet implementation is tied to the CIS RHEL-5 benchmark “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Original

[Puppet Users] puppet cert error

2013-05-07 Thread Felipe Salum
Hi guys, After a disk space issue puppet is complaining when agents are running. # puppet cert list --all Error: header too long I think my certificates get corrupted, but the /var/lib/puppet/ssl directory seems to be ok. Have you seen this before ? Regards, Felipe -- You received this mess

[Puppet Users] Re: Need help with python msi install on windows

2013-05-07 Thread Matt F
Bump. Any help on this would be GREATLY appreciated! I also notice in the windows event log that I get the error "Failed to install: Fail on INT 24." and "/Stage[main]/Python::Install/Package[python]/ensure: change from absent to present failed: Failed to install: Fail on INT 24." I've tried

Re: [Puppet Users] How to have one file depend on many packages

2013-05-07 Thread Peter Bukowinski
On May 7, 2013, at 12:38 PM, Bret Wortman wrote: > Here's a puzzler (though I'm sure the answer is obvious and I'm just not > seeing it): > > I have a manifest where I'm listing about 40-50 packages that I want the > system to remove, and a file that I want to create only after successful > r

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread Ramin K
meh, it's all the same problems and solutions of upgrading your Python version and breaking yum. Ramin On 5/7/2013 10:08 AM, Jerald Sheets wrote: Yeah... god forbid you actually need to stay up to date with Ruby... On May 7, 2013, at 1:01 PM, Ramin K wrote: On 5/6/2013 5:34 PM, WojonsTe

Re: [Puppet Users] Trouble writing authorized_keys2

2013-05-07 Thread Stefan Schulte
On Tue, 7 May 2013 10:11:44 -0400 Bret Wortman wrote: > I've got a situation where a manifest fails when writing one > particular key for a user. What I have is a manifest that looks like > this: > > class my::accounts () { > > Ssh_authorized_key { > ensure => present, > typ

[Puppet Users] puppet node clean using SQLite instead of PuppetDB

2013-05-07 Thread Ti Leggett
I have a node that has some bad stored configs (namely the wrong ssh host keys) that I'm trying to clear out. Looking around it seems I'm supposed to do: puppet node clean foo.example.com However, that keeps bailing out because it's trying to open a SQLite3 db where stored configs are normally

[Puppet Users] Announce: Puppet 3.2.0-rc2 available

2013-05-07 Thread Matthaus Owens
Puppet 3.2.0-rc2 is a feature release candidate for the 3.x series of Puppet. To see a list of the issues addressed by this release, check out the 3.2.0 version in our issue tracker at: https://projects.puppetlabs.com/versions/371 The most notable changes are: An optional, experimental "Future" p

Re: [Puppet Users] puppet node clean using SQLite instead of PuppetDB

2013-05-07 Thread Deepak Giridharagopal
On Tue, May 7, 2013 at 12:39 PM, Ti Leggett wrote: > I have a node that has some bad stored configs (namely the wrong ssh host > keys) that I'm trying to clear out. Looking around it seems I'm supposed to > do: > > puppet node clean foo.example.com > > However, that keeps bailing out because it's

[Puppet Users] Re: AWS OpsWorks Puppet support

2013-05-07 Thread Martijn
Done! More votes are definitely welcome, so if you use AWS and Puppet, do it! Regards, Martijn Op zaterdag 4 mei 2013 19:52:48 UTC+2 schreef Martin Rio het volgende: > > AWS pays lot of attention to customer feedback. Anyone who want's Puppet > support in OpsWorks, take a minute and ask for it

Re: [Puppet Users] puppet node clean using SQLite instead of PuppetDB

2013-05-07 Thread Ti Leggett
Man, how did this ticket not show up in any of the various google attempts I made at trying to find this very thing? However this doesn't seem to help my original problem which is to remove the stored configs. 'puppet node deactivate' just deactivates the node but the resources remain in the dat

Re: [Puppet Users] puppet node clean using SQLite instead of PuppetDB

2013-05-07 Thread Deepak Giridharagopal
On Tue, May 7, 2013 at 12:59 PM, Ti Leggett wrote: > Man, how did this ticket not show up in any of the various google attempts > I made at trying to find this very thing? However this doesn't seem to help > my original problem which is to remove the stored configs. 'puppet node > deactivate' jus

Re: [Puppet Users] puppet node clean using SQLite instead of PuppetDB

2013-05-07 Thread Ti Leggett
I just tried this and ran the agent in noop and it still showed that the old, incorrect keys were going to be installed. On May 7, 2013, at 2:02 PM, Deepak Giridharagopal wrote: > On Tue, May 7, 2013 at 12:59 PM, Ti Leggett wrote: > Man, how did this ticket not show up in any of the various go

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread jcbollinger
On Tuesday, May 7, 2013 12:08:13 PM UTC-5, Jerald Sheets wrote: > > Yeah... god forbid you actually need to stay up to date with Ruby... > > Puppet 3 runs fine on Ruby 1.9. The OP's problem is a matter of how the particular RPMs in question were prepared. On the other hand, not everything tha

Re: [Puppet Users] Occasional SSL_connect errors to PuppetDB

2013-05-07 Thread Martijn
After 4 days without errors, I can safely say that using the latest Java 6 works fine. Thanks again Ken. Regards, Martijn Op vrijdag 3 mei 2013 14:46:25 UTC+2 schreef Martijn het volgende: > > Hi Ken, > > I was indeed using openjdk-7. I've now downgraded to 6 and will see if > this helps. > >

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-07 Thread Stefan Schulte
On Tue, 7 May 2013 10:01:03 -0700 (PDT) Charlie Brune wrote: > I did discover that Puppet appears to be running just fine. I think > the problem may be isolated to facter and puppet appears to forgive > the problem. 8-) > > Here's the output you requested. (I don't see a trace.) > > [root@ho

Re: [Puppet Users] Dealing with slow resources

2013-05-07 Thread David Schmitt
On 2013-05-07 06:28, Alex Jurkiewicz wrote: > How are people dealing with this sort of slowdown? Do I live with it, > or is there a solution? A common way to accelerate API management of external resources to implement prefetching in the provider (using a real ruby type) to fetch the current st

Re: [Puppet Users] Puppet Don't Send Message If Any Changes

2013-05-07 Thread David Schmitt
On 2013-05-07 09:42, Mesut Muhammet Şahin wrote: I have two different server type. Once is debian 6.0 squeeze and puppet version is "2.6.2". And other Ubuntu 12.04 and puppet version 2.7.11. Puppet master server is Ubuntu 12.04. I write something in /etc/crond.d/puppetcron which works specific ti

Re: [Puppet Users] Modules doesn't work from puppet agent.

2013-05-07 Thread David Schmitt
On 2013-05-07 11:04, Fco CM wrote: Hi all, I think i'm forgetting something. If i do: "puppet apply manifiests/site.pp" it works perfectly, loading modules i have include in site.pp file. site.pp: cat manifiests/site.pp node default { include ntp, motd } But it does not work if i run puppet

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread David Schmitt
On 2013-05-07 19:08, Jerald Sheets wrote: Yeah... god forbid you actually need to stay up to date with Ruby... Use the system ruby only for system applications. Use system applications only with the system ruby. For everything else, use rbenv or rvm. On Debian you might get away with co-insta

[Puppet Users] Re: Feedback on module pattern?

2013-05-07 Thread jcbollinger
On Tuesday, May 7, 2013 11:05:55 AM UTC-5, Ken Coar wrote: > > On Tuesday, May 7, 2013 10:25:05 AM UTC-4, jcbollinger wrote: > > If class 'mod' is going to declare any other classes of the module, then >> those particular classes cannot follow your "all other classes" pattern. >> > > I don't do

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-07 Thread Charlie Brune
[root@hogwarts ~]# facter --debug --timing virtual kernel: 2.97ms Could not retrieve virtual: Invalid argument - /sys/firmware/dmi/entries/1-0/raw virtual: 50.26ms lsbdistid: 0.53ms value for lsbdistid is still nil operatingsystem: 2.00ms hardwaremodel: 3.36ms architecture: 10.61ms virtual: 34.97m

[Puppet Users] freebsd clients failing to connect to new master with ssl errors

2013-05-07 Thread Jonathan Proulx
Hi All, I currently have two puppet masters which are "load balanced" with round robin DNS (one is also the CA). I'm using dns_alt_names to let them each answer to puppet.my.domain.com For the past year this has been fine. Today I'm trying to add a third & while all my Linux clients seem happy

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread Ramin K
On 5/7/2013 12:55 PM, David Schmitt wrote: On 2013-05-07 19:08, Jerald Sheets wrote: Yeah... god forbid you actually need to stay up to date with Ruby... Use the system ruby only for system applications. Use system applications only with the system ruby. For everything else, use rbenv or rvm.

[Puppet Users] Re: Using Puppet to trigger a script when error occurs on log file

2013-05-07 Thread joe
This is not something puppet is intended to do. For one, puppet makes periodic runs and does not respond to changes on the system in realtime. So best case, your app would get restarted within 30 minutes (or whatever your runinterval is) of an error occuring, but not immediately upon that error

Re: [Puppet Users] Having trouble with facter - "invalid argument"

2013-05-07 Thread Stefan Schulte
On Tue, 7 May 2013 13:00:53 -0700 (PDT) Charlie Brune wrote: > [root@hogwarts ~]# facter --debug --timing virtual > kernel: 2.97ms > Could not retrieve virtual: Invalid argument - > /sys/firmware/dmi/entries/1-0/raw > virtual: 50.26ms > lsbdistid: 0.53ms > value for lsbdistid is still nil > oper

Re: [Puppet Users] freebsd clients failing to connect to new master with ssl errors

2013-05-07 Thread Nathan Valentine
This smells like a problem related to incorrect system clock when the cert was generated for the new master.?. -- --- Nathan Valentine - nat...@puppetlabs.com Puppet Labs Professional Services GV: 415.504.2173 Skype: nrvale0 Join us at PuppetConf 2013, August 22-23 in San Francisco - http://bit.

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread Brian Lalor
I'd love to be proven wrong, but in my experience neither rvm nor rbenv are packaging-friendly. You'll end up compiling code and downloading dependencies from your prod machines. That's a really Bad Idea. -- Brian Lalor bla...@bravo5.org On May 7, 2013, at 3:55 PM, David Schmitt wrote: > For

[Puppet Users] Re: Feedback on module pattern?

2013-05-07 Thread jcbollinger
On Tuesday, May 7, 2013 11:05:55 AM UTC-5, Ken Coar wrote: > > [...] > In the current iteration, only mod might be parameterised -- and it > usually isn't. Hence all sorts of selectors in mod::settings to derive > operating values from the global scope (node manifest, facts), defaults, > and

[Puppet Users] proxy required

2013-05-07 Thread Francesco
Hy I m new to puppet. I 'd like to install epel.repo on a my node and this is the module that I ve created class epel { package { 'epel': provider => 'rpm', ensure => installed, source => 'http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' } } Now my

Re: [Puppet Users] Re: Practices: what _not_ to manage with Puppet?

2013-05-07 Thread Bernardo Costa
Yes, that's what I meant, if it were available I would use it. But I don't think useradd knows how to deal with it because AFAIK it only creates local users. The same about /etc/passwd could be said about /etc/sysconfig/network. You might want to control it partially only, not the whole content

Re: [Puppet Users] proxy required

2013-05-07 Thread Eugene Vilensky
On Tue, May 7, 2013 at 5:39 PM, Francesco wrote: > > Hy I m new to puppet. > I 'd like to install epel.repo on a my node and this is the module that I ve > created > > class epel { > > package { 'epel': > provider => 'rpm', > ensure => installed, > source => > 'http://dl.fedor

Re: [Puppet Users] Puppet install decency issues

2013-05-07 Thread David Schmitt
To be clear, I do not think that rbenv or rvm are Good Ideas(tm). I'm only claiming that there are enough mismanaged ruby code dumps on github that provide useful functionality that cannot be installed on top of system rubies without destroying the rest of the system to make rbenv the lesser ev