Re: [Puppet Users] Reopening sqlite3 db

2011-11-16 Thread Ohad Levy
On Tue, Nov 15, 2011 at 7:16 PM, Klaus Ethgen klaus+use...@ethgen.de wrote: Hello, I am not sure if I trigger a bug and if so it could also be in ruby sqlite3 backend. However, maybe I do something totally wrong. I have the following part in puppet.conf:   [master]      storeconfigs = true

Re: [Puppet Users] yumrepo absent not working on 2.6.12

2011-11-16 Thread Arnau Bria
Ok, thnaks a lot. Cheers, Arnau -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-16 Thread Daniel Maher
On 11/16/2011 12:39 AM, Iain Sutton wrote: +1 for tangled strings On 16 November 2011 04:03, Ken Barber k...@puppetlabs.com mailto:k...@puppetlabs.com wrote: Depends on why you want this info ... but its available in the catalog on the box for 'grepping' (more or less). Something

[Puppet Users] What is the offical variable scope best practice?

2011-11-16 Thread flex
I read the guide at http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include node definitions and facts. 2. in puppet class, using variables not local, must specify the

Re: [Puppet Users] Rounding in variable expressions

2011-11-16 Thread Tom Hall
Alternatively the cheap and hacky approach: $foo = inline_template(%= (processorcount.to_i * 0.8).floor -%) That looks direct and sexy to me. -- 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] Reopening sqlite3 db

2011-11-16 Thread Ohad Levy
On Wed, Nov 16, 2011 at 12:41 PM, Klaus Ethgen klaus+use...@ethgen.de wrote: Ohad Levy ohadl...@gmail.com schrieb: I encountered this bug with many versions on different linux distributions. For example:   Ubuntu 10.04   Puppet 2.7.6   libsqlite3-ruby1.8 1.2.4-2.1 Do anybody has an idea

[Puppet Users] Re: Adding users by using 'spaceship' syntax

2011-11-16 Thread Justin Spies
RADIUS is something I haven't used for a long time (and my last use was AAA for DSL subscribers, not for Linux), but that is a possibility. The only issue I'll have there is that I am working with internal machines that live in a private 'cloud' network @ the office and a set of private, and

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

2011-11-16 Thread jcbollinger
On Nov 15, 3:42 pm, Justin Lloyd jstn...@gmail.com wrote: 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

[Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Hugo Deprez
Dear community, I would like to know if it is possible to use different files for the nodes.pp Can we use in nodes.pp the following syntax : include nodes2.pp nodes2.pp could contain host definition eactly as nodes.pp but for a particular platform. This would allow more readable configuration

[Puppet Users] Re: What is the offical variable scope best practice?

2011-11-16 Thread jcbollinger
On Nov 16, 3:59 am, flex frostyn...@gmail.com wrote: I read the guide athttp://docs.puppetlabs.com/guides/scope_and_puppet.htmlandothers' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include node definitions and facts. Top scope

Re: [Puppet Users] Re: What is the offical variable scope best practice?

2011-11-16 Thread Henrik Lindberg
On 11/16/11 3:54 PM, jcbollinger wrote: On Nov 16, 3:59 am, flexfrostyn...@gmail.com wrote: I read the guide athttp://docs.puppetlabs.com/guides/scope_and_puppet.htmlandothers' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include

[Puppet Users] Re: Virtual Define-based resources can only be realized once

2011-11-16 Thread jcbollinger
On Nov 15, 7:05 am, Stephan stephan.eckwei...@admin.ox.ac.uk wrote: Hi all, here is what I have: A module that is responsible to roll out and configure TSM (a backup tool). Basically I need a text file that mentions all directories that have to be backed up. I want to make it a virtual

[Puppet Users] working thru tutorial

2011-11-16 Thread Matthew O'Connor
Hi all, I'm working thru the tutorial (http://docs.puppetlabs.com/learning/ manifests.html) using the VM provided (http://www.puppetlabs.com/ downloads/learning/learn_puppet_centos_ovf.2011.07.15.tar.bz). When asked to write a manifest that ensures httpd is running, I wrote: service {

[Puppet Users] define-type resources default parameters not available under scope.catalog.resources

2011-11-16 Thread Theo Cabrerizo Diem
Hi All, I have a define-type resource, which gets called from multiple classes, on which I would like to read its parameters from a template. This works for parameters added to the call of the resource but not for those which have a default value on its definition. On the example below, I can

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Christopher Wood
On Tue, Nov 15, 2011 at 04:40:29PM -0800, Matthew O'Connor wrote: Hi all, I'm working thru the tutorial (http://docs.puppetlabs.com/learning/ manifests.html) using the VM provided (http://www.puppetlabs.com/ downloads/learning/learn_puppet_centos_ovf.2011.07.15.tar.bz). When asked to write

Re: [Puppet Users] Re: What is the offical variable scope best practice?

2011-11-16 Thread flex
Very thanks for your detailed explanation :) For the last question, what doubt me is only fact variables in a template which is invoked by a define will throw the warning, if the template is invoked by a class, everything is ok. On Wed, Nov 16, 2011 at 10:54 PM, jcbollinger

Re: [Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Arnau Bria
On Wed, 16 Nov 2011 15:32:41 +0100 Hugo Deprez wrote: Dear community, Hi Hugo, I would like to know if it is possible to use different files for the nodes.pp Can we use in nodes.pp the following syntax : include nodes2.pp we have several node files but use import. [...] Thank you.

[Puppet Users] Execute command on another agent

2011-11-16 Thread mathie
Hello, I have this setup but don't know how to implement it in puppet. There are 3 servers: puppetmaster, agent1, agent2 In order to setup agent1, I need to run a command on agent2 and return the data. I know file can generate() function to run a command. However, it runs on the puppetmaster

[Puppet Users] Gem provider can tell properly if correct version is installed.

2011-11-16 Thread Tom Hall
Im using puppet 2.7.6 and gem 1.5.2 debug: Puppet::Type::Package::ProviderGem: Executing '/usr/local/bin/gem list --remote nokogiri$' debug: /Stage[main]/Hadoop::Gems/Package[nokogiri]/ensure: nokogiri 1.5.0 is installed, latest is 1.5.0 ruby java x86-mingw32 x86-mswin32-60 debug:

Re: [Puppet Users] How to debug intermittent puppet catalog failure

2011-11-16 Thread Todd Zullinger
Jo Rhett wrote: Are you running the latest centos or redhat-based kernel? If so, 274.7.1 is corked. Backgrade from 274.7.1 to 274.3.1 and the problem will disappear. This is documented in https://projects.puppetlabs.com/issues/10418 And RedHat bug

Re: [Puppet Users] Multiple nodes.pp files

2011-11-16 Thread Dan White
- Arnau Bria arnaub...@pic.es wrote: On Wed, 16 Nov 2011 15:32:41 +0100 Hugo Deprez wrote: Dear community, Hi Hugo, I would like to know if it is possible to use different files for the nodes.pp Can we use in nodes.pp the following syntax : include nodes2.pp we have

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Matthew O'Connor
When I run `puppet apply --verbose --debug httpd.pp`, the last lines printed are: debug: Finishing transaction -608038528 debug: Loaded state in 0.00 seconds info: Applying configuration version '1321356508' debug: Service[httpd](provider=redhat): Executing 'ps -ef' debug:

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Russell Van Tassell
Do you have another http daemon running, by chance? If I'm reading this right, the first run seems to think it found another httpd server on PID 17243 - what's running on that process? On Wed, Nov 16, 2011 at 9:37 AM, Matthew O'Connor thegreendra...@gmail.comwrote: When I run `puppet apply

[Puppet Users] Re: Multiple nodes.pp files

2011-11-16 Thread Ramin K
I think it's fairly common to put something like this in your site.pp if you like separate node files which I prefer. import nodes/*.pp You can also use regex in your node files to further simplify though if you're doing a lot of logic here you should probably start thinking about an ENC. fe.pp

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Matthew O'Connor
I looked for that. There's not any other http daemon running. The PID that the first returns changes every time (now at 23052, 23139, etc.). The second one never returns a PID (unless there's actually an httpd running). On Wed, Nov 16, 2011 at 10:54 AM, Russell Van Tassell

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Nan Liu
On Wed, Nov 16, 2011 at 2:14 PM, Matthew O'Connor thegreendra...@gmail.com wrote: I looked for that. There's not any other http daemon running. The PID that the first returns changes every time (now at 23052, 23139, etc.). The second one never returns a PID (unless there's actually an httpd

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Matthew O'Connor
That fixed it. Oh, I think I see what's going on: When I run `puppet httpd.pp`, it runs `ps` and finds a process with `httpd` in the name and so concludes the service is running. If I rename the script to something else then Puppet no longer finds any process with 'httpd' in its name. Perhaps

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Russell Van Tassell
You can setup a pattern with a regular expression to weed-out the process list if you don't use hasstatus http://docs.puppetlabs.com/references/latest/type.html#service ...but, sounds like you nailed it. On Wed, Nov 16, 2011 at 12:18 PM, Matthew O'Connor thegreendra...@gmail.com wrote:

Re: [Puppet Users] Duplicate resource problem for localhost

2011-11-16 Thread Nan Liu
On Wed, Nov 16, 2011 at 1:19 AM, Karen Loomans ka...@loomans.org wrote: Hi, I have a module to manage /etc/hosts that works fine for RHEL, but not on Solaris.  Basically I've defined all our hosts as virtual host resources, and grouped them various ways by tagging them.  These are then

[Puppet Users] Re: define-type resources default parameters not available under scope.catalog.resources

2011-11-16 Thread jcbollinger
On Nov 16, 9:16 am, Theo Cabrerizo Diem d...@carpediem.sh wrote: Hi All, I have a define-type resource, which gets called from multiple classes, on which I would like to read its parameters from a template. This works for parameters added to the call of the resource but not for those which

Re: [Puppet Users] Duplicate resource problem for localhost

2011-11-16 Thread Karen Loomans
Hi Nan, Thanks for the reply. That was the first thing I asked our group, but unfortunately for the Solaris servers it is the group's policy not to alias localhost (for various reasons I won't go into here). I'll raise it again, but if an alternate solution can be found it would be preferable.

[Puppet Users] AW: nagios_service does not replace target file

2011-11-16 Thread Bernd Adamowicz
Hi all, I'm a little bit confused that I did not get a single reply from the list concerning the problem of not re-created configuration files when using stored configurations for generating an Icinga/Nagios configuration. Please tell me at least if my question if this could be a bug seems

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Nigel Kersten
On Wed, Nov 16, 2011 at 12:18 PM, Matthew O'Connor thegreendra...@gmail.com wrote: That fixed it. Oh, I think I see what's going on: When I run `puppet httpd.pp`, it runs `ps` and finds a process with `httpd` in the name and so concludes the service is running. If I rename the script to

Re: [Puppet Users] Re: What is the offical variable scope best practice?

2011-11-16 Thread flex
Does the @ method is supported by puppet 2.8? During my test, it can also be used not only ahead facts variable but also the variable in its parent class, it is this a wordaround for dynamic scope problem? On Thu, Nov 17, 2011 at 2:39 AM, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, Nov

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Matthew O'Connor
Hm, I hadn't thought of that. Do you have a time where one instance of Puppet would manage itself - versus managing another running copy of Puppet? On Wed, Nov 16, 2011 at 3:54 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, Nov 16, 2011 at 12:18 PM, Matthew O'Connor

Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-16 Thread Gabriel Filion
Hi, the module I'm using is almost setup the same, but I don't experience the same issue: the nagios server collects nagios config resources (and sets the target file for each kind of resource), and there's a resource for the files themselves which define the permissions. however, there's no

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Christopher Wood
On Wed, Nov 16, 2011 at 08:09:11PM -0700, Matthew O'Connor wrote: Hm, I hadn't thought of that. Do you have a time where one instance of Puppet would manage itself - versus managing another running copy of Puppet? I do this. A virtual machine template is configured with a