[Puppet Users] Purge puppet's reports

2011-07-21 Thread Hugo Deprez
Dear community, I configure puppet dashboard on my server, in order to make it work I had to activate reports from clients. The thing is that my folder /var/lib/puppet/reports/ is now 1.6 Go large. Is there any mechanism available to auto delete old files ? Or should I configured my own script

[Puppet Users] Re: 'requires' dependency in file-fragments pattern was not honored

2011-07-21 Thread Al @ Lab42
Hi Jon, I personally don't use (and don't see much value added, but I'm open to alternative opinions) the new Exec[Assemble_Sudo_Fragments] ~ Exec[Validate_Check_File] - File[Make_Sudo_File_Live] syntax to manage dependencies, so I can't say why it didn't work as expected. I would rather try

Re: [Puppet Users] Purge puppet's reports

2011-07-21 Thread vagn scott
On 07/21/2011 03:14 AM, Hugo Deprez wrote: Is there any mechanism available to auto delete old files ? Or should I configured my own script to clean up old reports ? I'm doing this: class puppet::clean_reports { cron { puppet clean reports: command = 'cd

[Puppet Users] Re: 'requires' dependency in file-fragments pattern was not honored

2011-07-21 Thread Jon Jaroker
Hello Alessandro, I relocated the dependency declaration into the native types and also removed two stray semi-colons. After reviewing the dot graph, I also made Secure Check File a dependency of Validate Check File. The updated class is below. Puppet still does not honor the Validate Check

Re: [Puppet Users] Purge puppet's reports

2011-07-21 Thread vagn scott
On 07/21/2011 08:08 AM, vagn scott wrote: On 07/21/2011 03:14 AM, Hugo Deprez wrote: Is there any mechanism available to auto delete old files ? Or should I configured my own script to clean up old reports ? I'm doing this: class puppet::clean_reports { cron { puppet clean reports:

[Puppet Users] Re: 'requires' dependency in file-fragments pattern was not honored

2011-07-21 Thread jcbollinger
On Jul 21, 7:25 am, Jon Jaroker goo...@jaroker.com wrote: Hello Alessandro, I relocated the dependency declaration into the native types and also removed two stray semi-colons.  After reviewing the dot graph, I also made Secure Check File a dependency of Validate Check File.  The updated

Re: [Puppet Users] Purge puppet's reports

2011-07-21 Thread vagn scott
On 07/21/2011 08:52 AM, vagn scott wrote: Thinking about this some more, if you need the reports for dashboard to work, then any cleanup script should leave the latest report from any server, so that, even if the server has not checked in for a while it won't disappear. Thanks for the

Re: [Puppet Users] Re: Not getting errors/warnings/etc in reports

2011-07-21 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm guessing I'll have to write my own to do that -- does anyone have any examples of logging the error message and also adding it to the report object? (... and I don't really want to use the exec { /bin/false: } workaround) Digging through

[Puppet Users] Semi-architectural question - data inside code-tree.

2011-07-21 Thread John Hawkes-Reed
Hello. As part of our Puppet rig, we manage a number of zonefiles with NSD. This means that there's a directory of datafiles under ../puppet/modules/nsd/files/zones/ (and something somewhat similar for the Postfix virtual domains). It seems to me that mixing code and data like that might be a

[Puppet Users] Dashboard and remote MySQL BDD

2011-07-21 Thread david ramblewski
Hi, I've installed Dashboard on my server and I aim to remotely request the MySQL Database. All documentations read explain the way to roll out using Dashboard and MySQL Database on the same server. I am looking for any information to achieve that because I haven't found any from the time being

[Puppet Users] Re: Class variables in Dashboard

2011-07-21 Thread TheDirtyScreech
Any guidance on this one? Anyone know how to set the variables in a module via dashboard? It's obviously quite easy when using config files, and if it were up to me alone, that's what we'd do. But in an enterprise environment, what you want isn't always best for the organization's needs. This

[Puppet Users] Using with EC2 (and auto-scaling)

2011-07-21 Thread Oliver Beattie
Hi there, I am trying to setup a cluster on Amazon EC2, using auto-scaling. I currently have it working so that when the instances are started, they generate a CSR, which is automatically signed by the server if it's valid by a cron job I setup to run every minute. However, where does one go

Re: [Puppet Users] Using with EC2 (and auto-scaling)

2011-07-21 Thread David Kavanagh
One way is to pass a role in via user data which gets written to a file (like /etc/role) and then have a custom fact that reads that. Then, your scripts can key off that to apply the classes for that node type. David On Thu, Jul 21, 2011 at 5:56 AM, Oliver Beattie oli...@obeattie.com wrote: Hi

Re: [Puppet Users] Using with EC2 (and auto-scaling)

2011-07-21 Thread Mark Stanislav
On Jul 21, 2011, at 5:56 AM, Oliver Beattie wrote: Hi there, I am trying to setup a cluster on Amazon EC2, using auto-scaling. I currently have it working so that when the instances are started, they generate a CSR, which is automatically signed by the server if it's valid by a cron job

Re: [Puppet Users] Using with EC2 (and auto-scaling)

2011-07-21 Thread John Fieber
On Jul 21, 2011, at 2:56 AM, Oliver Beattie wrote: I am trying to setup a cluster on Amazon EC2, using auto-scaling. I currently have it working so that when the instances are started, they generate a CSR, which is automatically signed by the server if it's valid by a cron job I setup to

[Puppet Users] catalog format

2011-07-21 Thread Christopher Johnston
debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson How can I change this to default to yaml? I didn't see any options in puppet.conf. -Chris -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group,

[Puppet Users] Re: catalog format

2011-07-21 Thread Christopher Johnston
preferred_serialization_format, found it -- odd I changed it to yaml and I am seeing this error.. any ideas? debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using yaml err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find node 'testhost';

[Puppet Users] Open Source Team iteration planning summary 2011-07-20

2011-07-21 Thread Jacob Helwig
We currently have the majority of the tests passing, marked as known failures due to missing providers or other yet unwritten code, or confined to not run on windows since they are testing functionality that we do not plan to support (running a master, for example). We've got a Work in Progress

[Puppet Users] exec onlyif not working properly

2011-07-21 Thread Panaman
I basically have a custom service i am running I want puppet to run a command if the process doesn't show up in ps - aux What is happening is it runs the command no matter what. here is my exec exec { $rule-$interface-svscan: command = /usr/sbin/daemon -f /bin/sh -c \/usr/

[Puppet Users] OpenVZ support in Virt module

2011-07-21 Thread windowsrefund
Reliant Security funded some new work by Carla Souza that has extended what's available within puppet to manage virtual machines. The Puppet virt module provides the configuration and correct activation of virtual machines with multiple hypervisors ensuring consistency and reproducibility for

[Puppet Users] Re: Modules for Solaris

2011-07-21 Thread John Lyman
I would be especially interested if anyone has a good way to manage / etc/system. I am currently using the concat module, but it's not the best method. I know the puppet way would be to use augeas, but I haven't had any luck compiling it with sun studio and don't want to go the gcc route for

[Puppet Users] Re: Modules for Solaris

2011-07-21 Thread windowsrefund
- What packages? This might become a nightmare... there are different packages repositories, blastwave, openCSW, Sunfreeware... , to make modules that manage the same software from different sources might be a troublesome and I would like to stick to one. Does this makes sense? What's the

Re: [Puppet Users] Re: Modules for Solaris

2011-07-21 Thread Aaron Grewell
The pkgutil provider comes with the OpenCSW Puppet package on Solaris in Puppet 2.6, and is in 2.7 by default. It works quite well. On Thu, Jul 21, 2011 at 11:14 AM, windowsrefund windowsref...@gmail.comwrote: - What packages? This might become a nightmare... there are different packages

Re: [Puppet Users] Using with EC2 (and auto-scaling)

2011-07-21 Thread Dan Carley
On 21 July 2011 16:41, John Fieber j...@ursamaris.org wrote: I use instance userdata to configure puppet (via ubuntu cloudinit) and set an explicit certname, in the form: instance_id-puppetclass-environment The server uses a a node classifier that fabricates the node spec from that.

[Puppet Users] Re: Modules for Solaris

2011-07-21 Thread windowsrefund
On Jul 21, 2:19 pm, Aaron Grewell aaron.grew...@gmail.com wrote: The pkgutil provider comes with the OpenCSW Puppet package on Solaris in Puppet 2.6, and is in 2.7 by default.  It works quite well. Even better. I'm not up on things because I'm fortunate enough to be migrating my entire

[Puppet Users] IPv6 issue

2011-07-21 Thread Bob
Hi, I run puppetmaster on a machine accessible by both ipv4 and ipv6. bindaddress in puppet.conf is :: Puppet version: Client (debian squeeze): 2.6.2-5 Server (ubuntu 10.10): 2.6.1 When I try to run puppetd --test from my IPv4 only client, I get the following error message: Could not retrieve

[Puppet Users] tolower()??

2011-07-21 Thread David Kavanagh
I need to convert a value from facter to lower case for inclusion in a path. Is there a built-in function for that? David -- 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

Re: [Puppet Users] tolower()??

2011-07-21 Thread Nan Liu
On Thu, Jul 21, 2011 at 4:10 PM, David Kavanagh dkavan...@gmail.com wrote: I need to convert a value from facter to lower case for inclusion in a path. Is there a built-in function for that? Not builtin, but you can use this:

Re: [Puppet Users] tolower()??

2011-07-21 Thread Jacob Helwig
On Thu, 21 Jul 2011 16:10:02 -0400, David Kavanagh wrote: I need to convert a value from facter to lower case for inclusion in a path. Is there a built-in function for that? David Hm...doesn't actually look like there is. % ls -1 lib/puppet/parser/functions create_resources.rb

Re: [Puppet Users] tolower()??

2011-07-21 Thread Jacob Helwig
On Thu, 21 Jul 2011 16:31:39 -0400, Nan Liu wrote: On Thu, Jul 21, 2011 at 4:10 PM, David Kavanagh dkavan...@gmail.com wrote: I need to convert a value from facter to lower case for inclusion in a path. Is there a built-in function for that? Not builtin, but you can use this:

Re: [Puppet Users] tolower()??

2011-07-21 Thread Darren Chamberlain
* David Kavanagh dkavanagh at gmail.com [2011/07/21 16:10]: I need to convert a value from facter to lower case for inclusion in a path. Is there a built-in function for that? $ cat /tmp/foo.pp $foo = STUFF $foo_l = inline_template(%= foo.downcase %) notice($foo - $foo_l) $ puppet

Re: [Puppet Users] tolower()??

2011-07-21 Thread Daniel Pittman
On Thu, Jul 21, 2011 at 13:43, Jacob Helwig ja...@puppetlabs.com wrote: On Thu, 21 Jul 2011 16:31:39 -0400, Nan Liu wrote: On Thu, Jul 21, 2011 at 4:10 PM, David Kavanagh dkavan...@gmail.com wrote: I need to convert a value from facter to lower case for inclusion in a path. Is there a

Re: [Puppet Users] Re: Modules for Solaris

2011-07-21 Thread Aaron Grewell
One thing to note: if you're using pkgutil with Puppet make sure you set 'wgetopts=-nv' in pkgutil.conf or you'll get loads of inexplicable warnings. On Wed, Jul 20, 2011 at 6:10 PM, Al @ Lab42 lab42...@gmail.com wrote: On Wednesday, July 20, 2011 5:24:05 PM UTC+2, deet wrote: On Jul 20,

[Puppet Users] ANNOUNCE: Cloud Provisioner v0.6.0rc1 release

2011-07-21 Thread Jeff McCune
We are happy to announce the first public release candidate of our Puppet Cloud Provisioner. This release is available for download at our Module Forge: http://forge.puppetlabs.com/puppetlabs/cloud_provisionerhttp://downloads.puppetlabs.com/dashboard/ Extensive documentation can be found at:

[Puppet Users] Re: Class variables in Dashboard

2011-07-21 Thread Luke Baker
I'm looking for some guidance here as well. We migrated away from flat files to foreman for an ENC a couple of months ago. Since then, I've moved what parameter classes we had to kind of weird mash-ups.. I still set variables with foreman but I've always wondered how ENCs should be with parameter

Re: [Puppet Users] Class variables in Dashboard

2011-07-21 Thread Nan Liu
On Tue, Jul 19, 2011 at 5:54 PM, TheDirtyScreech matthew.ebersvil...@gmail.com wrote: So I have a module (svn) that has a fuction (svnserve) that when invoked, looks something like this: So I presume this is a custom define resource. svnserve { dist:    source = svn://foo/bar,    path =

Re: [Puppet Users] ANNOUNCE: Cloud Provisioner v0.6.0rc1 release

2011-07-21 Thread Douglas Garstang
'Cloud Provisioner' seems like a funny name if it's only designed to manage Amazon EC2 instances. Why didn't you just call it the 'Amazon Provisioner' ? On Thu, Jul 21, 2011 at 4:18 PM, Jeff McCune j...@puppetlabs.com wrote: We are happy to announce the first public release candidate of our

Re: [Puppet Users] ANNOUNCE: Cloud Provisioner v0.6.0rc1 release

2011-07-21 Thread Scott Smith
Gonna take a wild guess that there are plans to support other providers.. On Thu, Jul 21, 2011 at 6:32 PM, Douglas Garstang doug.garst...@gmail.comwrote: 'Cloud Provisioner' seems like a funny name if it's only designed to manage Amazon EC2 instances. Why didn't you just call it the 'Amazon

Re: [Puppet Users] 'requires' dependency in file-fragments pattern was not honored

2011-07-21 Thread vagn scott
On 07/20/2011 09:37 PM, Jon Jaroker wrote: Hello, I was wondering if anyone can spot the mistake I am making in the file-fragments pattern below. You probably want to drop ALL your fragments into the fragments directory, including the head fragment. Use naming conventions to establish