[Puppet Users] Re: Facter + storeconfigs missing fact_values

2011-06-20 Thread josbal
I have added a simple notify check into our manifest for the offending fact. If the value is set to expected it print a message into the puppet log, however the nodes that aren't storing this fact in database also are processing this conditional in the manifest as expected. Further more i have

Re: [Puppet Users] Adding LDAP users to system group

2011-06-20 Thread romuald FREBAULT
hi, i'm maybe misunderstanding your quetiosn but for me there's 2 ways doing thaht: first with exec exec {add_user_to_group: command = usermod -G mysql $user, unless = getent group mysql | grep $user } this will add mysql as secondary group for $user or user {$user:

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread Ohad Levy
On Mon, Jun 20, 2011 at 6:25 AM, flex frostyn...@gmail.com wrote: We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify the nodes.pp Then i saw the external node, but seems it only support class and we have many defines called in node.pp

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread Ohad Levy
On Mon, Jun 20, 2011 at 10:45 AM, Ohad Levy ohadl...@gmail.com wrote: On Mon, Jun 20, 2011 at 6:25 AM, flex frostyn...@gmail.com wrote: We have many modules and many nodes, every node may use different module, so it's very unpleasant to modify the nodes.pp Then i saw the external node, but

[Puppet Users] Re: Puppet module layout

2011-06-20 Thread Bruce Bushby
One last question: Would the list suggest implementing augeas where possible? and would augeas fit into the module layout Thanks Bruce On Jun 18, 9:29 am, Bruce Bushby bruce.bus...@gmail.com wrote: Hello I'm new to large scale puppet deployment and was hoping the list could offer some

[Puppet Users] Memory usage for reports

2011-06-20 Thread Matthias Saou
Hi, I very recently upgraded from puppet 0.25.4 to 2.6.8 (both master and all nodes), and I'm now facing serious memory usage issues. On the master, I just added more RAM because I had the resources available (from 2GB to 4GB). But on some nodes with 256MB of RAM, I now see some load peaks and

Re: [Puppet Users] Could not find a default provider for package

2011-06-20 Thread Christian Kauhaus
Am 19.06.2011 03:24, schrieb d0ugb: Need some help here. I am using puppet to mange some Gentoo boxes, and when working with packages I keep getting the following error: Could not find a default provider for package I suspect that the portage package provider need 'eix' to function. Is eix

[Puppet Users] Puppet Caching Problem

2011-06-20 Thread markus
Hey, I've got a MCollective Setup (1.2.0) with Puppet (2.6.4), an provision agent and an external node configuration script that fetches configurations from a database. Sometimes it happens, that puppet caches the configuration of the server and doesn't notice a change in the configuration. The

Re: [Puppet Users] Puppet module layout

2011-06-20 Thread Ken Barber
My initial layout was motivated by a need to harden our Linux systems. I grouped the various hardening configs into: Kernel OS Network Shell Files Application I'm hoping I can create the same module structure within puppet. Start here: http://docs.puppetlabs.com/guides/modules.html

Re: [Puppet Users] Re: Puppet module layout

2011-06-20 Thread Ken Barber
Augeas is a resource - I don't see how it fits in as a module. You may _use_ it in your modules if you like. On Mon, Jun 20, 2011 at 12:09 PM, Bruce Bushby bruce.bus...@gmail.com wrote: One last question: Would the list suggest implementing augeas where possible? and would augeas fit into the

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread Ken Barber
Do you have a lot of boxes that perform the same function? You can use the regex node syntax: node /^db/ { include db } Or device some other way of extracting function out of the machine name. It might save you some time. Otherwise if your machines are fairly unique using ENC to configure

[Puppet Users] Re: PuppetCA not signing Certificate-Requests

2011-06-20 Thread markus
I'm not sure whether it is a problem with the Provisioner I use. I added a little sleep time between requesting the node to send its CSR to the Server and the signing of this certificate on all nodes. Until now it works perfectly. On 18 Jun., 18:58, markus markus.fenste...@googlemail.com wrote:

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread Ken Barber
The main reason I separate title from namevar is so when I have references to the exec they stay consistent - but the command args can be updated independently. This matters more when I have references that cross file boundaries. ken. On Sat, Jun 18, 2011 at 7:35 PM, vagn scott

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
I could not do what you suggested at the weekend. I tried all the tips you gave me. But I could not fix. The file directory is specified, the problem is that it gives error unpacking, and when I run the tar command line manually, it works fine. Sorry for my English! -- You received this message

[Puppet Users] Re: Could not find a default provider for package

2011-06-20 Thread d0ugb
Thanks for the help guys, I actually figured it out. We are using out own build of Gentoo, which didnt include the /etc/gentoo-release file. Therefore facter was not picking up the OS type, and didnt know what to use for a package manager. Thanks again for the help you guys are great! On Jun 20,

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread Ken Barber
Did you try the logouput = on_failure in the exec? Can you try that and run the content with the --debug flag so we can all see the output? (try putting the output in pastie.org if its a lot of information). ken. On Mon, Jun 20, 2011 at 1:28 PM, lucas.brig...@ymail.com grillobri...@gmail.com

[Puppet Users] Re: special handling for template file with XML?

2011-06-20 Thread jcbollinger
On Jun 16, 10:51 am, Guy Matz gm...@matz.org wrote: hi, i get the following error when trying to use a template with XML in it: Could not parse for environment production: Syntax error at '' So I tried using the HTML codes for special chars but now get: Could not parse for environment

[Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.9rc1 is available

2011-06-20 Thread Todd Zullinger
Michael Stahnke wrote: This release is a maintenance release of the 2.6.x series of Puppet. This release is available for download at: http://puppetlabs.com/downloads/puppet/puppet-2.6.9rc1.tar.gz Better late than never, I've pushed rpm's for this release to my fedorapeople.org repo:

[Puppet Users] Re: Problem in wordpress moodule.

2011-06-20 Thread jcbollinger
On Jun 18, 1:35 pm, vagn scott vagnsc...@gmail.com wrote: 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] special handling for template file with XML?

2011-06-20 Thread Nigel Kersten
On Thu, Jun 16, 2011 at 8:51 AM, Guy Matz gm...@matz.org wrote: hi, i get the following error when trying to use a template with XML in it: Could not parse for environment production: Syntax error at '' So I tried using the HTML codes for special chars but now get: Could not parse for

[Puppet Users] Re: Puppet module layout

2011-06-20 Thread Bruce Bushby
Thanks Ken.I think I'm getting itslowly :) ...Start developing _something_ and see how your organisation works for you.. RightI've started with the most basic setup to test CA keys by simply implementing file perms for /etc/sudoers I think my initial confusion was that I didn't

Re: [Puppet Users] Rake failing to create puppet dashboard database on RHEL6

2011-06-20 Thread Jacob Helwig
On Mon, 20 Jun 2011 09:21:04 -0700, Pheran wrote: Hi folks, I'm trying to install puppet dashboard 1.1.1 on RHEL6 (following some instructions in the excellent Pro Puppet book) but the rake command is failing to create the database like so: # rake RAILS_ENV=production db:create (in

Re: [Puppet Users] Puppet module layout

2011-06-20 Thread Nigel Kersten
On Sat, Jun 18, 2011 at 1:29 AM, Bruce Bushby bruce.bus...@gmail.comwrote: Hello I'm new to large scale puppet deployment and was hoping the list could offer some pointers on module layout My initial layout was motivated by a need to harden our Linux systems. I grouped the various

Re: [Puppet Users] Puppet Caching Problem

2011-06-20 Thread Daniel Pittman
On Mon, Jun 20, 2011 at 05:11, markus markus.fenste...@googlemail.com wrote: I've got a MCollective Setup (1.2.0) with Puppet (2.6.4), an provision agent and an external node configuration script that fetches configurations from a database. Sometimes it happens, that puppet caches the

[Puppet Users] Re: Rake failing to create puppet dashboard database on RHEL6

2011-06-20 Thread Pheran
Thanks Jacob, the book either forgot or glossed over creating the database user with those permissions, but they do show how to manually create the database using mysql, so I'll give that a shot. On Jun 20, 12:28 pm, Jacob Helwig ja...@puppetlabs.com wrote: On Mon, 20 Jun 2011 09:21:04 -0700,

Re: [Puppet Users] Re: Puppet module layout

2011-06-20 Thread Ken Barber
Getting back to my ultra simple setup, I'm finding that I can't run puppetd --test: [root@msukpuppet02 puppet]# puppetd --test err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed warning: Not

Re: [Puppet Users] Re: PuppetCA not signing Certificate-Requests

2011-06-20 Thread Denmat
Hi, If you are using the standard webrick server that comes puppetmasterd then you will find it doesn't scale very well. Check out the scaling puppet docs on the puppetlabs site for your options. Cheers, Deb On 20/06/2011, at 22:18, markus markus.fenste...@googlemail.com wrote: I'm not sure

[Puppet Users] confused about file ensure/require

2011-06-20 Thread Craig White
my base/default includes this ntp manifest # cat modules/ntp/manifests/ntp.pp # ntp.pp class ntp { case $operatingsystem { centos, redhat: { $service_name = 'ntpd' $conf_file = 'ntp.conf.el' } debian, ubuntu: { $service_name = 'ntp' $conf_file =

[Puppet Users] Re: Puppet module layout

2011-06-20 Thread Bruce Bushby
Thanks again Ken!! I found it, /etc/puppet/puppet.conf requires: server = server_name and then: puppetd --test works without having to specify the server name..doh I should have checked that this morning! At last I can start testing a module layout and augeas :)) I'll be sure to post

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
I tried using try the logouput = ON_FAILURE in the exec. But my client is a puppet CentOS. (The puppet version is outdated). Not recognizing this parameter. As you asked, I used the - debug. The output was this: http://pastie.org/2098147 I discovered that any command that has not executed any

