Re: [Puppet Users] Scaling Puppet ?

2012-01-20 Thread Luke Bigum
would manage the clients in their environment, and the cross-traffic would be minimized to only between PuppetMasters. I have brain-stormed on my own and I have a couple of possibilities, but they all feel like messy hacks so far. So, I thought I'd ask here before trying any of my ideas. -- L

Re: [Puppet Users] Creating group of nodes with different class

2012-02-06 Thread Luke Bigum
.pp& import that nodes in site.pp with different classes (class1& class2) such as, classes1 with nodesSD.pp classes2 with nodesCTO.pp Both the classes has different configuration& need to be run with different nodes Can anyone please assist me regarding the above senario. Thanks

[Puppet Users] in-house servers and cloud servers fed from the same Puppet Masters

2012-02-06 Thread Luke Bigum
cable. My biggest problem is this creates a massive internal-external divide that could stifle the use of cloud technologies to replace internal services. I'd be very interested in knowing what other people are doing in similar situations. Thanks, -Luke -- Luke Bigum Information Syste

Re: [Puppet Users] RE: enterprise puppet architecture

2012-02-23 Thread Luke Bigum
To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems luke.bi...

Re: [Puppet Users] Re: How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread Luke Bigum
class that all the others include: But which is better? Is it just a matter of personal preference? What advantages one gains? What does need more resources, performance-wise? -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Bu

Re: [Puppet Users] multi-line key/value pairs in Puppet Dashboard?

2012-03-20 Thread Luke Bigum
ned variable that contains the additions to place into the file. But how can I (easily?) add multiple lines to the Dashboard variable? Or do I have to create multiple key/value pairs for each line I wish to add? When using Puppet Dashboard, how does one easily add multiple lines to a Puppet-contr

Re: [Puppet Users] Including bar::something sometimes gives me foo::bar::something

2012-03-22 Thread Luke Bigum
ot;bar::something" instead - I tried "::bar::something", but this called *both* of them(!) I'm running 2.7.11. Thanks, Mark -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London

Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-23 Thread Luke Bigum
-users/-/XUeixQ5zq7sJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Informatio

Re: [Puppet Users] Re: Removing lines from a file

2012-03-23 Thread Luke Bigum
at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN The information in this e-mail and any attachment is confidential and is intend

Re: [Puppet Users] Plugins and Hiera

2012-03-23 Thread Luke Bigum
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-users+unsubscr...@googlegroups.com. For more options, visit this group at ht

Re: [Puppet Users] Plugins and Hiera

2012-03-23 Thread Luke Bigum
do an include of those that I actually want to include... but how do I do that? How do you select which plugins to load, from inside the puppet code? Thanks! Pablo On Friday 23 March 2012 11:04:38 Luke Bigum wrote: > Hi Pablo, > > The Ruby part of Facts is a little daunting at f

Re: [Puppet Users] Plugins and Hiera

2012-03-24 Thread Luke Bigum
o be a fact. Any other ideas? Thanks! Pablo From: puppet-users@googlegroups.com [puppet-users@googlegroups.com] on behalf of Luke Bigum [luke.bi...@lmax.com] Sent: Friday, March 23, 2012 2:52 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Plugins and Hiera Ok, I wo

Re: [Puppet Users] Node has to communicate?

2012-03-29 Thread Luke Bigum
licy? If so, is it possible to have a node that doesn't communicate with the master and it run a policy? Regards… -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs ar

Re: [Puppet Users] Implementing hooks

2012-04-12 Thread Luke Bigum
odule, but that means I always need to rebase re-arrange my code around upstream modifications.. and for maintenance, it really adds a bunch of work. Do you guys know if it would be possible to implement a way to "hook" my extraneous logic into the define so that I don't need to modi

Re: [Puppet Users] hiera puppet augeas and hash keys ?

2012-04-17 Thread Luke Bigum
tml#createresources Your manifest would look something like this: ** define augeas_wrapper (key, value) { augeas{ "some_file": changes => [ "set $key $val" ] } } $augeas_hash = hiera_hash($fqdn) create_resources('augeas_wrapper', $augeas_hash) ** Ma

Re: [Puppet Users] how to get ruby-shadow installed before trying to make users,groups

