Re: [Puppet Users] Java dependency error in puppet installation

2012-06-08 Thread Scott
Jeeva gmail.com> writes: > > Hi, > > I was trying to instal puppet-enterprise-2.5.1-el-5-x86_64 in centos6 > machine. But got below error. > > ## Installing packages from files... > error: Failed dependencies: > java >= 1.5.0 is needed by pe- > tanukiwrapper-3.5.9-5.pe.el5.x86_64 >

[Puppet Users] Best practices for confidential information -- fileserver path vs modules / template

2011-07-26 Thread scott
work too (while the above is an over simplified example, nearly everything we have this problem with is better done as a template anyways), but again some of the variables would have to be hidden/confidential. -Scott -- You received this message because you are subscribed to the Goog

[Puppet Users] Re: Best practices for confidential information -- fileserver path vs modules / template

2011-07-26 Thread scott
On Jul 26, 3:43 pm, Nigel Kersten wrote: > On Tue, Jul 26, 2011 at 12:26 PM, scott wrote: > > > We had sort of solved this problem with a custom fileserver mount > > point and a subrepo in our mercurial repo, but this only worked when > > referring to cont

[Puppet Users] Puppet & Hudson CI

2010-12-29 Thread Scott
All, I'm looking for additional information regarding Puppet and Hudson. Specifically, I am looking to automatically push successful environment builds (say for Dev, QA, Production environments) from Hudson to Puppet. Thus, when a puppet configuration is checked into Hudson and the build succeeds

[Puppet Users] Re: Puppet & Hudson CI

2010-12-29 Thread Scott
Thanks, Nigel. That actually gives me a few more ideas re: PXE booting against specific bootstrap images. I'll keep that in mind! On Dec 29, 12:04 pm, Nigel Kersten wrote: > On Wed, Dec 29, 2010 at 7:28 AM, Scott wrote: > > All, > > > I'm looking for additional

[Puppet Users] Re: Puppet & Hudson CI

2010-12-29 Thread Scott
grateful as it would make reverting to an earlier version much easier. Thanks again. On Dec 29, 7:13 pm, Stefan Schlesinger wrote: > Hey Scott, > > I wrote a puppet-sync tool which syncs a git branch from Git to puppet > masters.http://sts.ono.at/blog/2010/12/22/synchronize-pup

[Puppet Users] Custom fact errors

2009-07-27 Thread scott
I'm a newbie attempting to get a custom fact distributed to clients. I've followed the instructions at http://reductivelabs.com/trac/puppet/wiki/AddingFacts and based my first fact on a simple recipe. I'm having at least one problem and possibly more. 1) Puppet/facter fails to load the custom

[Puppet Users] Re: Custom fact errors

2009-07-27 Thread scott
me like it's complaining about the first line, so I tried all manner of /usr/bin/ruby, /usr/bin/env ruby, simply commenting with the name as in the example, etc). At any rate, thanks again! -Scott --~--~-~--~~~---~--~~ You received this message because you are

[Puppet Users] Re: Custom fact errors