Re: [Puppet Users] Re: Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
2011/6/20 jcbollinger john.bollin...@stjude.org On Jun 18, 1:35 pm, vagn scott vagnsc...@gmail.com wrote: 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

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
I tried using try the logouput = ON_FAILURE in the exec. But my client is a puppet CentOS. (The puppet version is outdated). Not recognizing this parameter. As you asked, I used the - debug. The output was this: http://pastie.org/2098147 I discovered that any command that has not executed any

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
I tried using try the logouput = ON_FAILURE in the exec. But my client is a puppet CentOS. (The puppet version is outdated). Not recognizing this parameter. As you asked, I used the - debug. The output was this: http://pastie.org/2098147 I discovered that any command that has not executed any

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread Ken Barber
I tried using try the logouput = ON_FAILURE in the exec. But my client is a puppet CentOS. (The puppet version is outdated). Not recognizing this parameter. There is a newer version of Puppet in EPEL testing. For example, RHEL/CentOS 5:

Re: [Puppet Users] confused about file ensure/require

2011-06-20 Thread Craig White
On Jun 20, 2011, at 2:35 PM, Jacob Helwig wrote: On Mon, 20 Jun 2011 14:17:46 -0700, Craig White wrote: my base/default includes this ntp manifest # cat modules/ntp/manifests/ntp.pp # ntp.pp class ntp { case $operatingsystem { centos, redhat: { $service_name = 'ntpd'

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
I actually posted about the problem with tar. I decided to modify the module to not depend on tar installed. But I realized that any command that has parameters to run, the same problem occurswhen using this command: exec {$ tar-vzxf downdir} {wordpress.tar.gz path = [/ usr /

Re: [Puppet Users] Problem in wordpress moodule.

2011-06-20 Thread lucas.brig...@ymail.com
ken, The error was occurring because the version of the puppet. Thank you! -- 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

Re: [Puppet Users] confused about file ensure/require

2011-06-20 Thread Jacob Helwig
On Mon, 20 Jun 2011 15:11:09 -0700, Craig White wrote: Date: Mon, 20 Jun 2011 15:11:09 -0700 From: Craig White craig.wh...@ttiltd.com To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] confused about file ensure/require X-Mailer: Apple Mail (2.1084) Message-Id:

Re: [Puppet Users] confused about file ensure/require

2011-06-20 Thread Craig White
On Jun 20, 2011, at 3:37 PM, Jacob Helwig wrote: On Mon, 20 Jun 2011 15:11:09 -0700, Craig White wrote: Date: Mon, 20 Jun 2011 15:11:09 -0700 From: Craig White craig.wh...@ttiltd.com To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] confused about file ensure/require X-Mailer:

