[Puppet Users] Scheduled downtime on projects.puppetlabs.com

2012-05-15 Thread Ben Hughes
p;sec=0&p1=179&p2=202 for those battling other timezones). So try not to find any bugs during those hours. (: Thanks! -- Ben Hughes -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-

[Puppet Users] Redmine upgrade

2011-07-27 Thread Ben Hughes
Good day all, Just a quick heads-up that I'll be upgrading Redmine on https://projects.puppetlabs.com on the 28th at 10:30PM PDT. (05:30 UTC) It should be swift, and probably, no one will even notice. Thanks. -- Ben Hughes || Come to PuppetConf http://bit.ly/puppetconfsig -- You rec

[Puppet Users] Re: Redmine upgrade

2011-07-28 Thread Ben Hughes
On Wed, Jul 27, 2011 at 11:55:16AM -0700, Ben Hughes wrote: > It should be swift, and probably, no one will even notice. Let us all just pretend that was the case... If anyone is seeing anything out of sorts, please give me a shout (or, if you still can, raise a ticket). Thanks. --

[Puppet Users] Redmine and Forge outages

2011-08-16 Thread Ben Hughes
utage earlier too [1]. If you have any issues in a couple of hours once it's all back up, feel free to hunt me down and ask me. Thanks. 1. http://status.linode.com/2011/08/partial-outage-in-fremont.html -- Ben Hughes || Come to PuppetConf http://bit.ly/puppetconfsig -- You received th

[Puppet Users] Re: Redmine and Forge outages

2011-08-16 Thread Ben Hughes
On Tue, Aug 16, 2011 at 06:53:03PM -0700, Ben Hughes wrote: > Due to continuing problems with our datacenter, we're moving some > infrastructure this evening. Both Forge and Redmine are back, we have normality. (With the obligatory Hitch-Hikers Guide to the Galaxy reference of: A

Re: [Puppet Users] Re: Passenger, Puppet/ nodes.pp ignored with external nodes script?

2011-02-15 Thread Ben Hughes
On Tue, Feb 15, 2011 at 06:30:29PM -0800, trey85stang wrote: > while I am at it, what is the best way to load balance between > multiple servers using passenger? a dedicated load balancer or can > the balancing be done within passenger like mongrel? As you're using Passenger you could get Apach

Re: [Puppet Users] Re: Passenger, Puppet/ nodes.pp ignored with external nodes script?

2011-02-15 Thread Ben Hughes
On Tue, Feb 15, 2011 at 07:12:57PM -0800, trey85stang wrote: > Thanks Ben, that is simple enough. Other people have had success with putting HAProxy in front of Apache/Passenger stacks too. Which is simpler in terms of structure, but more components. -- ben -- You received this message becau

Re: [Puppet Users] execute resources only when told to

2011-02-16 Thread Ben Hughes
On Wed, Feb 16, 2011 at 08:18:42AM -0800, loki77 wrote: > Hi, I'm looking for a way to have puppet kick off an upgrade of my > companies software, but only when it's somehow 'told' to. There's this from the docs about Debian's system upgrade path. Something like that? https://projects.puppetlab

Re: [Puppet Users] error using If/Else conditionals inside templates

2011-02-16 Thread Ben Hughes
On Wed, Feb 16, 2011 at 12:52:49AM -0800, David Kramer wrote: > <% if tagged(development) %> In ERB the syntax is different I believe. The tagged() is in manifest syntax. In ERB land, you have access to tags via: <% tags.each do |tag| -%> So perhaps something like <% if tags.include?( "develop

Re: [Puppet Users] Where to put External Nodes in Multiple Environments?

2011-02-28 Thread Ben Hughes
et. [ben@Paresthesia:~]% cat ~/.ackrc --type-set=puppet=.pp -- Ben Hughes || http://www.puppetlabs.com/ -- 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 unsubscr

Re: [Puppet Users] Agent certificate name in a manifest on the master

2011-03-01 Thread Ben Hughes
u expose the contents of /etc/certname via a simple Fact? -- Ben Hughes || http://www.puppetlabs.com/ -- 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 unsubscri

Re: [Puppet Users] Updating all packages with Puppet

2011-03-03 Thread Ben Hughes
documented there certainly. -- Ben Hughes || http://www.puppetlabs.com/ -- 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

Re: [Puppet Users] Creating user accounts

2011-03-03 Thread Ben Hughes
around this? What OS/distribution is this on. That combination should work fine. -- Ben Hughes || http://www.puppetlabs.com/ -- 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@googlegrou

Re: [Puppet Users] Integer comparison in Puppet Templates

2011-03-03 Thread Ben Hughes
nge it to: <%if foo.to_i > 4 %> Have a foursy day <% end%> That should work for you. -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to

Re: [Puppet Users] NFS mount problem

2011-03-03 Thread Ben Hughes
On Thu, Mar 03, 2011 at 03:11:40PM -0800, Forrie wrote: > I'm trying to get a simple NFS mount to work with Puppet, using this: [snip] > atboot => "true, Missing a " (: -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are

Re: [Puppet Users] Re: NFS mount problem

2011-03-03 Thread Ben Hughes
t automatically? Rather than just using a file{...} call? file{ [ "/srv/mount1" , "/srv/mount2" ]: ... } and so forth. -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

Re: [Puppet Users] Re: NFS mount problem

2011-03-03 Thread Ben Hughes
quot;, ensure => "mounted", options => "defaults", atboot => true, require => File[ "/srv/fraser" ] } You could probably make a define to wrap around both to ensure => absent the directory after you ensure => absent the

Re: [Puppet Users] class + each do

2011-03-03 Thread Ben Hughes
require => User[$name], } } userkey{ ["user1","user2","user3"]: } -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, se