2012-04-17 Thread Luke Bigum
user. But since the provider has already clipped the attributes they don't get set in the first run. when run a second time the attributes do get set correctly, but that seems a bit kludgy to have to run puppet twice to get the desired affect. -- Luke Bigum Information Systems Ph: +44 (0) 2

Re: [Puppet Users] Puppet Learner

2012-04-17 Thread Luke Bigum
from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nich

Re: [Puppet Users] Re: collecting resources for iteration in a template

2012-04-17 Thread Luke Bigum
'for' loop is unnecessary with shell wildcards. At least, that's how we do it at work.) Wil -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs are leveraged pr

Re: [Puppet Users] Puppet Learner

2012-04-17 Thread Luke Bigum
with puppet master) so how do i do that? do i need to install puppet client aswel where puppet master is running to do the required job or puppet master can be use to configure itself? If yes then how. Regards, On 17 April 2012 09:07, Luke Bigum <mailto:luke.bi...@lmax.com>> wrote:

Re: AW: [Puppet Users] Undo

2012-04-18 Thread Luke Bigum
subscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs a

Re: [Puppet Users] Generating dhcp/pxe configuration from puppet

2012-04-18 Thread Luke Bigum
p, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, Lon

Re: [Puppet Users] Re: Looking for solution on working configuration for new testing Puppet servers in existing environments

2012-04-19 Thread Luke Bigum
ou 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-users+unsubscr...@googlegroups.com. For more options, visit this group at h

Re: [Puppet Users] Re: Generating dhcp/pxe configuration from puppet

2012-04-20 Thread Luke Bigum
there setup DHCP and PXE for them. Any other hints? Cheers, Christian On Apr 18, 10:22 am, Luke Bigum wrote: If you wanted to do this all in Puppet, you could take the same approach that people do with Nagios an use exported resources. Have each of your nodes export some kind of resource that de

Re: [Puppet Users] HA with BIG-IP?

2012-04-23 Thread Luke Bigum
ted via HTTP? I have seen this scenario described in Pro Puppet. I would think I would run into problems verifying clients at the PM if I decrypt at the load balancers. * How are you deploying health monitors for the PM's? Thanks, Josh -- Luke Bigum Information Systems Ph: +4

Re: [Puppet Users] Recovering deleted modules

2012-04-24 Thread Luke Bigum
ibe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nichol

Re: [Puppet Users] autosign

2012-04-24 Thread Luke Bigum
se? Chris Ritson (Computing Officer and School Safety Officer) Room 707, Claremont Tower,EMAIL: c.r.rit...@ncl.ac.uk School of Computing Science, PHONE: +44 191 222 8175 Newcastle University, FAX : +44 191 222 8232 Newcastle upon Tyne, UK NE1 7RU. WEB : http://www.

Re: [Puppet Users] help with array in a template.

2012-04-24 Thread Luke Bigum
ualmountpoints.each do |fs| -%> virtualmountpoint<%= fs %> <% end -%> Thats what I get: virtualmountpoint / /home /tmp /var/tmp /usr /var but I would like to get instead: virtualmountpoint / virtualmountpoint /home virtualmountpoint /tmp virtualmountpoint /var/tmp virtualmountpoint

Re: [Puppet Users] autosign

2012-04-24 Thread Luke Bigum
PHONE: +44 191 222 8175 Newcastle University, FAX : +44 191 222 8232 Newcastle upon Tyne, UK NE1 7RU. WEB : http://www.cs.ncl.ac.uk/ -----Original Message- From: Luke Bigum [mailto:luke.bi...@lmax.com] Sent: 24 April 2012 09:42 To: puppet-users@googlegroups.com Cc: C

Re: [Puppet Users] ordering or chaining for generate() function

2012-04-25 Thread Luke Bigum
because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5OeG7J97VsQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to

Re: [Puppet Users] Unable to import a manifest file from a different directory to the one where site.pp is located using environments

2012-04-25 Thread Luke Bigum
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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pupp

Re: [Puppet Users] puppet way of handling rdist and triggers

2012-04-27 Thread Luke Bigum
EJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 2

Re: [Puppet Users] puppet way of handling rdist and triggers

2012-04-27 Thread Luke Bigum
o just getting on the rdist master, make changes and then practically an rsync? If that's the way you work and the way you want to continue to work then I don't think Puppet's going to beat rdist for this use case. -Luke On 27/04/12 16:15, Philip Brown wrote: On Friday, April

[Puppet Users] Re: puppet way of handling rdist and triggers

2012-04-28 Thread Luke Bigum
ne hooked ;-) The Puppet Package type supports a lot of different providers and OS': http://docs.puppetlabs.com/references/2.7.0/type.html#package On Apr 27, 5:40 pm, Philip Brown wrote: > On Friday, April 27, 2012 8:28:32 AM UTC-7, Luke Bigum wrote: > > > What problem are you tryi

[Puppet Users] Re: scaling puppet, skipping puppetmaster?

2012-04-28 Thread Luke Bigum
I use Puppet Commander, an MCollective tool: http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/ToolPuppetcommander Rather than have my Puppet Agents check in, no Puppet service runs on any server, instead MCollective is running. Puppet Commander uses the MCollective framework to sch

Re: [Puppet Users] managing some directories

2012-04-30 Thread Luke Bigum
ogle 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Lu

Re: [Puppet Users] White list of packages

2012-05-02 Thread Luke Bigum
unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Build

Re: [Puppet Users] Re: how to exclude modules from inherited list

2012-05-02 Thread Luke Bigum
l to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN F

Re: [Puppet Users] Module organization

2012-05-04 Thread Luke Bigum
mple) an emailclient module, and then have emailclient::darwin etc. and have emailclient include the appropriate module subclass... but this makes me wonder if I'm misunderstanding the point here as it seems like I'm calling an extension of a class from the class itself which seems recursive

Re: [Puppet Users] forcing user resource provider to be local files only?

2012-05-04 Thread Luke Bigum
SwBulpnIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information System

Re: [Puppet Users] logrotate and augeas

2012-05-08 Thread Luke Bigum
geas is: /files/etc/logrotate.d/rsyslog/rules[2]/file[1] (and go on untile file[4]) node file is an array that contains all file that should be rotated, but if I want to delete this rows without specify the array indexes, it's possible to do? Thanks in advance. Regards, Fx

Re: [Puppet Users] Re: how to exclude modules from inherited list

2012-05-08 Thread Luke Bigum
ecause 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-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.co

Re: [Puppet Users] The best way to access this node data

2012-05-09 Thread Luke Bigum
ternatively, is there any way to access this data server-side that can be accessed on a per-node basis? Cheers, Jonathan -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CF

[Puppet Users] override resource created with create_resource function

2012-05-11 Thread Luke Bigum
s over inherits base { Notify['msg'] { message => 'meow' } } class { 'base': } class { 'over': } - Thanks, -Luke -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nic

[Puppet Users] how best to combine business data (Hiera) and machine data (Facts)

2012-05-11 Thread Luke Bigum
achine logic). That's not trivial to do, especially with a potentially large set of data like sysctl.conf keys. Does anyone have any thoughts or tips on how they might be managing a similar situation? Thanks, -Luke -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@

Re: [Puppet Users] how best to combine business data (Hiera) and machine data (Facts)

2012-05-11 Thread Luke Bigum
anges to the data between RHEL 5 and 6?". If the answer to these is yes, then I tend to favor putting that data into a module's data class so that it's exposed for ANYONE who wants to use the module. Why would you want to hide these differences in the hierarchy - especially if

Re: [Puppet Users] override resource created with create_resource function

2012-05-14 Thread Luke Bigum
rd declaration on all nodes - and that's my real problem. Class 'base' can't be in a standard list of declarations if it's ever going to take a parameter and be configurable. I have yet to find the perfect balance of common things to manage and configurability ;-) -Luk

Re: [Puppet Users] how best to combine business data (Hiera) and machine data (Facts)

2012-05-15 Thread Luke Bigum
is dependent on machine logic (virtual vs physical, types of hardware, etc) that doesn't seem right to put into Hiera as I'd have a complex hierarchy for a bunch of edge case Facts. I seem to need to make decisions on two sources: business logic in Hiera hierarchy (that's easy wi

Re: [Puppet Users] Puppet master file serve

2012-05-15 Thread Luke Bigum
users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs are

Re: [Puppet Users] Using Puppet to manage preexisting servers

2012-05-16 Thread Luke Bigum
to replace changed files, or is this a manual process? I'm not sure what you mean by changed files. If you have Puppet manage a file's contents with the File type, it will continually put in that file what it thinks should be in there. Other providers can make inline edits of files, like Aug

Re: [Puppet Users] Hiera Questions: An array of :datadir: ?

2012-05-18 Thread Luke Bigum
rs. Any Admin still has the ability to overwrite any key in an data store above it, so it stops them doing anything silly like changing passwords, LDAP servers, etc, as these keys will already be set by us (Admins). -Luke -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lm

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Luke Bigum
ers) ---- -Luke -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs are leveraged products that can result in losses exceeding your deposit. They are not suitable f

Re: [Puppet Users] Hiera Questions: An array of :datadir: ?

2012-05-21 Thread Luke Bigum
G: Mon May 21 07:59:39 + 2012: Found key collective in file /etc/puppet/environments/production/satellite_system_groups/common.json, appending to Array DEBUG: Mon May 21 07:59:39 + 2012: Lookup found answer '' [""] -- Luke Bigum Information Systems Ph: +44 (0) 20

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-21 Thread Luke Bigum
ulate the nil value and try again? On Fri, May 18, 2012 at 2:41 PM, Dan White <mailto:y...@comcast.net>> wrote: - Luke Bigum mailto:luke.bi...@lmax.com>> wrote: > On 18/05/12 13:46, Dan White wrote: > > Ah, Gary ! Just the brain I wish to pick ! :) &

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-22 Thread Luke Bigum
On 22/05/12 00:22, Jeff McCune wrote: On Mon, May 21, 2012 at 1:24 AM, Luke Bigum <mailto:luke.bi...@lmax.com>> wrote: I agree with Gary, Dan, it's probably the lack of data in the 'v_ingroups' key in your YAML that create_resources() is complaining about. I

Re: [Puppet Users] when are facts supposed to be synced?

2012-05-24 Thread Luke Bigum
never come down, rinse, repeat. Is there a way around this? -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http://www.lmax.com LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN FX and CFDs are leveraged products that can result in losses exceeding your

[Puppet Users] Puppet caching user/uids

2012-05-28 Thread Luke Bigum
iles as an LDAP user in the same run. Hacky answers are welcome - my objective is to as close to a single pass as possible, I really don't want to have to wait for another scheduled run. Thanks, -Luke -- Luke Bigum Information Systems Ph: +44 (0) 20 3192 2520 luke.bi...@lmax.com | http

[Puppet Users] repeat a character in a string a certain number of times

2012-05-31 Thread Luke Bigum
Hi all, This should be pretty easy to do but I can't figure it out in Puppet DSL or ERB. I basically want to repeat a certain character X number of times, like this: $string = regsubst("x", "x", "y{30}", "EG") To replace one 'x' with 30

Re: [Puppet Users] Manage but don't create resource

2012-06-01 Thread Luke Bigum
QJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Luke Bigum Information Systems Ph: +4

Re: [Puppet Users] Manage but don't create resource

2012-06-01 Thread Luke Bigum
uml-laptop:~$ cat test.pp user { 'woof': shell => '/bin/false' } I'm not sure if this is a bug or feature. As for trying to get the behaviour that you want, it's a bit difficult without having Facts for all your existing users or using an Exec resource. -Luke On 01

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
Annie, http://docs.puppetlabs.com/references/stable/type.html#exec By default the expected return code is probably zero, your script is returning 1. Whether this is correct or not I don't know, but you can tell puppet to expect a different return code: exec { '/etc/shell_file': require => File

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
exec resource. On Jun 17, 3:18 pm, Annie Rana wrote: > Thanks but it couldn't work though i got the message that shell script is > successfully executed. > > On Fri, Jun 17, 2011 at 2:44 PM, Luke Bigum wrote: > > Annie, > > >http://docs.puppetlabs.com/referen

[Puppet Users] Re: Problem in wordpress module

2011-06-17 Thread Luke Bigum
Your tar command failed. Does "tar -vzxf /var/www/wordpress.tar.gz" work from a root shell? logoutput => true in the exec resource might give you more information to help debug. On Jun 17, 2:50 pm, "lucas.brigida" wrote: > Hi! > > I'm doing a module for the "puppet" for WordPress will implement.

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
do? > > > The shell script would generate Iptables rules > > > > How do you know it didn't work? > > > I can check using ipatbles -L or iptables -t mangle -L commands > > > > If you run it by hand in a root shell, does it work then? > > >

[Puppet Users] Re: Puppet recipe to copy and execute a shell file

2011-06-17 Thread Luke Bigum
en tried > command paremeter in exec but no use. Do you know anyother way to execute > bash shell in puppet? > > Thanks much, > > Annie > > On Fri, Jun 17, 2011 at 4:30 PM, Annie Rana wrote: > > Hi Luke, > > > I replaced my shell script with the one you wro

[Puppet Users] Re: Puppet Module Confusions

2011-07-04 Thread Luke Bigum
On Jul 4, 3:48 pm, imase wrote: > Hello together, > > I have problems with my Puppet installation. I use example42 Modules > as the base of my own Modules for automated deployment of Rational > Application Developer. > One of my Nodes is an tomcat server with the following includes > > include m

[Puppet Users] Re: puppet master and puppet client running very slow

2011-07-04 Thread Luke Bigum
Sanjiv, How long does your master think that catalog compilation is taking? Look for these lines: Jul 4 15:13:53 puppetmaster puppet-master[26138]: Compiled catalog for puppetclient in environment live in 0.12 seconds And then the time for the agents applying that catalog: Jul 4 15:13:55 pupp

[Puppet Users] Re: proposed syntax: order { }

2011-07-05 Thread Luke Bigum
On Jul 5, 10:26 am, vagn scott wrote: > Now, you can rewrite this using class {} instead of block{}. > You probably have lots of classes in that style, and then you > sequence things with  Class[ a ] -> Class[ b ].  How many of > those classes only exist because there is no other block structure?

[Puppet Users] Re: Puppet Module Confusions

2011-07-05 Thread Luke Bigum
On Jul 5, 2:51 pm, imase wrote: > After I change something and > deployed again with capistrano, the classes rad in the .txt-file were > away. But after the next time deploying it they were back again. ... So, what did you change? ;) > node 'v00404' inherits basenode { >     import "webapps.pp

[Puppet Users] Re: $pdprop doesnt work with folder?

2011-07-07 Thread Luke Bigum
Your variable $pdprop is not being expanded as a variable as you've got the string enclosed in single quotes ''. Try: source => "puppet:///modules/nrpe/plugins/tomcat-$pdprop" -Luke On Jul 7, 1:51 pm, Sriram Nyshadham wrote: >  Hi, > > Could someone please confirm if the following works or no

[Puppet Users] Re: Testing if a puppet class is going to be installed

2011-07-07 Thread Luke Bigum
Hi Keith, On Jul 7, 5:26 pm, Keith Minkler wrote: > In a bunch of my templates and manifests, I need to have logic which > depends on whether or not a particular (other) puppet class is going > to be installed on the machine. This use case comes up a lot. There are some functions but historicall

[Puppet Users] Re: Explanation of the metric section of a report

2011-07-11 Thread Luke Bigum
"puppetd --test --evaltrace" may also tell you which resources are taking longer than others, narrowing down the problem. I don't have any large manifests at the moment so I'm not sure if evaluation time is the same as 'do all the work' time. On Jul 9, 5:28 pm, Nigel Kersten wrote: > On Fri, Jul

[Puppet Users] Re: Upgrading 0.25.5 to 2.7.1

2011-07-28 Thread Luke Bigum
Hi Doug, In case everyone else's posts haven't solved your problem, there's a fiddly but seamless way to migrate between Puppet Masters by keeping the same CA. It's easier if you already have a DNS alias for your master, like "puppet" and that's also an additional Cert DNS Name in the master's cer

[Puppet Users] Re: module / class scope

2011-08-02 Thread Luke Bigum
On Aug 2, 9:51 am, Stephen Bunn wrote: > apologies if this shows up twice, I sent it via email and it appears > that it never appeared, so I'm posting this again through the google- > groups interface. Strange, they both appeared in my inbox at the same time. > try to do a require => Class["fir

[Puppet Users] Re: How to subclass a module?

2011-08-10 Thread Luke Bigum
On Aug 10, 12:04 am, Haitao Jiang wrote: > I put it under modules/xyz/manifests/classes/xyz_new.pp For Puppet auto-loading, the full path to that file should be: modules/xyz/manifests/xyz_new.pp and you won't need any 'import' statements. > The problem is that when I include this new class xyz

[Puppet Users] Re: cleaning puppet dashboard

2011-08-11 Thread Luke Bigum
Hi Arnau, This is not a Puppet Dashboard problem, it's a MySQL "feature" of InnoDB. You're using per-table InnoDB data files. InnoDB data files grow. They never, ever, ever shrink. So what you've got there is a 22GB sparse file that MySQL will fill up with more resource_statuses rows. It won't use

[Puppet Users] Re: Corrupted inventory.txt - how to rebuild?

2011-08-16 Thread Luke Bigum
Sean, Previously I've set up a cluster of Puppet Masters with one machine acting as the software load balancer (IPVS) as well as the Puppet Certificate Authority. The relevant puppet.conf options are ca_port and ca_server to specify where your CA is. The Puppet Master service on the CA server list

[Puppet Users] Re: Corrupted inventory.txt - how to rebuild?

2011-08-16 Thread Luke Bigum
Also I think Nigel posted a load balanced solution using entirely Apache that's floating around on the list, configs and all. Was a few months ago now if you want to go searching. On Aug 16, 4:12 pm, Luke Bigum wrote: > Sean, > > Previously I've set up a cluster of Pupp

[Puppet Users] handy tip against unhelpful "Could not intern from pson" error

2011-08-24 Thread Luke Bigum
Not sure if people are already aware of this, but it might save someone some time in the future. I've been tracking down the following error today, it's rather unhelpful in telling you where the problem is in your manifests: # puppetd --test info: Retrieving plugin err: Could not retrieve catalog

[Puppet Users] Re: handy tip against unhelpful "Could not intern from pson" error

2011-08-24 Thread Luke Bigum
nning failed: Could not start Service[undef]: Execution of '/sbin/service undef start' returned 1: at /etc/puppet/ environments/testing/modules/httpd/manifests/service.pp:26 On Aug 24, 5:12 pm, Henrik Lindberg wrote: > I can't see any difference between your two examples. >

[Puppet Users] custom type treating a parameter as a method?

2011-09-07 Thread Luke Bigum
Hi list, I'm currently looking at the puppet-virt module at https://github.com/carlasouza/puppet-virt.git to see if it will work in my environment and I've run into a Puppet/Ruby problem I don't know where to begin debugging. It looks like one of the custom type's parameters is being interpreted

[Puppet Users] Re: custom type treating a parameter as a method?

2011-09-07 Thread Luke Bigum
; libvirt provider. My mistake :( > I'll fix that and I'll notify you when I finish it. > > Cheers, > > Carla Souza > > > > > > > > On Wed, Sep 7, 2011 at 13:14, Luke Bigum wrote: > > undefined method `interfaces=' -- You received th

[Puppet Users] commands in Puppet providers being escaped differently to a shell

2011-09-08 Thread Luke Bigum
Hi list, I'm making a few modifications to the puppet-virt type from GitHub (https://github.com/carlasouza/puppet-virt.git) and I've run across an interesting problem with what looks like how a "command" in a Puppet provider is escaping or interpreting it's arguments. Explaining this is a bit long

[Puppet Users] Re: commands in Puppet providers being escaped differently to a shell

2011-09-08 Thread Luke Bigum
A! That makes sense, I should be thinking like C/C++ execv, one array element per argument, no matter what it's string content. Dropping the quotes in the parameter sting and using the original Ruby command exec works fine. I should have tried that before - I was confusing myself by trying too

[Puppet Users] Re: Facter variable $puppetversion

2011-09-13 Thread Luke Bigum
Err, what is that 0.25-5 doc folder and what RPM owns it? rpm -qf /usr/share/doc/puppet-0.25.5 If nothing owns it, you've pretty much proved your system has old Puppet artefacts lying around. Personally I wouldn't trust any of the content in /usr/lib/ruby now. Is this a production system? Anythin

[Puppet Users] Re: "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Luke Bigum
Matthias, I had a similar problem recently with libvirt Ruby bindings being required for a provider. Due to a few other requirements I opted for creating a "second pass" approach by using a custom fact to describe whether my provider was "ready to be used" on a node and wrap my resources in a cond

[Puppet Users] Re: "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Luke Bigum
' issue fit run > stages? This sounds like exactly what they were designed to solve: ensure > certain things definitely happen before certain other things. > > > > > > > > On Wed, Oct 05, 2011 at 07:33:29AM -0700, Luke Bigum wrote: > > Matthias, > > >

[Puppet Users] Re: "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Luke Bigum
My explanation's not the best so went looking to see if the Internals wiki page specifically mentions what I'm talking about, I'm pretty sure the problem is in the Parsing phase: http://docs.puppetlabs.com/guides/puppet_internals.html On Oct 5, 3:42 pm, Luke Bigum wrote: >

[Puppet Users] Re: "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Luke Bigum
On Oct 5, 4:40 pm, Craig White wrote: > I suspect that I must be missing something here but it seems rather obvious > to me that in this specific example... > > require => Package["git"] That would work if Puppet was attempting to use Git (in Matthias' example) and LibVirt (in my example) during

[Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-13 Thread Luke Bigum
Can you give me an example of a grub.conf file that you want to achieve? I don't have a dual boot windows system so not exactly sure what option you mean. On Oct 12, 9:15 pm, "James A. Peltier" wrote: > Hi All, > > I'm trying to create a puppet manifest that sets the grub default= value to > sav

[Puppet Users] Re: How to divide the puppet.conf file in multiple files ?

2011-10-14 Thread Luke Bigum
If you're trying to reduce the amount of repeated configuration by only storing the [main] and [agent] sections once, you can achieve this using the Concat module (https://github.com/ripienaar/puppet- concat). You have a file for /etc/puppet/puppet.conf with an Agent fragment, then on your Puppet M

[Puppet Users] Re: Redhat and Scientific Linux

2011-10-14 Thread Luke Bigum
It depends on the complexity of your classes. For a lot of the time you can use variables for the difference between operating systems and then use conditional logic to populate those variables, like: $pkg = $operatingsystem ? { 'RedHat' => "woof", 'Fedora' => "meow", } package { $pkg: } I'

[Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-14 Thread Luke Bigum
l -s "" wasn't saving the files either so I had to get even more hacky and use a temporary file (urgh...). This is from one of my modules: $aug_tmp_file = "/tmp/.puppet_base_augeas_cmd_file" exec { "set elevator=deadline in $grub_menu": command => "echo &#

[Puppet Users] Re: Managing entries in /etc/group (membership)

2011-10-18 Thread Luke Bigum
If I understand your problem correctly, no, there is no native resource type in Puppet to manage a UNIX group, ie: this does not exist: group { "wheel": members => "luke", } To manage group membership you need to know about every user you want in every group. So if what you mean by "not having

[Puppet Users] Re: Better solution for puppet SVN releases

2011-10-18 Thread Luke Bigum
We use Git here and we tag branches to certain environments. We have a testing branch which everyone commits in to and what most of our testing machines are using. We then have other environments like Staging and Production that have specific tag checked out that (will eventually) align with our De

[Puppet Users] Re: MySQL server has gone away

2011-10-20 Thread Luke Bigum
This is not necessarily a Puppet problem. That error is the generic message you get when a MySQL client's connection to the server is unexpectedly lost during a query. It could be a problem with your MySQL server, such as a very low connection time out, or something more serious. http://dev.mysql.

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

2011-10-24 Thread Luke Bigum
On Oct 24, 5:38 pm, Justin Lloyd wrote: > 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 nod

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

2011-10-24 Thread Luke Bigum
Excuse my first misclick ;) On Oct 24, 5:38 pm, Justin Lloyd wrote: > 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 Users] Re: Scalability, Dashboard/Foreman, and MCollective

2011-10-25 Thread Luke Bigum
On Oct 24, 6:20 pm, "R.I.Pienaar" wrote: > - Original Message - > > For MCollective, start reading about subcollectives[1] and Stomp > > failover pools [2]. There's no reason why each of your Puppet Masters > > can't also be Stomp servers. ActiveMQ has some nice abilities to send > > messa

[Puppet Users] Re: What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-01 Thread Luke Bigum
It also has to do with Puppet's implementation of File resources: it creates in memory Ruby objects for every file and directory it finds recursively, so combine that with the md5 summing and you'll blow out your CPU and memory usage very quickly. I've done something like this in the past: $path="

[Puppet Users] Re: Clearing delayed job failures in dashboard

2011-11-03 Thread Luke Bigum
FYI this is a lot faster to delete everything from a MySQL table: TRUNCATE TABLE delayed_job_failures; On Nov 3, 12:10 pm, Evgeny wrote: > then only it will help: > > delete FROM `delayed_job_failures` WHERE 1 -- You received this message because you are subscribed to the Google Groups "Puppe

  1   2   3   >