2009-07-28 Thread scott
On Jul 28, 5:22 am, Paul Nasrat wrote: > Can you file a Facter issue to improve the error reporting on this and > I'll try fix that up (and the documentation). > > Paul Done, it's filed as Facter issue 2455 (http:// projects.reductivelabs.com/issues/2455). Thanks! --~--~-~--~~

[Puppet Users] Definitions and uniqueness

2009-10-07 Thread Scott
oing to have to explicitly call the definition for each and every file I want to create and pass a unique "name" parameter that's effectively useless. I'm confused why definition "name" parameters have to be unique when the resources they're crea

[Puppet Users] Thread safety/interleaving problem with 0.25 + passenger 2.2.5?

2009-10-07 Thread scott
efer not to run mongrel if I can avoid it. Is this a known problem? Did I overlook a setting somewhere? The standalone server with webrick displays no such issue. -Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: Thread safety/interleaving problem with 0.25 + passenger 2.2.5?

2009-10-07 Thread scott
rely affects performance. Should the Wiki page at http://reductivelabs.com/trac/puppet/wiki/UsingPassenger be changed, or does someone know something we don't? It does appear that some installations of 2.2.5 are working, is everyone using always_restart, or is this a 2.2.5+0.25 spec

[Puppet Users] Same exec but different working directories

2009-10-08 Thread Scott
So I ran into a situation where I'd like to execute the same command (make) but in 2 different working directories, anyone know how I can do that without adding superfluous options to the exec to make it unique? Cheers, Scott --~--~-~--~~~---~--~~ You rec

[Puppet Users] Re: Same exec but different working directories

2009-10-08 Thread Scott
Nigel, thanks! I tried something similar more than a year ago that didn't work so it didn't occur to me to try that. Scott On Oct 8, 5:52 pm, Nigel Kersten wrote: > On Thu, Oct 8, 2009 at 2:36 PM, Scott wrote: > > > So I ran into a situation where I'd like

[Puppet Users] Multiple environments

2009-11-11 Thread Scott
g/manifests/site.pp modulepath=/etc/puppet-testing/modules [production] manifest=/etc/puppet/manifests/site.pp modulepath=/etc/puppet/modules Cheers, Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Scott
Is anyone using multiple environments? Can someone at least tell me what they did to get it working? Thanks, Scott On Nov 12, 6:53 am, Scott wrote: > So I'm trying to get multiple environments to work with puppet 0.25.1 > on ubuntu 8.04 and no matter what I do, puppet just complet

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Scott
puppetmasterd] and just "modulepath" and "manifest" entries? Or anything else I might have missed? Scott On Nov 13, 2:22 am, Pete Emerson wrote: > Scott, > > Multiple environments is working for me under puppet 0.25.1. > > I'm not sure what's wrong

[Puppet Users] Nagios object inheritance

2009-11-13 Thread Scott
but you can't set just a "name" variable. For reference, this is what I'm talking about: http://nagios.sourceforge.net/docs/3_0/objectinheritance.html Any way this can be added to puppet? It's really a show-stopper since inheritance is key to having a more easily managed

[Puppet Users] Why no hostgroups parameter for nagios_host types?

2008-11-14 Thread Scott
hostgroup members manually, that would be fantastic. There's a servicegroups parameter for services, how has hostgroups been left out of nagios_hosts for so long? Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: puppetshow with puppetmaster 0.24.6

2009-01-16 Thread Scott
I had the exact same problem (the exceptions in pagination and search) and gave up because it's not being developed at all and probably works on much older versions of puppet. Scott On Jan 15, 2:49 am, jrojas wrote: > Sorry if I am re-hashing this but this error is bugging the piss out

[Puppet Users] Making a variable visible in parent class (scoping)

2009-01-16 Thread Scott
n array in a parent class, is there a way to get the string version of an array with all the elements concatenated together with a "," in between each element? Either that or is there a way I can get the "hostgroups" parameter in the "nagios_host" type to accept a

[Puppet Users] Re: Making a variable visible in parent class (scoping)

2009-01-21 Thread Scott
Luke, thanks for the reply. So just to clarify, you can't even have a child class append to an array declared in the parent class and have it visible in the parent class? Scott On Jan 19, 9:44 pm, Luke Kanies wrote: > On Jan 17, 2009, at 12:31 AM, Scott wrote: > > > &g

[Puppet Users] Nagios_host files are mode 600, need 644

2009-01-21 Thread Scott
g the "file" type to make sure that all the files in a dir are mode 644? Thanks. Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to pupp

[Puppet Users] Re: Nagios_host files are mode 600, need 644

2009-01-22 Thread Scott
error when I tried to use the "title" of the exec instead of the command. I haven't tired using the exec command itself in the "before" parameter because it has switches, i.e. "chmod 644 /etc/nagios3/hosts/*", and I thought it would cause problems with spaces and it

[Puppet Users] Re: Nagios_host files are mode 600, need 644

2009-01-29 Thread Scott
de 600? I don't know about other distros but in Ubuntu, it automatically breaks nagios since nagios is run as the user nagios and can't read the files. Cheers, Scott On Jan 23, 7:15 am, Luke Kanies wrote: > On Jan 22, 2009, at 4:55 PM, Scott wrote: > > > The issue is that

[Puppet Users] Re: Nagios_host files are mode 600, need 644

2009-01-30 Thread Scott
Ok, so to make things simpler, how do I change owner and mode of nagios_host, etc. files when they're created? Thanks, Scott On Jan 29, 2:01 pm, Scott wrote: > The situation is a little more complicated than just trying to do a > "recurse" on the directory to set the permi

[Puppet Users] Setting ownership or mode of files created by nagios types

2009-01-30 Thread Scott
n the files are written instead of after. Cheers, Scott --~--~-~--~~~---~--~~ 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

[Puppet Users] Re: Are version 0.24.1 and 0.24.4 good enough?

2009-02-10 Thread Scott
Instead of trying to set up a repository manually, check out "reprepro". It makes managing a deb repository much simpler. Scott On Feb 9, 2:13 pm, Kyle Cordes wrote: > On Feb 8, 10:19 am, Mike Renfro wrote: > > > I found I needed a custom repository for local pa

[Puppet Users] Re: Setting ownership or mode of files created by nagios types

2009-02-10 Thread Scott
I'd really appreciate some help with this, I've tried to find the answer in the source code but I haven't had much luck finding an answer. Is there really no one that uses the built in nagios resources? Scott On Jan 31, 8:09 am, Scott wrote: > So I don't know what happe

[Puppet Users] Requiring a definition

2009-03-03 Thread Scott
he definition runs, I've tried requiring the actual definition using various forms, and I've tried using an alias but I keep getting various errors. Also, I'm curious how come there's no aptrepo type included in puppet when there's a yumrepo type? Cheers, Scott --~--~-~

[Puppet Users] Re: visualizations

2009-03-07 Thread Scott
er people have posted about it on this list, but I don't think anyone has tracked down the errors yet. Scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, se

[Puppet Users] Re: Nagios resources create files unreadable by Nagios

2009-04-13 Thread Scott
after any nagios files are created. It's really much more difficult than it should be. Scott On Apr 2, 1:57 pm, Rolfs wrote: > Graham Stratton wrote: > > I'm using Puppet 0.24.7 with exported resources to configure Nagios 3 > > on Debian Lenny. The problem is that when Pup

[Puppet Users] Allowing unauthenticated client access to puppetca.getcert

2009-04-14 Thread Scott
all the servers are able to use puppet with no problems. We've been running 0.24.7 on ubuntu 8.04 for a while now and the message only started showing up on April, 10th. I tried upgrading to 0.24.8 but we're still getting the errors. Anyone have any ideas what mi

[Puppet Users] Re: Nagios resources create files unreadable by Nagios

2009-04-14 Thread Scott
James, thanks for the suggestion: http://projects.reductivelabs.com/issues/2158 Cheers, Scott On Apr 14, 5:16 am, James Turnbull wrote: > Have you logged a bug for this then? > > Regards > > James Turnbull > > On 13/04/2009, at 10:38 PM, Scott wrote: > > > >

[Puppet Users] Re: Allowing unauthenticated client access to puppetca.getcert

2009-04-14 Thread Scott
7;ve filed a bug for this: http://projects.reductivelabs.com/issues/2159 Cheers, Scott On Apr 14, 11:55 pm, Scott wrote: > So a few days ago, I started seeing large numbers of the following > error in the logs of our puppetmaster (large meaning 5 every second): > > Apr 14 14:49

[Puppet Users] ssh_authorized_key completely ignoring "require"

2009-04-21 Thread Scott
o create the key before doing any of the prerequisites. One other note, the ssh_authorized_key isn't always for the same person, so it's not a particular key that's causing the problem. Also, this was never a problem with 0.24.7. Cheers, Scott --~--~-~--~~

[Puppet Users] Re: using yum and puppet simultaneously

2009-05-09 Thread Scott
to update packages. https://fedorahosted.org/func/ -- Scott On May 9, 6:04 pm, Nat wrote: > Hi, > > once i have my puppet set up and installed how does updating occour, > if for example i have a package httpd instaledd on all my servers and > there is an update to this package wi

[Puppet Users] Puppet Master VMs

2012-03-01 Thread Scott Merrill
Is anyone running their Puppet Master server(s) as virtual guests? If so, how big are those VMs in terms of memory and virtual CPUs, and how many Puppet clients are they serving? Thanks! Scott -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] Different versions for server and agents

2012-03-12 Thread vagn scott
On 03/12/2012 10:16 AM, Peter Bukowinski wrote: Your master's version should always be equal to or greater than the latest client version you're using. You can count on a newer master working with older clients, but don't count on newer clients working with older masters. So, no problems

Re: [Puppet Users] Puppet Master server migration and problem? 2.6 to 2.7

2012-03-12 Thread vagn scott
On 03/12/2012 08:22 PM, MF wrote: Hello, I am setting up a new master server and migrating my configuration from my current master server. I am also upgrading from 2.6 to 2.7. I have the new server built and integrated with Apache, Passenger, and Dashboard just like on my current server. I mov

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

2012-03-19 Thread Scott Merrill
We'd like to control, among other files, /etc/sysctl.conf with Puppet. We have a baseline for this file on all our servers, but frequently some of our applications require additional tweaks. These tweaks are generally more than a single line. I know that we could create a class in our module repos

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

2012-03-20 Thread Scott Merrill
Dashboard. Much better to keep all configurations in manifests under version control, and use Dashboard to associate configurations to nodes. Cheers, Scott On Tue, Mar 20, 2012 at 4:37 AM, Luke Bigum wrote: > I can't help with your Dashboard problems, but can suggest an alternative to >

[Puppet Users] high-level module organization

2012-03-20 Thread Scott Merrill
cludes miscellaneous services to start or stop when there's no attendant config file to require; as well as packages to ensure are installed or absent. What unexpected headaches -- if any -- resulted from your organizational choice? Thanks! Scott -- You received this message because you are

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-02 Thread Scott Merrill
those questions are so frequently asked, why isn't the documentation updated to account for them in the first place? See also Rich Bowen's "Write a better FM" book: http://betterfm.org/ Cheers, Scott -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-03 Thread Scott Merrill
er-of-fact "here's what you need." Because there are multiple ways to use Puppet to resolve the problems of configuration management, there seems to me to be a gulf between what's documented and what people are using in production. Stated another way, there's a gap between the "

[Puppet Users] Puppet and FreeBSD

2012-04-23 Thread Jamie Scott
Hello all, Wondering if any of you could help me. We've been using puppet on our CentOS servers for a while now with no problems at all, very much out of the box but we do have some MySQL servers running FreeBSD (for the slightly better memory utilisation). I've taken up the challenge to

Re: [Puppet Users] Puppet and FreeBSD

2012-04-23 Thread Jamie Scott
dkw, that worked! Now I only need to use: package { 'mytop': ensure => installed } I can't tell you how happy I am! Thank you!!! Jamie On Monday, 23 April 2012 14:54:03 UTC+1, dkw wrote: > > Howdy: > > On Mon, Apr 23, 2012 at 06:29:38AM -0700, Ja

Re: [Puppet Users] Puppet and FreeBSD

2012-04-23 Thread Jamie Scott
>How have you been handling the differences between centos/rhel and >fbsd? If statements? I am going the other way where I have manifests >written mostly for fbsd and now will add rhel/debian specific stuff. A lot of it is hack and slash with modules for the net, we've been adding in the opera

Re: [Puppet Users] Puppet and FreeBSD

2012-04-24 Thread Jamie Scott
Have you had any luck with puppeting mysql51-server or mysql55-server ? Everything I've read suggests the $operatingsystem won't work for name on packages and the application tries to keep installing as posted here: https://groups.google.com/forum/?fromgroups#!topic/puppet-users/Yc1Et5dSAHM Co

[Puppet Users] distributing updates to multiple puppet masters (Subversion)

2012-05-02 Thread Scott Merrill
could use a post-commit hook to rsync the updates out from the repo to each Puppet Master. What are you doing? What works well, and what headaches have you experienced? Thanks, Scott -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] Passenger on redhat 6

2012-05-24 Thread Scott Merrill
also share the documentation I've prepared for my teammates for rebuilding Puppet and associated SRPMs. Cheers, Scott On May 24, 2012, at 3:58 AM, David Schmitt wrote: > Hi, > > > does anyone have a mod_passenger for RHEL6 from a trusted source, where I > *don't* have to comp

[Puppet Users] Announce: Razor technical webinar - Tue May 29 11am PT

2012-05-25 Thread Scott Johnston
We'll be holding a technical webinar for the recently announced Razor provisioning tool next Tue May 29 11am PT. Nan Liu from Puppet Labs and Nick Weaver from EMC, the Razor technical leads, will be there to discuss its capabilities and field your questions. You can sign-up to get the webinar log

Re: [Puppet Users] Is it possible to set up multi-level puppet nodes?

2012-05-26 Thread Scott Merrill
I'm setting up this kind of configuration now. Yes, it can be done. Use a DNS alias (or hardware load balancer) for your second level Puppet Masters. I'm also using a DNS CNAME for my top-level Puppet Master, so that I can (later) consider some fault tolerance here. My top-level Master is my glob

Re: [Puppet Users] Thoughts on job listings?

2012-05-30 Thread Scott Merrill
On Wed, May 30, 2012 at 4:49 PM, Michael Stahnke wrote: > How do folks feel about getting Puppet job listings on this list? > I've rejected a few that we quite spammy, but when the subject matter > really is a system admin with puppet experience, the decision becomes > a bit different. > > I'm loo

Re: [Puppet Users] Re: Dealing with multiple gid changes

2012-06-08 Thread vagn scott
On 06/08/2012 09:06 AM, jcbollinger wrote: On Jun 7, 8:29 am, Jistan Idiot wrote: So I discovered yesterday that if puppet changes the gid of a group it doesn't go through the file system and update them with the new correct gid (at least this was the case on RHEL5 and client puppet v2.6.1

[Puppet Users] "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-12 Thread Scott Merrill
re the solution is something simple, and I'm just not seeing it. I'd appreciate a nudge in the right direction. Thanks, Scott -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-use

Re: [Puppet Users] puppet-dashboard missing CSS/JS references in Apache