Re: [Puppet Users] confused about file ensure/require

2011-06-20 Thread Craig White
I don't know if it is or isn't being included but the -d -e were certainly useful bits... err: /Stage[main]/Ntp/File[ntp.conf]: Could not evaluate: Could not retrieve information from source(s) puppet:///modules/ntp/files/ntp.conf.debian at /etc/puppet/modules/ntp/manifests/ntp.pp:31 notice:

[Puppet Users] Geppetto is ready

2011-06-20 Thread Henrik Lindberg
Geppetto 1.0 is released and ready for download. We want all the feedback we can get, so try it out and let us know what you think! Full story at: http://cloudsmith.github.com/geppetto/ If you haven’t been following the project, Geppetto is an integrated toolset for working with Puppet

Re: [Puppet Users] confused about file ensure/require

2011-06-20 Thread Craig White
On Jun 20, 2011, at 3:54 PM, Ken Barber wrote: It does seem like its not being included :-) ... What does: echo # foo /etc/ntp.conf puppet apply -d -e 'include ntp' Do? OK - I simplified the chaining so now the ntp is indeed included with all puppet agent and puppetd actions.

[Puppet Users] Announce: puppetlabs-mcollective 0.1.8

2011-06-20 Thread Jeff McCune
Hi everyone, I'm going to try announcing new versions of Modules I'm working on as I release them to the Forge. puppet-users and mcollective-users seems like the best place, but please let me know if you have other preferences. I've added a small change to the mcollective module we've recently

Re: [Puppet Users] How to manage many nodes easily?

2011-06-20 Thread flex
thanks Ohad and Ken, i am using foreman now, but only for logging reports, i think i should try to restructe our config and use external node with forman. 2011/6/20 Ken Barber k...@puppetlabs.com Do you have a lot of boxes that perform the same function? You can use the regex node syntax: