[Puppet Users] Re: puppetdb - WITH inactive_nodes AS (SELECT certname

2018-08-22 Thread Steve Traylen
w we no longer doing full table scans for the above. Attached is our CPU drop on the database as well as the latency drop on the facts endpoint of puppetdb 4. Our puppetdb is now very happy rather than very sad. We do now have a limit of 8191 on fact value but we can live with that. Steve.

[Puppet Users] puppetdb - WITH inactive_nodes AS (SELECT certname

2018-08-20 Thread Steve Traylen
= $6))) AND NOT ((fs.certname) in ( (SELECT inactive_nodes.certname AS certname FROM inactive_nodes) ) ))) Steve Traylen. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from

Re: [Puppet Users] How to run shell command on puppet agent

2016-01-29 Thread Steve Traylen
Hi Santanu, Hope your well. This kind of thing is exactly what custom facts are for. Write a custom fact to report the users. Steve. --- Steve Traylen From: Sans Sent: 29 Jan 2016 7:16 pm To: Puppet Users Subject: [Puppet Users] How to run shell command on puppet agent Hi all, Just trying

Re: [Puppet Users] librarian-puppet vs R10K

2016-01-28 Thread Steve Traylen
On Thu, 2016-01-28 at 06:40 -0800, Alex Harvey wrote: > Hi all, > > I am interested in the future of the Librarian-puppet project - to > find out how many people are still using it, and if there are people > out there who actually prefer it over R10K. > There's another one to consider https://git

Re: [Puppet Users] Logging output of a long running exec

2015-12-15 Thread Steve Traylen
In this case the screen session stays forever and you can connect to it later to see the output. That may or may not be useful to you of course --- Steve Traylen From: Dayton Jones Sent: 15 Dec 2015 1:02 pm To: Puppet Users Subject: Re: [Puppet Users] Logging output of a long running exec

Re: [Puppet Users] Logging output of a long running exec