2012-06-12 Thread Scott Merrill
On Tue, Jun 12, 2012 at 4:02 PM, Michael Altfield wrote: > I finally got puppet-dashboard installed and working under Apache > (v2.2.15) on my CentOS 6 Puppet Master. It looks fine when running under > WEBrick, but when I run it under apache, it looks terrible (read: the HTML > source is different

Re: [Puppet Users] "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-13 Thread Scott Merrill
On Wed, Jun 13, 2012 at 7:26 AM, Felix Frank wrote: > On 06/12/2012 08:53 PM, Scott Merrill wrote: >> I built a test client, and from the top-level Puppet Master I ran >> `puppet cert generate test.domain`.  I installed the generated files >> onto the test machine. However

Re: [Puppet Users] Re: "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-14 Thread Scott Merrill
On Thu, Jun 14, 2012 at 9:44 AM, jcbollinger wrote: > On Tuesday, June 12, 2012 1:53:55 PM UTC-5, Scott Merrill wrote: >> Could not prepare for execution: The certificate retrieved from the >> master  does not match the agent's private key. >> Certificate fingerprint:

Re: [Puppet Users] Re: "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-14 Thread Scott Merrill
On Thu, Jun 14, 2012 at 12:50 PM, Nan Liu wrote: > On Thu, Jun 14, 2012 at 9:27 AM, Scott Merrill wrote: >> If I point that node to my top-level Master (via entry in /etc/hosts), >> the `puppet agent --test --noop` invocation works without error. > > You want to make sure t

Re: [Puppet Users] Re: "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-14 Thread Scott Merrill
On Thu, Jun 14, 2012 at 1:34 PM, Nan Liu wrote: > On Thu, Jun 14, 2012 at 10:12 AM, Scott Merrill wrote: >> On Thu, Jun 14, 2012 at 12:50 PM, Nan Liu wrote: >>> On Thu, Jun 14, 2012 at 9:27 AM, Scott Merrill wrote: >>>> If I point that node to my top-level M

Re: [Puppet Users] Re: "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-14 Thread Scott Merrill
Load - I am using a hardware load balancer to spread the load across four servers (two each in two different data centers). I am using Passenger for my top-level and subordinate Puppet Masters. The proper configuration of the /etc/httpd/conf.d/puppet.conf file for subordinate master SSL config

Re: [Puppet Users] Re: "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-14 Thread Scott Merrill
file is identical to the subordinate master's /var/lib/puppet/ssl/certs/ca.pem file. Thanks, Scott -- 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 f

Re: [Puppet Users] Re: "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-14 Thread Scott Merrill
ed the same success there. The client node with which I've been testing can now successfully connect to the subordinate master without error. Thank you very, very much for working through this with me. Cheers, Scott -- You received this message because you are subscribed to the Google Groups &

[Puppet Users] Announce: Beta release of integration with Google Compute Engine

2012-06-29 Thread Scott Johnston
Yesterday Puppet Labs made available a Beta release of its integration with Google Compute Engine (GCE), Google's new Infrastructure-as-a-Service cloud. Compatible with both Puppet Enterprise and Puppet open source, the release and documentation are freely downloadable from Puppet Forge: http://fo

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-17 Thread vagn scott
On 06/17/2011 09:14 AM, lucas.brig...@ymail.com wrote: Hi! I'm doing a module for the "puppet" for WordPress will implement. I'm having problems with this line: exec { "tar -vzxf ${downdir}wordpress.tar.gz": path => ["/usr/local/bin","/opt/local/bin","/usr/bin","/us

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-18 Thread vagn scott
On 06/18/2011 10:31 AM, Markus Falb wrote: On 18.6.2011 05:30, vagn scott wrote: or you can do what I do and pipe that archive into tar: exec { "true $title&& wget -O - $upstream | tar xzf - --xform 's,wordpress/,,'":

Re: [Puppet Users] installing puppet client

2011-06-21 Thread vagn scott
Have you looked at clusterssh? -- vagn On 06/21/2011 12:01 PM, Andreas Kuntzagk wrote: CHEBRIAN wrote: Hi, how to install puppet client thru puppet master . My requirement is to install puppet client nearly 400 client servers. its difficult to install puppet client in all the servers by ap

Re: [Puppet Users] Re: How to define a hash table and loop over them in a definition?

2011-06-29 Thread vagn scott
On 06/29/2011 09:56 PM, treydock wrote: <% apparray.each do |key,value| -%> Key:<%= key %> Path:<%= value['path'] %> Command:<%= value['command'] %> <% end -%> inline_template() can be used as a here document. that plus a puppet shebang line makes testing and presenting examples really easy.

[Puppet Users] making puppetd immortal

2011-06-29 Thread vagn scott
In my reading I just ran across this: [Puppet - Bug #7273] Modifying puppet.conf causes 'reparsing config' and TERM signal results in shutdown of daemon short version: puppet agent can commit suicide, but it can't raise itself from the dead. However, init is immortal, and so

Re: [Puppet Users] making puppetd immortal

2011-06-29 Thread Scott Smith
Well, changing a runlevel just to stop a daemon is a bit heavy handed. There are other tools that perform this in a more flexible manner: Runit, Daemontools, Monit, Supervisord, etc. -scott On Wed, Jun 29, 2011 at 10:33 PM, vagn scott wrote: > In my reading I just ran across t

Re: [Puppet Users] Puppet 2.7.1, variable scoping, best practices

2011-06-30 Thread vagn scott
I'm doing something similar with class inheritance, rather than node inheritance. In http://docs.puppetlabs.com/guides/scope_and_puppet.html it says: In effect, all variables will be either strictly local or strictly global. The one exception will be derived classes, which will

Re: [Puppet Users] require => Class

2011-06-30 Thread vagn scott
you also have to have a include foo1 somewhere. Note that your require is a dependency, not an instantiation. require just says that foo1 has to be installed first, before libreoffice package can be installed. -- vagn class libreoffice { case $hostname { "foo": {

Re: [Puppet Users] Re: How to define a hash table and loop over them in a definition?

2011-07-01 Thread vagn scott
Maybe you've got network issues? 1 minute sounds like two DNS lookups timing out. -- vagn On 06/30/2011 01:42 PM, Haitao Jiang wrote: Thanks a lot for both answers! Very helpful. However, I was a little surprised that how slow Puppet was when I run your example. Was it Puppet just slow or was

Re: [Puppet Users] functions and environments

2011-07-01 Thread vagn scott
On 06/17/2011 10:52 AM, Nigel Kersten wrote: It's not entirely unreasonable to expect that if module 'foo' is found in one modulepath component, that no other module named 'foo' should come into play, but I think we have some edge cases here. Please feel free to file a feature request around mo

Re: [Puppet Users] Re: Puppet 2.7.1, variable scoping, best practices

2011-07-01 Thread vagn scott
On 07/01/2011 10:01 AM, jcbollinger wrote: Parameterized classes address problem (1) by formalizing class parameterization, and they address problem (2) by making it illegal to include a parameterized class more than once (even with the same parameters). One of my main objections to parameteriz

Re: [Puppet Users] Override resource in nested class structure

2011-07-01 Thread vagn scott
Here's one way. It's ugly, but it works. -- vagn #! /usr/bin/puppet apply # Hello everybody # # I have a set of nested classes and the deepest class looks after a # file resource. I want all my nodes to be of the parent class type # except one of them needs a special copy of the same file re

Re: [Puppet Users] sysv init scripts when using gem to install

2011-07-01 Thread vagn scott
does /var/run/puppet exist? -v On 06/21/2011 12:30 PM, Craig White wrote: I am using ruby-enterprise for ruby packages and gem for puppet/facter installation and I 'borrowed' the ubuntu sysv init scripts and they mostly work but for some reason, it won't stop the service as written but it

Re: [Puppet Users] Re: Different users within same exec

2011-07-02 Thread vagn scott
On 06/26/2011 02:01 PM, ssk1287 wrote: Consider the following scenario. a folder FOLDER 1 which is owned by the root as it should be accessible to all users of the system. That's your mistake, right there. If you want a folder accessible to all users then make it group writable for some gr

Re: [Puppet Users] Re: err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"

2011-07-02 Thread vagn scott
On 07/02/2011 03:20 PM, Eric Sorenson wrote: This is usually because somewhere you have a File resource whose name is a variable, and the variable's undefined. And a common reason for that to happen is that you've mistyped the variable name. Your design could be just fine. This is a good reaso

Re: [Puppet Users] Re: err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"

2011-07-04 Thread vagn scott
On 07/04/2011 02:49 PM, Michael Halligan wrote: Forgive my cluelessness, but why is it so difficult for Puppet to at least tell me what file this came from OK, I'll take a crack at an answer. --- typical compiler versus parser problem. If the parser saw this, it could stop immedi

[Puppet Users] proposed syntax: order { }

2011-07-04 Thread vagn scott
Sometimes things just have to happen in sequence. It is the simplest of relations, but puppet really has no convenient, non-fiddly way to express it. So, how about class x { order { "z": file { "a": ... } exec {

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

2011-07-04 Thread Scott Smith
I take it you're not familiar with the `requires' parameter. On Mon, Jul 4, 2011 at 8:40 PM, vagn scott wrote: > Sometimes things just have to happen in sequence. > It is the simplest of relations, but puppet really > has no convenient, non-fiddly way to express it. > So,

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

2011-07-04 Thread vagn scott
On 07/04/2011 11:42 PM, Scott Smith wrote: I take it you're not familiar with the `requires' parameter. I'm familiar with requires subscribe notifies -> <- before which are great for specifying relations between non-adjacent things. But they ar

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

2011-07-04 Thread Scott Smith
Ignoring the fact that "noise" is very subjective... it doesn't. In Puppet, position in a file has no bearing on order. It's not an imperative language. On Mon, Jul 4, 2011 at 8:46 PM, vagn scott wrote: > On 07/04/2011 11:42 PM, Scott Smith wrote: > >> I take

Re: [Puppet Users] Re: err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"

2011-07-04 Thread Scott Smith
Why would you pass the output from inline_template as the title of a resource? On Mon, Jul 4, 2011 at 8:03 PM, vagn scott wrote: > >$foo = inline_template( ... ) >$baz = inline_template( ... ) >File[ "$foo$baz" ] > > > > -- > va

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

2011-07-04 Thread vagn scott
On 07/04/2011 11:51 PM, Scott Smith wrote: Ignoring the fact that "noise" is very subjective... it doesn't. In Puppet, position in a file has no bearing on order. It's not an imperative language. I understand. What I am saying is that another way to express thi

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

2011-07-04 Thread vagn scott
On 07/04/2011 11:56 PM, vagn scott wrote: On 07/04/2011 11:51 PM, Scott Smith wrote: Ignoring the fact that "noise" is very subjective... it doesn't. In Puppet, position in a file has no bearing on order. It's not an imperative language. Oops, that should be

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

2011-07-04 Thread vagn scott
Is the client healthy? File system not full? No errors in log files, like a disk might be failing? Load average reasonable? Any network changes? Do you have a switch plugged into itself? what does tcpdump show? Normal activity? -- vagn On 07/05/2011 12:11 AM, sanjiv.singh wrote: some times pu

Re: [Puppet Users] Re: err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"

2011-07-04 Thread vagn scott
Because the name depends on other parameters in a non-trivial way. But that's neither here nor there. remeber the context: We were talking about parser v compiler error reporting. -- vagn On 07/04/2011 11:53 PM, Scott Smith wrote: Why would you pass the output from inline_template as the

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

2011-07-04 Thread vagn scott
Thinking about this some more, I like block better, with order optional: class c { block { "x":# any order package { ... } file { "aaa": } exec { "bbb": } file { "ccc": } include foo } blo

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

2011-07-04 Thread Scott Smith
Whatever problem you are trying to solve is most likely best handled outside of Puppet. On Mon, Jul 4, 2011 at 9:59 PM, vagn scott wrote: > Thinking about this some more, I like block better, > with order optional: > > class c { > >block { "x":# any or

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

2011-07-04 Thread vagn scott
On 07/05/2011 01:08 AM, Scott Smith wrote: Whatever problem you are trying to solve is most likely best handled outside of Puppet. The problem I'm trying to solve is one of expressiveness in the language. I'm not adding any functionality that is not already in puppet. I'm

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

2011-07-05 Thread vagn scott
On 07/05/2011 01:57 AM, Peter Meier wrote: Can also be: Yes, I know. Now expand this one, and maybe you will get my point. - Thinking about this some more, I like block better, with order optional: class c { block { "x":# any order package {

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

2011-07-05 Thread vagn scott
On 07/05/2011 04:35 AM, Ken Barber wrote: Whats wrong with using chained resources? It doesn't scale. Try expanding this (it is a slightly improved proposal with block{} instead of order{}): class c { block { "x":# any order package { ... } file

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

2011-07-05 Thread vagn scott
On 07/05/2011 05:35 AM, Luke Bigum wrote: avoiding the use of a class for ... conceptual reasons. Exactly right. Thank you for that phrase. -v -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-u

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

2011-07-05 Thread vagn scott
On 07/05/2011 05:51 AM, Ken Barber wrote: Then you can also use these anonymous blocks/closures with defaults as well: class c { { Service { hasstatus => true } service { "a": } }-> Yes, they should have their own scope, and pretty normal puppet semantics/conventions. Mayb

Re: [Puppet Users] puppet terminating - continually forcing itself to stop

2011-07-05 Thread vagn scott
On 07/05/2011 07:15 AM, Chris Phillips wrote: > debug: Service[puppet](provider=redhat): Executing '/sbin/service puppet > stop' > notice: Caught TERM; calling stop > [root@gibsvlin-erp2dst ~]# /etc/init.d/puppet status > puppetd is stopped That's just weird looking. So puppet is running, and t

Re: [Puppet Users] puppet terminating - continually forcing itself to stop

2011-07-05 Thread vagn scott
On 07/05/2011 09:24 AM, Martin Alfke wrote: On 07/05/2011 03:19 PM, Brian Gallew wrote: > I was seeing the behavior on my Solaris boxes when running Puppet under > SMF. The issue, in my case, was that I was trying to work around an SMF > bug. My "workaround" was to "svcadm disable puppe

Re: [Puppet Users] Apache module for RHEL6

2011-07-05 Thread vagn scott
On 07/05/2011 04:31 AM, Vorik wrote: err: Could not run Puppet configuration client: Could not find dependency File[/usr/local/sbin/a2ensite] for Exec[enable vhost www.dus123camptocamp.nl] at/etc/puppet/modules/apache/manifests/ definitions/vhost.pp:251 Make sure the package is installed be

  1   2   3   4   5   >