Re: [Puppet Users] Re: class + each do

2011-03-03 Thread Ben Hughes
On Thu, Mar 03, 2011 at 11:20:38PM -0800, aleksey_k wrote: > But puppet client don't copy file from puppet server :( Anything in the output or logs at all? Stop the client and run: # puppet agent --test and that should give you more information as to why. -- Ben Hughes

Re: [Puppet Users] Re: class + each do

2011-03-04 Thread Ben Hughes
t's not getting called at all. -- Ben Hughes || http://www.puppetlabs.com/ -- 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 gro

Re: [Puppet Users] Creating user accounts

2011-03-06 Thread Ben Hughes
, from my laptop: [ben@Paresthesia:~]% ssh -i /Users/ben/.ssh/biglongkey daisy@centos.local hostname \; id centos.localdomain uid=502(daisy) gid=502(daisy) groups=502(daisy) context=user_u:system_r:unconfined_t I've not [knowingly anyway] changed the PAM config on my centos machine and it seems t

Re: [Puppet Users] Re: NFS mount problem

2011-03-06 Thread Ben Hughes
were talking about? Either make a module for nfs and have the function create the mountpoints on "ensure" and rmdir them after "absent", would be one way. Or use run stages and have a "post" stage unmount them and tidy up the directories you no longer require. --

Re: [Puppet Users] Unable to run puppetmasterd 2.6.5 on Centos 5

2011-03-07 Thread Ben Hughes
On Mon, Mar 07, 2011 at 02:00:23AM -0800, Ankush Grover wrote: > /usr/lib/ruby/site_ruby/1.8/puppet/network/handler/fileserver.rb: > 270:in `readconfig': undefined method `name' for nil:NilClass > (NoMethodError) Do you have a /etc/puppet/fileserver.conf and is it modified i

Re: [Puppet Users] template file changed, but no notify being sent

2011-03-08 Thread Ben Hughes
-u spamd --min-children=40" Change that to be: SPAMDOPTIONS="-d -L -i <%= ipaddress_eth0 %> -A 10.44.217.0/20 -A 10.216.15.242/32 -A 10.216.1.14/32 -A 10.216.15.0/24 -A 213.171.193.103/32 -m 40 -q -x -u spamd --min-children=40" You had a -% in the template. Whic

Re: [Puppet Users] Managing directories recursively and adjust subdirectories permissions?

2011-03-10 Thread Ben Hughes
es/2296 To stop things getting overwritten it prunes the path when it sees overlaps. You just need to specify: file { "/opt/files/copied_from_master": source => "puppet:///showcase/copied_from_master" mode => 744, recurse => true } See if tha

Re: [Puppet Users] keeping a service running properly

2011-03-10 Thread Ben Hughes
ason you can't just make the init script output what you want, or will that break other things horribly? That seems more the right thing for it to be doing in the first place? Otherwise the exec{} seems the path of least resistance. -- Ben Hughes || http://www.puppetlabs.com/ -- You received

Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.6 available!

2011-03-20 Thread Ben Hughes
ng yum to install puppet using tmz's repository. -- Ben Hughes || http://www.puppetlabs.com/ -- 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

Re: [Puppet Users] Debian 6 puppetmaster package

2011-03-20 Thread Ben Hughes
On Fri, Mar 18, 2011 at 04:43:40AM -0700, Jon wrote: > Could anyone help with the required steps to get this running? Does this machine have a full valid, resolvable hostname? -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Goo

Re: [Puppet Users] Custom Puppet CA?

2011-03-31 Thread Ben Hughes
ects/1/wiki/Certificates_And_Security#Manual-CA-Configuration-optional Does that help at all? -- Ben Hughes || http://www.puppetlabs.com/ -- 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

Re: [Puppet Users] if statement: 'true' from left operand of 'in' expression is not a string

2011-04-03 Thread Ben Hughes
need to be quoted I'm afraid. $installplugins = 'true' if ! ($installplugins in [ 'true', 'false' ]) { fail("nrpe installplugins parameter must be true or false") } if $installplugins == 'true' { notice( "I work, hurrah&qu

Re: [Puppet Users] Melbourne puppet catch up?

2011-04-05 Thread Ben Hughes
On Wed, Apr 06, 2011 at 03:39:28PM +1000, Denmat wrote: > Open invitation to those that can attend. Those that can't, maybe another > time? Sounds grand. Is there a Melbourne devops meet up this month too? I hear the last one went pretty well. -- Ben Hughes || http://www.pup

Re: [Puppet Users] erb including other erbs

2011-04-06 Thread Ben Hughes
modules, you can just specify the module name and it will use the template named in there. content => template( 'mymodule/mytemplate.erb' ) >From mymodule/templates/mytemplate.erb -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribe

Re: [Puppet Users] Blank lines in conditional templates

2011-04-06 Thread Ben Hughes
all the lines to fit in 80 columns, so I can't tell where all the breaks should be, so can't test it. Could you pastie or similar it? -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

Re: [Puppet Users] ssh_authorized_key type not working

2011-04-07 Thread Ben Hughes
WQ==", name => "macbook pro key", type => "ssh-rsa", user =>"corey", } -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are sub

Re: [Puppet Users] Re: ssh_authorized_key type not working

2011-04-10 Thread Ben Hughes
On Fri, Apr 08, 2011 at 09:50:12AM -0700, Corey Osman wrote: > What do you mean change encryption to type? Do you mean change type > => "ssh-rsa" to encryption=> "ssh-rsa"? Yeah, encryption isn't a valid keyword. You need "type => '...'

Re: [Puppet Users] Templating question

2011-04-12 Thread Ben Hughes
uire 'pp' ; pp @__scope__ %> And even then, there's no safe, sane or simple way of getting it out. You're best off just having two different templates I'm afraid and less magic. -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you ar

Re: [Puppet Users] Re: run stages in puppet 2.6

2011-04-12 Thread Ben Hughes
On Tue, Apr 12, 2011 at 06:57:42PM -0400, Tim Dunphy wrote: > Here's what I've come up with so far: > > stage { > "repo": before => Stage["main"] >} Have you tried using the other syntax: stage{ [repo]: } Stage[repo] -&g

Re: [Puppet Users] Templating question

2011-04-12 Thread Ben Hughes
te. It's > incredibly stupid, but it works. That is neater than trying to pick your way through the objects. Really. -- Ben Hughes || http://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

Re: [Puppet Users] Logging configuration

2011-04-18 Thread Ben Hughes
daemon's logging. It logs at syslogfacility daemon by default. Set syslogfacility to a different level in your puppet.conf and adjust your syslog accordingly. Or you may use --logdest /path/to/file on the command line if you wish. -- Ben Hughes || http://www.puppetlabs.com/ -- You receive

Re: [Puppet Users] is there a definition of the abstract service type

2011-04-19 Thread Ben Hughes
ut for that. Resource isn't, say, a system profiling tool. It's more an interface to resources you have. And while some will give you all the information you may want ('user' for example), not all of them can. -- Ben Hughes || http://www.puppetlabs.com/ -- You received th

Re: [Puppet Users] Handling unmanaged resources and their files/configs

2011-04-19 Thread Ben Hughes
On Tue, Apr 19, 2011 at 11:38:35AM -0700, Forrie wrote: > Is there a simple way to remove the unmanaged data so we can keep > the systems clean. Setting the resource to ensure => absent will remove them. Or are you after something more? -- Ben Hughes || http://www.puppetlabs.com/

Re: [Puppet Users] Re: is there a definition of the abstract service type

2011-04-20 Thread Ben Hughes
her than > silently not returning it, as I've no way of knowing that there's a > constraint on the o/s / distro vs a bug in puppet. I think this may, to a degree, be a case of not being able to know the unknown. Certainly resource can improve in some areas though. If it is a bug

Re: [Puppet Users] is it possible to take definition parameters from a database?

2011-04-20 Thread Ben Hughes
back end. http://www.devco.net/archives/2009/08/31/complex_data_and_puppet.php -- Ben Hughes || http://www.puppetlabs.com/ -- 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.

[Puppet Users] my badly broken fact

2009-02-04 Thread Ben Hughes
disks.uniq.join(',') end end However, from the command line with facter, it works: [r...@foo-vm:~]# FACTERLIB=/var/lib/puppet/lib/facter/ facter localdisks sda So I'm a little confused. What have I done painfully wrong? ): -- Ben Hughes - MindCandy -- Mind Candy Ltd, Reg