2015-12-15 Thread Steve Traylen
Example of long exec running backgrounded in a screen. exec { 'zrep_initial_sync': command => "screen -dmS zrep_initial_sync /usr/local/sbin/krb_me.sh /usr/local/sbin/zrep init ${src_vol} ${dst_host} ${dst_vol}", onlyif => "zfs get -H zrep:src-fs -o value ${src_vol} | grep -qv ${src_vol}", path

Re: [Puppet Users] puppet 3.0.0 and hiera

2012-07-12 Thread Steve Traylen
On Tuesday, 10 July 2012 03:18:47 UTC+2, Henrik Lindberg wrote: > > On 2012-09-07 19:07, Kelsey Hightower wrote: > > You'll need hiera-puppet, which contains the parser functions. Puppet > 3.0.0 should bring in both Hiera and hiera-puppet as deps. > > > Thanks, > that is a good start. My issue

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-07-03 Thread Steve Traylen
On Wednesday, 27 June 2012 11:31:17 UTC+2, Felix.Frank wrote: > > On 06/27/2012 11:19 AM, Matthew Burgess wrote: > >> We redefined the restart command: > >> > > >> > restart => '/usr/bin/nohup /etc/init.d/puppet restart &' > > Nice! Thanks very much, Martin, that works really nicely. > > Befo

[Puppet Users] Re: puppet server complains of time sync

2012-06-28 Thread Steve Traylen
On Saturday, 23 June 2012 22:17:24 UTC+2, bluethundr wrote: > > Hello list, > > I am having an issue where a puppet agent on a client complains that > clocks are out of sync between it and it's master - > > err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 > read server ce

[Puppet Users] Re: Is it possible to access type params in another type?

2012-06-28 Thread Steve Traylen
On Tuesday, 26 June 2012 13:07:41 UTC+2, Yanis Guenane wrote: > > Hey guys, > > I was wondering if it was possible to access type params within another > type. > > Here is an example of what I would like to do. > > Puppet::Type.newtype(:a) do >> > newparam(:name) do >> isnamevar >>

[Puppet Users] Re: packaging puppet modules

2012-06-28 Thread Steve Traylen
On Thursday, 28 June 2012 14:57:08 UTC+2, Ken Dreyer wrote: > > Hi Puppet folks, > > I'm a Fedora packager, and I'm looking into packaging up some of the > modules at http://forge.puppetlabs.com/users/puppetlabs > > I'm thinking through the naming scheme for modules. It looks like the > upstream

[Puppet Users] Re: Is this possible with Hiera - Puppet Module Development and using Hiera

2012-06-18 Thread Steve Traylen
On Monday, 18 June 2012 13:02:33 UTC+2, Peter wrote: > > Hi Puppet Users, > > I have just started playing with Puppet and Hiera. I am curious if it is > possible to control how hiera does variable lookup within a module I am > creating to test it. > > > > I have read through the documentatio

Re: [Puppet Users] types and even class not being found sometimes.

2012-06-08 Thread Steve Traylen
On Friday, 8 June 2012 09:49:35 UTC+2, Felix.Frank wrote: > > Hi, > > On 06/08/2012 12:38 AM, Steve Traylen wrote: > > err: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Cannot find definition Lemon::Metric at > > /etc/puppet/env

[Puppet Users] [JOB] Engineer (Computing) at CERN

2012-06-07 Thread Steve Traylen
Migrating an LSF batch system to SLURM with puppet on OpenStack will certainly be one of the core items but generally migrating services to this infrastructure. See http://cern.ch/go/9KKB for full details, in particular position only open to nationals from CERN member states. -- You receive

Re: [Puppet Users] types and even class not being found sometimes.

2012-06-07 Thread Steve Traylen
was released by accident... best solution in this case is epoch bump the facter 1, package. > On Thu, Jun 7, 2012 at 3:38 PM, Steve Traylen wrote: > >> Hi, >> Today we updated puppet-2.7.14-1 to -2 which should have been boring. >> >> I am sure the update i

Re: [Puppet Users] Thoughts on job listings?

2012-06-07 Thread Steve Traylen
On Thursday, 7 June 2012 20:12:51 UTC+2, Michael Stanhke wrote: > > I let this sit for a week or so to see what response would be. > > In general: > > If you are a puppet user/community member and want to post a job at > your company, that is ok. Please add JOB to the subject line. > > If you a

[Puppet Users] Re: Update .k5login with Puppet

2012-06-07 Thread Steve Traylen
On Tuesday, 5 June 2012 06:25:23 UTC+2, Dhaval wrote: > > > On Monday, June 4, 2012 6:13:45 PM UTC+5:30, Paul Tötterman wrote: >> >> Hi Dhaval, >> >> >>> can you anyone suggest me how can i update .k5login to append new entry >>> or >>> remove existing line >>> >> >> Hi Dhaval, This is not

[Puppet Users] types and even class not being found sometimes.

2012-06-07 Thread Steve Traylen
Hi, Today we updated puppet-2.7.14-1 to -2 which should have been boring. I am sure the update is not significant and I did it with out thinking about it. Its probably that this just caused a restart everywhere. I was sure I read a bug about custom defined types not being found sometimes

[Puppet Users] Re: Thoughts on job listings?

2012-05-30 Thread Steve Traylen
On Wednesday, 30 May 2012 22:49:44 UTC+2, Michael Stanhke wrote: > > How do folks feel about getting Puppet job listings on this list? > I've rejected a few that we quite spammy, but when the subject matter > really is a system admin with puppet experience, the decision becomes > a bit different

[Puppet Users] Re: defaults for virtual defined resources from hiera.

2012-05-30 Thread Steve Traylen
On Tuesday, 15 May 2012 16:48:48 UTC+2, jcbollinger wrote: > > On May 14, 2:27 pm, Steve Traylen wrote: > > Up to now I've had a large file of virtual resources and then enabled > them > > on demand > > on various services. The very standard. > >

[Puppet Users] Re: Managing two versions of a package via yum

2012-05-16 Thread Steve Traylen
On Wednesday, 16 May 2012 20:18:28 UTC+2, Stephen J. wrote: > > Hi, > > I'm in a situation where I need to install/manage both the 32-bit and > 64-bit versions of a package. Anyone have any tips on doing this? What I've > got now, is something like this: > > class install32 { > package

Re: [Puppet Users] Puppet / scalability

2012-05-15 Thread Steve Traylen
On Monday, 14 May 2012 18:38:29 UTC+2, Eric Shamow wrote: > > Nigel, > > Don't we have one or two an order of magnitude larger than that? > > > http://indico.cern.ch/getFile.py/access?contribId=29&sessionId=3&resId=3&materialId=slides&confId=160737 > (warning: > large PDF) > > I think they're loo

[Puppet Users] defaults for virtual defined resources from hiera.

2012-05-14 Thread Steve Traylen
Hi, This follows on a bit from the previous thread 'trouble with hiera and puppet defines' [1] Up to now I've had a large file of virtual resources and then enabled them on demand on various services. The very standard. @metric{'1234: one => 1 two => [1,2] } @metric{'abcd': o

Re: [Puppet Users] arrays after upgrade to 2.7 and ['A','B'] compared to 'A B'?

2012-01-26 Thread Steve Traylen
On 26 Jan 2012, at 19:29, "Stefan Schulte" wrote: > On Thu, Jan 26, 2012 at 03:57:08PM +, Steve Traylen wrote: >> Hi, >> >> After upgrading a server and client from 2.6.13 to 2.7.10 my configuration >> with array attributes >> are behaving dif

Re: [Puppet Users] Dependencies: packages and repos

2012-01-26 Thread Steve Traylen
On Jan 25, 2012, at 11:10 AM, jimbob palmer wrote: > Hello, > > What's the best way of handling package installs that rely on a yum > repository, which in turn relies on a gpg key? > > At the moment I have only RHEL6 boxes which have a few yumrepos > defined and a few packages installed. The yum

Re: [Puppet Users] Question about puppet module development

2012-01-26 Thread Steve Traylen
On Jan 26, 2012, at 12:03 PM, Spirit wrote: > Hi all. > I want to write module for kerberos configuration. I planned configure > realms by using subclasses like in saz-sudo module: > > > Anybody have idea, how i can manage krb5.conf without augeas? > The following uses the concat module to ma

[Puppet Users] arrays after upgrade to 2.7 and ['A','B'] compared to 'A B'?

2012-01-26 Thread Steve Traylen
Hi, After upgrading a server and client from 2.6.13 to 2.7.10 my configuration with array attributes are behaving differently. 3 examples: (1) k5login {'/root/.k5login-test': principals => ['m...@cern.ch', 't...@cern.ch'], } while .k5login file is created perfectly but every puppet

Re: [Puppet Users] Re: Collecting resources and class defaults.

2011-12-01 Thread Steve Traylen
option is to use the enc variable to case if the firewalls should even be collected in the first place which probably makes sense. Thanks for the comments. -- Steve Traylen -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

[Puppet Users] Collecting resources and class defaults.

2011-12-01 Thread Steve Traylen
lection to take the collecting hosts class defaults with out doing a per variable override File <<| tag == 'testtag' |>> { content => $::hostname } which rather defeats the point of having a default in the first place. I'm working with EPEL's puppet-2.6.12-1. Stev

Re: [Puppet Users] puppetlabs-firewall: source param as array

2011-11-29 Thread Steve Traylen
ction      => accept, >    } > > > and it only seems to add a rule for the first subnet. The second is > silently ignored. Hi Mohamed, See: http://projects.puppetlabs.com/issues/10116 accepted bug. Steve. -- Steve Traylen -- You received this message because you are subscr

Re: [Puppet Users] Using firewall module, how do I clear iptables before rules are applied?

2011-11-28 Thread Steve Traylen
ing to remove all rules that are not configured with puppet? In which case the following will do but I'm not positive that is you want? resources { 'firewall': purge => true } -- Steve Traylen -- You received this message because you are subscribed to the Google Grou

Re: [Puppet Users] Re: Redhat and Scientific Linux

2011-10-14 Thread Steve Traylen
.2. available ##New fact: (6792) Added osfamily fact. Added osfamily fact to determine if a given operating system is a derivative of a common operating system. this is equal to redhat for redhat, centos, sl, slc, slf, sld, ... -- Steve Traylen -- You received this message because you a

Re: [Puppet Users] Could not render to pson: you must specify title patterns

2011-10-02 Thread Steve Traylen
2. »name« which is implicitly always treated as a keyattribute > > If the second one is not what you want you have to rename your > parameter. Thanks Stefan, that all makes sense, after renaming my name parameter all is good. -- Steve Traylen -- You received this message because y

[Puppet Users] Could not render to pson: you must specify title patterns

2011-09-24 Thread Steve Traylen
provider => lemon, name => 'system.loadAvg' } -- Steve Traylen -- 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 from this group, se