Re: [Puppet Users] Re: permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-16 Thread Justin Lloyd
be a chicken and egg problem, most likely. On Fri, Mar 16, 2012 at 1:19 PM, Justin Lloyd wrote: > Well I've somehow managed to get it down to just the error on the > masterhttp.log file: > > Could not prepare for execution: Got 1 failure(s) while initializing: > change f

Re: [Puppet Users] Re: permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-16 Thread Justin Lloyd
o don't have SELinux configured. Only thing installed is libselinux1. Apache2 runs as www-data but I think it was like that prior to this problem. /var is not read-only. I did think of that and verified it before my initial post. On Thu, Mar 15, 2012 at 5:39 AM, jcbollinger wrote: > &g

Re: [Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Justin Lloyd
Note that I'm testing puppetd -t on the master, just for simplicity, so I gave it a blank node entry, i.e. "node 'puppet-master' { }", to eliminate recent module changes as the culprit. On Wed, Mar 14, 2012 at 1:32 PM, Justin Lloyd wrote: > I did verify correctnes

Re: [Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Justin Lloyd
that when the userid "puppet" did not exist on a system. > > > On Wed, Mar 14, 2012 at 3:00 PM, Justin Lloyd wrote: > >> I'm suddenly getting the below errors from Rack during puppetd -t >> (excerpted from the pink HTML output and cleaned for readability): >

[Puppet Users] permission denied errors on /var/lib/puppet stuff during puppetd -t

2012-03-14 Thread Justin Lloyd
I'm suddenly getting the below errors from Rack during puppetd -t (excerpted from the pink HTML output and cleaned for readability): Could not prepare for execution: Got 10 failure(s) while initializing: change from absent to directory failed: Could not set 'directory on ensure: Permission denied

Re: [Puppet Users] Re: Duplicate definition + parameterized classes + class scope

2012-03-06 Thread Justin Lloyd
John, I'm running into some snags of my own and your explanations have been helpful. However, I'd like to ask if you can comment a bit more on the emphasis Puppet Labs has on parameterized classes versus include. For one, I'm thinking of modules available via github. Take the puppetlabs/mcollectiv

Re: [Puppet Users] Re: Best practices for excluding certain modules from certain nodes

2012-03-02 Thread Justin Lloyd
I just dealt with something similar regarding installing puppet agent vs. master and whether mcollective client (and thus activemq) should be installed. However, I'm including my base class rather than inheriting it. So how about something like this? # templates.pp (imported into site.pp) class sy

Re: [Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Justin Lloyd
Ok, thanks for the tip. On Mon, Feb 13, 2012 at 3:42 PM, Nan Liu wrote: > On Mon, Feb 13, 2012 at 3:37 PM, Justin Lloyd wrote: > > I was wondering if I'd need to create a define() but the language guide's > > description seems misleading, at least to me. From t

Re: [Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Justin Lloyd
le,* which must be unique and can be used to refer to the resource in other parts of the Puppet configuration. On Mon, Feb 13, 2012 at 3:32 PM, Nan Liu wrote: > On Mon, Feb 13, 2012 at 3:21 PM, Justin Lloyd wrote: > > I'm trying to use an array on a file resource to create symlinks.

[Puppet Users] Bug when using array in file resource?

2012-02-13 Thread Justin Lloyd
I'm trying to use an array on a file resource to create symlinks. If I have multiple elements in the array, I get a redefinition error showing it's replacing $name or $title with the CLASS name rather than the RESOURCE name. Here's a simplified example using one array element, where I'd expect to e

[Puppet Users] Errors using puppetlabs dashboard, passenger, and mysql modules from github

2011-12-05 Thread Justin Lloyd
I'm confused about certain Puppet parameterized class usage and scoping. The puppetlabs-dashboard module at githubstarts with the following: class dashboard::passenger ($dashboard_site, $dashboard_port) inherits

Re: [Puppet Users] Profiling Puppet?

2011-11-29 Thread Justin Lloyd
Thanks for the help! Justin On Tue, Nov 29, 2011 at 3:25 PM, Daniel Pittman wrote: > On Tue, Nov 29, 2011 at 15:13, Justin Lloyd wrote: > > Cool, nice to know about the evaltrace option. Interestingly, in the > ~1000 > > lines of output from "puppetd -t --evaltrace"

Re: [Puppet Users] Profiling Puppet?

2011-11-29 Thread Justin Lloyd
ng place between these two lines: info: Class[Mcollective]: Evaluated in 0.00 seconds info: /Stage[main]/Mcollective/File[plugins-sbin]: Evaluated in 0.00 seconds Hopefully I can dig deeper from there. Thanks, Justin On Tue, Nov 29, 2011 at 12:22 PM, Phillip Frost wrote: > > On Nov 29, 2011

[Puppet Users] Profiling Puppet?

2011-11-29 Thread Justin Lloyd
Is there any way to profile Puppet recipes? For example, here's a node (hostname changed to protect the innocent) in our nodes.pp: node host002 { include puppet_client_base include subversion::server# sets up the system to be a subversion server include motd # cont

Re: [Puppet Users] Are tildes actually valid in templates or is this a bug?

2011-11-18 Thread Justin Lloyd
/sigh. I just need to increase my font size. Thank you for pointing out a dumb mistake. Justin On Fri, Nov 18, 2011 at 11:05 AM, Nan Liu wrote: > On Fri, Nov 18, 2011 at 2:02 PM, Justin Lloyd wrote: > > Hi all, > > > > First off, we're running Puppet 2.7.6 wit

[Puppet Users] Are tildes actually valid in templates or is this a bug?

2011-11-18 Thread Justin Lloyd
Hi all, First off, we're running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0. Now, I'm using tildes in a template to prevent newlines from appearing but ruby/puppet is choking on them. */tmp/puppet$ cat test.erb* Line 1: Line 2 will exist if running on CentOS. <% if operatingsystem == "CentOS" ~%

Re: [Puppet Users] Re: Editing a variable defined in the same scope

2011-11-17 Thread Justin Lloyd
sform". The += was to avoid repetition of package names. You mention hacking something together with inline_template and split (which I've used in other situations), but I was shooting for a more elegant solution. Justin On Wed, Nov 16, 2011 at 6:22 AM, jcbollinger wrote: > > > O

[Puppet Users] Editing a variable defined in the same scope

2011-11-15 Thread Justin Lloyd
I tried the following (names changed to protect the innocent and guilty): class myclass ( $param ) { $myvar = [ "foo", "bar" ] if $param == "special" { $myvar += [ "blah" ] } } and got the message "...Cannot append, variable myvar is defined in this scope...". According to

Re: [Puppet Users] Fetching puppet files and templates from Maven

2011-11-09 Thread Justin Lloyd
template file # TODO referenced by the variable temp_template function_template(temp_template) end end On Tue, Nov 8, 2011 at 3:33 PM, Nan Liu wrote: > On Tue, Nov 8, 2011 at 5:54 PM, Justin Lloyd wrote: > > How would one go about fetching a template from Maven? For exa

[Puppet Users] Fetching puppet files and templates from Maven

2011-11-08 Thread Justin Lloyd
How would one go about fetching a template from Maven? For example, the normal way of using a file resource for an application config file might be: file { "/etc/app/app.xml": mode=> "0755", owner => "appuser", group => "appuser", content => template("app/app.xml.erb"), # r

[Puppet Users] Scalability, Dashboard/Foreman, and MCollective

2011-10-24 Thread Justin Lloyd
I've been trying to find information, suggestions, etc. for how to combine scaling Puppet with the use of management tools like Dashboard/Foreman and MCollective. Our current thinking for an initial deployment is two VMs as Puppet Master worker nodes fronted by a pair of NetScalers. However, I'm no