Re: [Puppet Users] require a defined type from another module

2013-11-07 Thread lth
Thanks but I still get a syntax error when doing file{"bar": require => A:foo['baz'] } On Wednesday, November 6, 2013 10:01:10 PM UTC-5, Trevor Vaughan wrote: > > Try A:Foo instead of A::foo. > > Trevor > > > On Wed, Nov 6, 2013 at 3:45 PM, L

[Puppet Users] require a defined type from another module

2013-11-06 Thread LTH
In module A: define A::foo() In module B: require A file{"bar": require => A::foo['baz'] } A::foo{"baz":} However puppet doesn't seem to like the syntax around require=>A::foo['baz']. Is there a way to do this? Thanks in advance. -- You received this message because you are subsc

[Puppet Users] Re: Puppet reading/compiling production when using other environments

2013-06-03 Thread LTH
On Monday, May 13, 2013 3:56:02 PM UTC-4, LTH wrote: > > We have several servers using various environments. However we have > noticed when a server requests any of the non-production environments, that > the production environment's last access time still changes along wit

[Puppet Users] Puppet reading/compiling production when using other environments

2013-05-13 Thread LTH
thing else going on? Thanks in advance. -LTH -- 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 it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this

[Puppet Users] puppet 3 and hiera debugging

2013-04-30 Thread lth
I'm using puppet 3.1 and I want to figure out why hiera seems to be looking in the wrong place and getting the wrong value. I found a post from this group saying to run puppet -d on the master and look in the log. Having done that I still don't see anything hiera related except for where puppe

[Puppet Users] custom fact lost after restarting puppetmaster

2013-03-28 Thread LTH
We have a custom package provider (cpanm) which uses a custom fact (perl_installsitebin) to determine the location of the executable it uses to install the various perl modules. It normally works wonderfully, until the puppetmaster is restarted. Then on the first run the agent will error out w

[Puppet Users] Firewall module error

2012-12-17 Thread LTH
Trying the firewall module and we're getting a strange error. /var/lib/puppet/lib/puppet/provider/firewallchain/iptables_chain.rb:34: warning: already initialized constant Mapping /var/lib/puppet/lib/puppet/provider/firewallchain/iptables_chain.rb:37: warning: already initialized constant Inter

[Puppet Users] Testing for dependency loops?

2012-09-18 Thread LTH
We've been doing a puppet parser validate before putting a manifest into production. however that doesn't seem to catch dependency loops. Is there a way to test for such problems? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view t

[Puppet Users] erb template test if value in array

2012-08-21 Thread LTH
In an .erb template, I want to test if a value is in an array (and if yes do something). I thought the way to do it might me something like: <% if @testservers.include? @fqdn %> environment = test <% else %> environment = production <% end %> However that blows up complaining that .include is a

[Puppet Users] puppet trying to parse backup files

2012-08-01 Thread lth
Is there a way to tell puppet not to try and parse certain files? It keeps trying to parse backup files and I get errors like: err: Could not load downloaded file /var/lib/puppet/lib/puppet/parser/functions/private_path.rb~: Function private_path already defined In this case there's a real priv

Re: [Puppet Users] two modules require the same module

2012-07-30 Thread lth
On Monday, July 30, 2012 11:53:55 AM UTC-4, Christopher Wood wrote: > > On Mon, Jul 30, 2012 at 08:48:24AM -0700, lth wrote: > >On Monday, July 30, 2012 11:34:22 AM UTC-4, Christopher Wood wrote: > > > > Then the module3 class is only evaluated once. Rem

Re: [Puppet Users] two modules require the same module

2012-07-30 Thread lth
On Monday, July 30, 2012 11:34:22 AM UTC-4, Christopher Wood wrote: > > > Then the module3 class is only evaluated once. Remember dependencies if > you need module3 evalated before other stuff. > > Thanks for the reply. I think maybe that should have been my question. Both modules need to have

[Puppet Users] two modules require the same module

2012-07-30 Thread lth
I have two modules both of which require a 3rd module. The problem of course is that if I use both modules on a node, I end up with a "Duplicate declaration" error of the third module. What's the right way to handle two modules that both require a 3rd one? -- You received this message because

Re: [Puppet Users] Managing Users over multiple servers

2012-05-21 Thread lth
e' applications > (with some exceptions). > > A tool, such as LDAP or Kerberos will probably serve your purposes > much better over time. > > Trevor > > On Mon, May 21, 2012 at 3:08 PM, lth wrote: > > We have several webservers that we are going to manage with puppet

[Puppet Users] Managing Users over multiple servers

2012-05-21 Thread lth
We have several webservers that we are going to manage with puppet. We want to make sure the users are the same on all of them. My plan was to create a separate manifest for each user within a users module. However if someone changes their password one one server how do we make sure that pu

Re: [Puppet Users] Classes, Subclasses, and Requirements

2012-05-17 Thread LTH
in test2::bar, do I still need require => [Class['test2::foo'] on the exec? In testing this, it seems that I don't. On Thu, May 17, 2012 at 10:53 AM, LTH wrote: > >> Hello, >> >> I'm having some trouble with subclasses accessing other subclasses wit

[Puppet Users] Classes, Subclasses, and Requirements

2012-05-17 Thread LTH
ll test2::baz, it does more than I wanted. Am I not understanding something? How do I just do bar and foo? Thanks in advance, -LTH -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit http

[Puppet Users] Re: Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-04-04 Thread lth
We think we were getting this because Passenger wasn't finding Bundler's Gemfile in spite of being in the bundle. We fixed it by changing the DocumentRoot from /etc/puppet/rack/public to /etc/puppet/public (since /etc/puppet is where the Gemfile is). Thanks again, -LTH On Wednesd

[Puppet Users] Re: Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread lth
gsystem': cannot load such file -- puppet/provider/confine/ operatingsystem Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem Application root: /usr/local/build/puppet-bundle -LTH On Mar 28, 4:13 pm, "Kinzel, David&quo

[Puppet Users] Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread lth
erprise Linux Server release 5.7 (Tikanga) Thanks in advance. -LTH -- 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, send email to puppet-user