Re: [Puppet Users] puppet node deactivate

2013-06-21 Thread David Kerr
On Friday, June 21, 2013 5:31:20 AM UTC-7, Ken Barber wrote: > > > > I usually do puppet node clean/puppet node deactivate. > > How are you generating this file? Its hard to make any specific > conclusions here, is this a concat pattern or a query inside a > template? If you can provide code i

[Puppet Users] puppet node deactivate

2013-06-20 Thread David Kerr
Hello, I'm in the process of upgrading my puppet from 2x to 3.2.1. During my testing i found that it appears that puppet node deactivate isn't removing nodes from storeconfigs. Specifically: On my puppet server: > puppet node deactivate hub15.mydomain.com Submitted 'deactivate node' for hub15.

Re: [Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-02-06 Thread David Kerr
On Wednesday, February 6, 2013 9:57:57 AM UTC-8, Josh Cooper wrote: > > Hi David, > > On Wed, Feb 6, 2013 at 9:01 AM, David Kerr > > wrote: > > On Wednesday, February 6, 2013 5:40:41 AM UTC-8, llowder wrote: > >> > >> > >> > >>

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-06 Thread David Kerr
On Wednesday, February 6, 2013 2:22:41 PM UTC-8, jcbollinger wrote: > > > > On Wednesday, February 6, 2013 11:10:28 AM UTC-6, David Kerr wrote: >> >> >>>> So you were looking for different nodes to export fragments with >>> different sequence number

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-06 Thread David Kerr
> > >> So you were looking for different nodes to export fragments with > different sequence numbers embedded in the content? That was SO never > going to work. Every node's catalog is compiled independently of all the > others'. Even collecting exported resources isn't really an exception t

Re: [Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-02-06 Thread David Kerr
On Wednesday, February 6, 2013 5:40:41 AM UTC-8, llowder wrote: > > > > On Wednesday, February 6, 2013 6:06:49 AM UTC-6, Ken Barber wrote: >> >> Perhaps you want to use 'puppet node deactivate' for now: >> >> >> http://docs.puppetlabs.com/puppetdb/1.1/maintain_and_tune.html#deactivate-decommission

Re: [Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-02-06 Thread David Kerr
d that we are working on an automated clean mechanism in > PuppetDB: https://projects.puppetlabs.com/issues/18682#change-82618 > ... which as you can see is in code review right now. If all goes well > this should be in a release coming to your cinemas soon ... :-). > > ken. > &

Re: [Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-02-05 Thread David Kerr
On Tuesday, February 5, 2013 8:54:47 PM UTC-8, Josh Cooper wrote: > Hi David, > > On Tue, Feb 5, 2013 at 7:44 PM, David Kerr > > wrote: > > We upgraded to the new release of Puppet 3.1 and puppet node clean still > > doesn't work. > > > > I

[Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-02-05 Thread David Kerr
We upgraded to the new release of Puppet 3.1 and puppet node clean still doesn't work. I've found that the delete query comes back empty, but the node is still in the system. puppet node deactivate still works. -- You received this message because you are subscribed to the Google Groups "Pu

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-05 Thread David Kerr
On Tuesday, February 5, 2013 6:27:26 AM UTC-8, jcbollinger wrote: > > > > On Monday, February 4, 2013 11:49:24 PM UTC-6, David Kerr wrote: >> >> >> >> On Monday, February 4, 2013 9:07:49 PM UTC-8, Aaron Russo wrote: >>> >>> >>> On M

Re: [Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread David Kerr
yeah, i saw that, and fixed it, but still no good. i had thought/hoped that i deleted this post and posted my next one which you also kindly answered. On Monday, February 4, 2013 9:05:24 PM UTC-8, Aaron Russo wrote: > > > On Mon, Feb 4, 2013 at 5:41 PM, David Kerr > > wrote: &

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-04 Thread David Kerr
On Monday, February 4, 2013 9:07:49 PM UTC-8, Aaron Russo wrote: > > > On Mon, Feb 4, 2013 at 7:37 PM, David Kerr > > wrote: > >> <% @foo = 0 %> >> <% Array(bar).each do |flan| -%> >> value <%= @foo %> >> <% @foo += 1 %> &

[Puppet Users] Is it possible to generate a sequence in a template?

2013-02-04 Thread David Kerr
Howdy! Is it possible to generate a sequence in a loop in a puppet template? I'm trying something like: <% @foo = 0 %> <% Array(bar).each do |flan| -%> value <%= @foo %> <% @foo += 1 %> <% end %> But that's not working. (i just get a bunch of 0's) Any ideas? Thanks -- You received this mess

[Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread David Kerr
I'm trying to puppetize my PgPool install. PgPool uses the convention: backend_hostname0 = backend_port0 = backend_weight0 = backend_data_directory0 = backend_flag0 = I'm using exported resources and concat to auto-detect postgres instances. My template for this chunk looks like: <% Array(i

[Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-01-31 Thread David Kerr
That does look like what i'm looking for, thanks! Dave On Thursday, January 31, 2013 1:24:06 PM UTC-8, llowder wrote: > > > > On Thursday, January 31, 2013 3:10:12 PM UTC-6, David Kerr wrote: >> >> I am using PuppetDB and I'd love the links, I did some searchi

[Puppet Users] Re: Need a solution for "puppet node clean" (puppet v3.0.2)

2013-01-31 Thread David Kerr
in links (to either the > tickets or the previous thread) let me know and I'll dig them up. > > Thanks! > Chris > > On Thursday, January 31, 2013 10:26:18 AM UTC-8, David Kerr wrote: >> >> My environment heavily depends on exported resources to detect our mongo &g

[Puppet Users] Need a solution for "puppet node clean" (puppet v3.0.2)

2013-01-31 Thread David Kerr
My environment heavily depends on exported resources to detect our mongo instances and to populate our haproxies. When we bring up and down nodes in AWS "puppet node clean" isn't cleaning up the exported resources so we get ghost machines loaded into those config files. Up until today I've att

[Puppet Users] help with gathering exported resources.

2013-01-14 Thread David Kerr
Howdy. I'm struggling to access exported resources. I'm on Puppet 3.0.0. I can see that the resources have been exported (I'm not sure why puppet is adding duplicate entries) puppetdb=# select cr.title, rp.name, rp.value from catalog_resources cr join resource_params rp on (rp.resource = cr.re

Re: [Puppet Users] Exported resources not realizing

2013-01-11 Thread David Kerr
Ah-ha! i had gotten confused by the examples I was using because they were realizing with a collector. (making me think that If i didn't want to collect I didn't need to realize). Now that I've added the code to realize it's working. Thank you! On Friday, January 11, 2013 3:12:49 PM UTC-8

[Puppet Users] Exported resources not realizing

2013-01-11 Thread David Kerr
I'm sure i'm doing something incorrectly, I'm basing this off of what I've seen in other modules, but it's not working as I'd expect. Specifically, If i change the parameters to server_config. My mongo.conf doesn't ever reflect that change. As a matter of fact, I can delete mongo.conf and run pu

[Puppet Users] concat and ordering

2013-01-09 Thread David Kerr
I'm attempting to work with the puppetforge haproxy module. The module uses concat and I get how it works, but I'm having some problems with the sequencing. What the module does is: For the listener: order => "20-${name}" // ${name} is the name of the listening service For the balancermember

[Puppet Users] puppet node_aws terminate and certificate cleanup

2012-12-26 Thread David Kerr
Does anyone know if puppet cleans up its certs when you terminate an instance via 'puppet node_aws terminate' ? it doesn't say in the docs. Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit http

Re: [Puppet Users] Puppet pushes facts even when I'm not including the module

2012-12-20 Thread David Kerr
On Wednesday, December 19, 2012 1:02:48 PM UTC-8, Ramin K wrote: > > On 12/19/2012 11:55 AM, David Kerr wrote: > > Howdy, > > > > I've got a module that's the equivalent of: > > /etc/puppet/modules/mymodule/lib/facter/myfact.rb > > > > m

[Puppet Users] Puppet pushes facts even when I'm not including the module

2012-12-19 Thread David Kerr
Howdy, I've got a module that's the equivalent of: /etc/puppet/modules/mymodule/lib/facter/myfact.rb myfact.rb seems to get pushed to all nodes regardless of whether or not i include mymodule for that node. my factpath is factpath = $vardir/lib/facter:$vardir/facts I'm on puppet v 3.0.0