[Puppet Users] Multi-master with SRV records

2015-05-05 Thread Justin Lambert
I need to build a new puppet environment and was looking at using SRV records for a multi-master setup. Having a single master and SRV records works great, but I haven’t successfully been able to build a second master. https://docs.puppetlabs.com/guides/scaling_multiple_masters.html#option-4

Re: [Puppet Users] Title on file resources

2014-01-14 Thread Justin Lambert
puppet internals to say that with authority. On Jan 14, 2014, at 3:33 PM, Joseph Swick wrote: > On 01/14/2014 05:12 PM, Justin Lambert wrote: >> I’m attempting to create a bunch of symlinks based on an array of filenames >> but I can’t figure out how to use the title of the reso

[Puppet Users] Title on file resources

2014-01-14 Thread Justin Lambert
I’m attempting to create a bunch of symlinks based on an array of filenames but I can’t figure out how to use the title of the resource within the resource itself. class app::config { file { [ 'a.conf', 'b.conf' ]: ensure => 'link', path => "/etc/app/${name}", target => "/usr/app

Re: [Puppet Users] PuppetDB "Failed to submit 'replace facts' command"

2013-05-16 Thread Justin Lambert
o do > the trick. > > ken. > > On Tue, May 14, 2013 at 11:55 PM, Justin Lambert > wrote: >> I have a small environment with a single puppetmaster and puppetdb on the >> same node that I get sporadic "Failed to submit 'replace facts' command"

[Puppet Users] PuppetDB "Failed to submit 'replace facts' command"

2013-05-14 Thread Justin Lambert
I have a small environment with a single puppetmaster and puppetdb on the same node that I get sporadic "Failed to submit 'replace facts' command" errors from nodes. It isn't consistent about which nodes are causing the error and I can't find anything else going on at the same time on either t

Re: [Puppet Users] PuppetDB issues

2013-05-09 Thread Justin Lambert
I seem to get this off and on, but not consistently. Is yours every run? puppet-master[7020]: Failed to submit 'replace facts' command for ue1a-devdb01.ineu.us to PuppetDB at puppet.example.com:8081: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A I am also on puppetdb 1.3.0

Re: [Puppet Users] Puppet in EC2

2013-03-11 Thread Justin Lambert
I've been using R.I's ec2-boot-init to set the hostname (based of instance ID and AZ) and his mcollective-server-provisioner to securely sign certificates. Roles are assigned based on what security group the instance is in so I can use auto-scaling (with a few exceptions that are hostname based

Re: [Puppet Users] Classes and resources in Hiera

2013-02-28 Thread Justin Lambert
hopefully it is something others feel would be of value also. jl On Feb 28, 2013, at 7:24 AM, jcbollinger wrote: > > > On Wednesday, February 27, 2013 8:34:47 AM UTC-6, Justin Lambert wrote: > I've had this blog post [1] bookmarked for a while to pull the remaining node &g

[Puppet Users] Classes and resources in Hiera

2013-02-27 Thread Justin Lambert
I've had this blog post [1] bookmarked for a while to pull the remaining node specific config I have out of my site.pp, but wasn't sure if there was a better method at this point. I've been using hiera_include for a while for classes, but it appears functionality is something that may go away

Re: [Puppet Users] Rspec with rspec-hiera-puppet

2013-02-20 Thread Justin Lambert
to a hiera lookup without a default or to override a default. Thanks, jl On Dec 17, 2012, at 10:24 AM, Justin Lambert wrote: > I've been working on getting spec tests on all of my modules and am down to > ones that use hiera and don't have any reasonable defaults. It looks lik

Re: [Puppet Users] Spec test failure

2013-01-14 Thread Justin Lambert
Jeff, You haven't by chance had a chance to look at this have you? I'd be curious if I'm just doing something wrong. Thanks, jl On Dec 16, 2012, at 7:24 PM, Justin Lambert wrote: > Jeff, > > I finally got a few simple modules together to recreate this issue. A

[Puppet Users] Rspec with rspec-hiera-puppet

2012-12-17 Thread Justin Lambert
I've been working on getting spec tests on all of my modules and am down to ones that use hiera and don't have any reasonable defaults. It looks like there is a project on GH (https://github.com/amfranz/rspec-hiera-puppet) that is designed to fill this need, but for the life of me I cannot make

Re: [Puppet Users] Spec test failure

2012-12-16 Thread Justin Lambert
function depends on pluginsync to install the function. Thanks, Justin On Nov 2, 2012, at 3:46 PM, Jeff McCune wrote: > On Friday, November 2, 2012, Justin Lambert wrote: > Jeff, > > Thanks for your response. It is possible, but I'm not sure. Would uploading > some sa

Re: [Puppet Users] Spec test failure

2012-11-02 Thread Justin Lambert
; bug: > > http://projects.puppetlabs.com/issues/show/15529 > > If so, could you please upvote the bug, watch it, and update it with > information about how it's impacting you? > > Thanks, > -Jeff > > > On Wed, Oct 31, 2012 at 9:52 AM, Justin Lambert > wr

Re: [Puppet Users] librarian-puppet

2012-11-01 Thread Justin Lambert
Did you install puppet via an RPM? If so, this patch will likely fix your issue. https://github.com/rodjek/librarian-puppet/issues/38 On Oct 31, 2012, at 2:52 PM, Worker Bee wrote: > Unless I install puppet vis gems, I get the following error when attempting > to use librarian-puppet. > >

Re: [Puppet Users] Spec test failure

2012-10-31 Thread Justin Lambert
kups module and everything using it. On Oct 30, 2012, at 11:54 AM, Justin Lambert wrote: > I am adding spec tests to my modules and have run into an issue I can't seem > to figure out. > > I have a simple class: (ruby/manifests/init.pp) > class ruby { > include common &

[Puppet Users] Spec test failure

2012-10-30 Thread Justin Lambert
I am adding spec tests to my modules and have run into an issue I can't seem to figure out. I have a simple class: (ruby/manifests/init.pp) class ruby { include common $blah = dirname('/tmp/test/file.txt') file { $blah: ensure => director } } And a spec file: (spec/classes/ruby_init_spec.

[Puppet Users] Autoscaling Secure Signing Options

2012-09-29 Thread Justin Lambert
Puppet certificate signing is the one item that (I think) has caused issues for everyone at one point or another. I think the security provided is a requirement for tools such as this given the amount of access to both hosts and sensitive data they have. There were a few presentations at Puppe

[Puppet Users] Puppet Inventory Service - class search

2011-12-07 Thread Justin Lambert
I am looking to rewrite some modules that currently use storeconfigs (nagios being the big one) to instead pull from the inventory service the required information instead. Some of the checks are as easy as a monitoring check that gets put into place whenever a specific class is included. I kn

Re: [Puppet Users] Re: Storeconfigs seem slow

2011-09-13 Thread Justin Lambert
Thanks for everyone's comments - I finally found where the large chunk of client time was going. Client runs are still slow, but 5 mins is a lot better than 20 minutes. The issue in our case was having the directory that contained the nagios config files managed by puppet (purge => true, recurse

Re: [Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Justin Lambert
> > > We're at about the 100 hosts, but have closer to 1500 services - maybe > > we have exceeded what storeconfigs can do then. > > hmm.. so yeah, you've hit the same kind of very bad scaling from the > nagios config native resources than I've experienced. Seeing how bad it > becomes with that num

Re: [Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Justin Lambert
is spent client side and I haven't been able to figure out why. Even doing an md5sum on all of the files from the CLI takes less than 2 seconds. On Mon, Sep 12, 2011 at 3:30 PM, Gabriel Filion wrote: > Hi, > > On 11-09-12 04:43 PM, Justin Lambert wrote: > > We are moving t

[Puppet Users] Storeconfigs seem slow

2011-09-12 Thread Justin Lambert
We are moving to have our nagios servers generate their nagios configs based on what services are installed on specific hosts (as well as the hosts registering themselves). What we have found is that our runtimes have gone through the roof on this and I'm trying to figure out why (summary below fr

Re: [Puppet Users] Destroy nodes in dashboard

2011-09-08 Thread Justin Lambert
1.1.0 On Thu, Sep 8, 2011 at 9:31 AM, Craig White wrote: > version? > > On Sep 8, 2011, at 8:22 AM, Justin Lambert wrote: > > > Destroying nodes in puppet dashboard seems to kill dashboard after about > 5 minutes requiring a restart. I took at look at the DB schema an

[Puppet Users] Destroy nodes in dashboard

2011-09-08 Thread Justin Lambert
Destroying nodes in puppet dashboard seems to kill dashboard after about 5 minutes requiring a restart. I took at look at the DB schema and was just going to remove nodes via SQL directly instead of using the dashboard and wanted to see if anyone sees anything wrong with this. I know the queries

Re: [Puppet Users] prep for 2.8: default values and overrides

2011-08-03 Thread Justin Lambert
Thanks for these - this is very helpful. On Tue, Aug 2, 2011 at 1:26 AM, vagn scott wrote: > ** > prep for 2.8: default values and overrides > > I was very happy, some months ago, > when I worked out how to separate > configuration from code in puppet. > > The scheme even allowed for specializat

[Puppet Users] Ensuring specific yum repos

2011-07-18 Thread Justin Lambert
I know I am not the first to run into this problem, but I cannot seem to find an elegant way to solve it - either through Google or on my own. I want to ensure that the yum repos I define through Yumrepo are the only repos on the machine (removing any that might be on there for other reasons). I

Re: [Puppet Users] new variable scoping in templates

2011-07-15 Thread Justin Lambert
I've been using: scope.lookupvar('puppet::params::certdnsnames') On Thu, Jul 14, 2011 at 8:45 PM, lurdan wrote: > hi, > > What's the best way to refer variables which pass as defined resource > parameter > from template erbs? > > I've been made many modules which has resource definitions contai

Re: [Puppet Users] Moving config to an ENC

2011-07-13 Thread Justin Lambert
using cache on failed catalog err: Could not retrieve catalog; skipping run On Tue, Jul 12, 2011 at 11:35 PM, Dan Bode wrote: > > > On Tue, Jul 12, 2011 at 10:43 AM, Justin Lambert < > jlamb...@localmatters.com> wrote: > >> I have just gotten to playing with this and

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Justin Lambert
ul 12, 2011 at 2:33 PM, Denmat wrote: > Hi, is 'something::other' valid in yaml? > Cheers > Den > > > On 13/07/2011, at 3:43, Justin Lambert wrote: > > I have just gotten to playing with this and am doing something wrong, > probably very basic. > > On th

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Justin Lambert
SL6. Any insight as to where I have gone wrong? Thanks, jl On Wed, Jul 6, 2011 at 7:22 AM, Justin Lambert wrote: > This looks exactly like what I was looking for, thank you. This might be > worth mentioning on the ENC page so people like myself can find it easier. > > > On Tue, Jul

Re: [Puppet Users] Moving config to an ENC

2011-07-06 Thread Justin Lambert
2.7.0 > > -Dan > > On Tue, Jul 5, 2011 at 1:40 PM, Justin Lambert > wrote: > >> I have recently started moving the config of our puppet hosts out of the >> nodes files and into an ENC so they can be managed through a web UI by >> someone with less technical exp

[Puppet Users] Moving config to an ENC

2011-07-05 Thread Justin Lambert
I have recently started moving the config of our puppet hosts out of the nodes files and into an ENC so they can be managed through a web UI by someone with less technical experience without the fear of a typo causing a failure of all catalogs to compile. As a result, I have been looking at which

Re: [Puppet Users] Dashboard - Could not retrieve facts from inventory service

2011-07-05 Thread Justin Lambert
I actually set this up today, if you set it up like: path /facts method find auth any allow * does that fix your issue? If it does, it looks like it is something with the way your reverse DNS is working on the allow line. On Tue, Jul 5, 2011 at 4:24 PM, Craig White wrote: > puppet 2.6.8 > pup

[Puppet Users] RE: Default Schedule

2009-04-10 Thread Justin Lambert
=> "17:00 - 04:00", } class general { $schedule = "normal" } jl From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Justin Lambert Sent: Tuesday, April 07, 2009 8:00 AM To: puppet-users@googlegroups.com Subject: [Puppet U

[Puppet Users] RE: Default Schedule

2009-04-07 Thread Justin Lambert
ut either. Thanks, jl From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Justin Lambert Sent: Wednesday, April 01, 2009 12:31 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Default Schedule I am trying to set a default schedule and not havin

[Puppet Users] RE: Default Schedule

2009-04-05 Thread Justin Lambert
Nobody has used a default schedule? Thanks, jl From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Justin Lambert Sent: Wednesday, April 01, 2009 12:31 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Default Schedule I am trying to set a default

[Puppet Users] Default Schedule

2009-04-01 Thread Justin Lambert
I am trying to set a default schedule and not having a lot of luck. It doesn't look like they are used a whole lot and I've had a hard time finding documentation. What I would ultimately like is for the default schedule to be daily from "17:00 - 03:00." I'm not sure if it'll work past midnigh