Re: [Puppet Users] Re: Puppetserver performance plummeting a few hours after startup

2020-02-12 Thread Martijn Grendelman
: > > > On Mon, Feb 10, 2020 at 1:44 AM Martijn Grendelman > mailto:mart...@grendelman.net>> wrote: > > Hi Kevin and others who have responded, > > Thanks all for your tips. Unfortunately, no breakthroughs yet. > > The current state is this: > >

Re: [Puppet Users] Re: Puppetserver performance plummeting a few hours after startup

2020-02-10 Thread Martijn Grendelman
, seems to confirm this. So: - enough CPU power (I would think) - enough memory - no significant garbage collection - Puppetserver causing a load of 5 Any more tips? Would it make sense to run PuppetDB and PostgreSQL on a different VM? Thanks, Martijn Grendelman. Op 6-2-2020 om 17:43

[Puppet Users] Puppetserver performance plummeting a few hours after startup

2020-02-06 Thread Martijn Grendelman
, Martijn Grendelman -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web vi

[Puppet Users] Attempt to override an already evaluated resource

2017-08-22 Thread Martijn Grendelman
Since a recent Puppet update, my logs contain a lot of these warnings: 2017-08-21 14:03:20,146 WARN [qtp2051525912-14813] [puppetserver] Puppet > Attempt to override an already evaluated resource, defined at >

Re: [Puppet Users] Defined type parameter defaults not set (undef)

2014-12-04 Thread Martijn Grendelman
Hi Henrik and Wil, Is there ANY way that the notifys in the apache::vhost type would display a different value? Shouldn't $apache::params::priority and $priority not be the same? I have a case where on /some/ nodes, $priority (and other parameters that have defaults from

Re: [Puppet Users] Defined type parameter defaults not set (undef)

2014-12-04 Thread Martijn Grendelman
On Thursday, December 4, 2014 9:50:56 AM UTC+1, Martijn Grendelman wrote: Hi Henrik and Wil, Is there ANY way that the notifys in the apache::vhost type would display a different value? Shouldn't $apache::params::priority and $priority not be the same? I have a case where

[Puppet Users] Defined type parameter defaults not set (undef)

2014-12-03 Thread Martijn Grendelman
Hi, Please consider the following simplified code: class apache::params { $priority = 25 } define apache::vhost ( $priority = $::apache::params::priority ) { include apache::params notify { $name prio 1: $apache::params::priority: } notify { $name prio 2: $priority: } } apache::vhost {

[Puppet Users] Hash iteration order in a template not consistent

2012-03-28 Thread Martijn Grendelman
which suggests to do something like % aliases.sort_by {|key, value| key}.each_pair do |key, val| -% % end -% Will it work? Is that a proper solution? Thanks! Martijn Grendelman -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post

Re: [Puppet Users] Collecting resources from exporting node

2011-11-18 Thread Martijn Grendelman
No one? Is my question not clear (TL;DR, perhaps?), or doesn't anyone have an answer? Best regards, Martijn. On 17-11-11 17:18, Martijn Grendelman wrote: Hi, A small addition at the bottom... I was looking at the basic example for exporting and collecting resources at http

Re: [Puppet Users] Re: Duplicate definition

2011-11-18 Thread Martijn Grendelman
to virtualize vhost in vhost.pp with @ and realize them in the node config, but seems i cant get a working solution to use vhost resource type more than 1. Can you point me to the right direction? How can i create 100 vhost with that defined class or something like this Best regards, Martijn

[Puppet Users] Exported resources: how to avoid duplicate definitions?

2011-11-17 Thread Martijn Grendelman
of having hostgroups is, that multiple hosts can be a member :-) So, the collection would lead to duplicate definitions. Is there a way to avoid that? Best regards, Martijn Grendelman -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post

[Puppet Users] Collecting resources from exporting node

2011-11-17 Thread Martijn Grendelman
by looking at the database). So does collecting, only not from the local node. What am I doing wrong? Best regards, Martijn Grendelman -- 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] Collecting resources from exporting node

2011-11-17 Thread Martijn Grendelman
curious... Best regards, Martijn Grendelman -- 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

Re: [Puppet Users] Exported resources: how to avoid duplicate definitions?

2011-11-17 Thread Martijn Grendelman
On 17-11-11 11:51, Martijn Grendelman wrote: Hi, Is there a way to 'unique-ify' a collection of resources? Suppose that nodes export '@@nagios_hostgroup' resources for hostgroups that they want to be a member of. The Nagios server node collect those: Nagios_hostgroup || But many

[Puppet Users] Could not create RRD file

2011-10-18 Thread Martijn Grendelman
: Oct 18 09:02:13 dolly puppet-master[31443]: Report processor failed: Could not create RRD file /var/lib/puppet/rrd/server011.dev.iphion.nl/changes.rrd: you must define at least one Data Source Any idea what I could do to fix this? Best regards, Martijn Grendelman -- iphion B.V. TU/e Innovation

Re: [Puppet Users] Type reference, Puppet versions

2011-10-17 Thread Martijn Grendelman
On 14-10-11 20:14, Nigel Kersten wrote: On Fri, Oct 14, 2011 at 11:11 AM, Jacob Helwig ja...@puppetlabs.com mailto:ja...@puppetlabs.com wrote: On Fri, 14 Oct 2011 10:04:19 -0700, Nigel Kersten wrote: On Fri, Oct 14, 2011 at 7:05 AM, Martijn Grendelman mart

[Puppet Users] Variables syntax

2011-10-17 Thread Martijn Grendelman
, Martijn Grendelman -- 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 more options, visit

[Puppet Users] Type reference, Puppet versions

2011-10-14 Thread Martijn Grendelman
into the source revealed to me, that this feature is not present in 2.6.3, but it is in 2.7.5. I have no idea in what version it was introduced. It would be nice if the type reference would contain that information. Best regards, Martijn Grendelman -- You received this message because you

[Puppet Users] ssh_authorized_key in 2.7.1 and up

2011-09-29 Thread Martijn Grendelman
it being added repeatedly on every catalog run, but apart from that? I have never had any problems with it. If whitespace is permitted from OpenSSH's point of view, shouldn't Puppet allow it too, and fix problems like this the right way? Or am I missing something? Best regards, Martijn Grendelman [1

Re: [Puppet Users] ssh_authorized_key in 2.7.1 and up

2011-09-29 Thread Martijn Grendelman
On 29-09-11 14:03, Jonathan Stanton wrote: On Sep 29, 2011, at 7:35 AM, Martijn Grendelman wrote: Hi, I am currently testing my catalog, that runs fine with 2.6.3, with Puppet 2.7.4. Now I am running into a problem, and I wonder why this was 'fixed' in Puppet the way it was. Please

Re: [Puppet Users] Bind9 Ubuntu Lucid

2011-09-01 Thread Martijn Grendelman
Hi, I have this: service { bind9: ensure = running, hasrestart = true, pattern = named, require = Package[bind9], } because the process is called 'named'. Best regards, Martijn Grendelman On 31-08-11 22:56, Russell Van Tassell wrote: Just

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

2011-08-03 Thread Martijn Grendelman
sources. I've combined this with a YAML-based ENC to put all variables for a single node into one YAML file. It's working well for me. but then, you should better directly go with hiera. I'm currently checking my mileage with Hiera... Thanks for all your input! Best regards, Martijn

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

2011-08-01 Thread Martijn Grendelman
of parameters you need to pass, or even to avoid class parameterization altogether. I think this is a great way to go, but Puppetlabs's style guide disfavors it. The big question here is: would that be future-proof?? Best regards, Martijn Grendelman -- You received this message because you

Re: [Puppet Users] puppet not installing relevant library files

2011-07-26 Thread Martijn Grendelman
does what you tell it to: install a single deb package. APT is made for what you want. Due to security reasons i cant enable repo urls in my /etc/apt sources-list file. You could install the dependencies with 'package' resources, and have the dpkg-exec depend on those. Best regards, Martijn

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

2011-06-30 Thread Martijn Grendelman
Hi, Having installed Puppet 2.7.1 on my testserver yesterday, I am now bugged by log messages, that tell me not to use dynamic variable lookups: Jun 29 13:31:09 os1 puppet-master[31910]: Dynamic lookup of $ssh_permitrootlogin at /etc/puppet/templates/etc/ssh/sshd_config.erb:28 is deprecated.

Re: [Puppet Users] using memorysize fact in manifests

2011-06-30 Thread Martijn Grendelman
for = 4G, 2G otherwise if $mem = 4294967296 { $shmmax_final = $mem / 2 } else { $shmmax_final = $mem - 2147483648 } } else { $shmmax_final = $mem } } Best regards, Martijn Grendelman -- You

Re: [Puppet Users] Puppet managed hosts in multiple nagios hostgroups

2011-06-10 Thread Martijn Grendelman
mailto:ch...@untrepid.com wrote: On 8 June 2011 13:30, Martijn Grendelman mart...@iphion.nl mailto:mart...@iphion.nl wrote: Hi, i want to archive the following: i define an exported

Re: [Puppet Users] extending puppet without hacking puppet

2011-05-09 Thread Martijn Grendelman
On 09-05-11 14:29, Jeff wrote: Is it possible to extend 'package' without actually hacking the puppet code. I'd like to do this: package { httpd: name= httpd, ensure = present, check = newer, } My goal is this. For every package I have in puppet, I'd like to check to see

Re: [Puppet Users] Re: What to do if something is not required on the clients?

2011-04-15 Thread Martijn Grendelman
On 15-04-11 10:20, Sans wrote: Thanks Patrick! Where can I get the list of attributes and their predefined values? Cheers!! The type reference: http://docs.puppetlabs.com/references/latest/type.html On Apr 15, 9:12 am, Patrick kc7...@gmail.com wrote: For the package example, I'd try

Re: [Puppet Users] could not find class

2011-03-15 Thread Martijn Grendelman
On 14-03-11 22:31, Brandon Metcalf wrote: I'm using the module https://github.com/sansnoc/puppet/tree/master/users but running into a problem where puppet can't find a class. In /etc/ puppet/manifests/nodes.pp I have node basenode { include hosts include groups::namidev include

[Puppet Users] schedule is a metaparam; this value will inherit to all contained resources ?

2011-03-15 Thread Martijn Grendelman
Hi, I have a type named apt::package, that installs packages on Debian base systems. By default, it sets the schedule to something I defined, to prevent package updates from happening outside maintenance hours. Now, in a specific class, I do this: # This is normally a manual puppet run, so

Re: [Puppet Users] Why is it so hard to make a sane nagios server config?

2011-03-11 Thread Martijn Grendelman
Hi Nick, I've tried to achieve my overall goals with several different features of Puppet, but I've hit a bit of a wall here. I think it's time for me to explain what I'm trying to accomplish: I want the enabling of a service in my manifests to configure the monitoring of that

[Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
Hi, Yesterday I implemented a module for managing Nagios configurations. It has turned out to be quite a complex beast, but in my test environment, it seemed to do everything it should. Now, in production, managing some 30 hosts, I get the following on the node that is both Puppetmaster and

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
On 10-03-11 12:49, Martijn Grendelman wrote: Hi, Yesterday I implemented a module for managing Nagios configurations. It has turned out to be quite a complex beast, but in my test environment, it seemed to do everything it should. Now, in production, managing some 30 hosts, I get

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
Hi, On 10-03-11 13:46, Martijn Grendelman wrote: Yesterday I implemented a module for managing Nagios configurations. It has turned out to be quite a complex beast, but in my test environment, it seemed to do everything it should. Now, in production, managing some 30 hosts, I get

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
Hi, Yesterday I implemented a module for managing Nagios configurations. It has turned out to be quite a complex beast, but in my test environment, it seemed to do everything it should. Now, in production, managing some 30 hosts, I get the following on the node that is both Puppetmaster and

Re: [Puppet Users] Could not evaluate: undefined method `sort' for :absent:Symbol

2011-03-10 Thread Martijn Grendelman
On 10-03-11 14:39, Martijn Grendelman wrote: but the error remains. Pointers still very much appreciated!! I am very sorry for the noise. The error was the result of a patch that I recently added to my Puppetmaster, to allow Nagios_* parameters to be specified as arrays. Stupid. Best regards

[Puppet Users] Storeconfigs: facts not updated

2011-03-04 Thread Martijn Grendelman
Hi, I run the Puppetmaster with storeconfigs = true thin_storeconfigs = true dbadapter = mysql So far, this has been working perfectly, but today I noticed something odd. Yesterday, I upgraded one of my nodes from Ubuntu Jaunty to Lucid, but the facts from this node aren't updated in the

Re: [Puppet Users] Storeconfigs: facts not updated

2011-03-04 Thread Martijn Grendelman
After completely deleting the node from the database's 'host' table and resources that referenced its host_id, a following catalog run refreshed the database, adding all facts with their current values... Best regards, Martijn. On 04-03-11 12:43, Martijn Grendelman wrote: Hi, I run

[Puppet Users] Nagios configuration arrays

2011-03-02 Thread Martijn Grendelman
Hi, A question for the devs. Will this: http://projects.puppetlabs.com/issues/4020 make it into a release any time soon? Best regards, Martijn. -- 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] Nagios configuration arrays

2011-03-02 Thread Martijn Grendelman
at ... which sounds logical, but... Is there any way to do what I want? I can't really think of anything, since (variable) scoping will always be in my way, as far as I can see... Best regards, Martijn. On Wed, Mar 2, 2011 at 5:15 AM, Martijn Grendelman mart...@iphion.nl

[Puppet Users] Class inheritance (was Re: Nagios configuration arrays)

2011-03-02 Thread Martijn Grendelman
, Martijn. On 02-03-11 15:55, Martijn Grendelman wrote: On 02-03-11 14:49, Brian Gallew wrote: Sadly, signs point to no. Too bad. But since I run a patched Puppetmaster anyway, I can do what I want :-) Unfortunately, it doesn't solve my problem. I am trying to do the same thing

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Martijn Grendelman
On 03-03-11 08:04, Gabriel Filion wrote: On 11-03-02 02:27 PM, Brian Gallew wrote: I've found that Puppet/Naginator has the bad habit of occasionally breaking the Nagios config. Here's how I worked around this: 1) When you collect your Nagios resource, store them all in a temporary directory

[Puppet Users] Puppetd sometimes not surviving a reload

2011-02-01 Thread Martijn Grendelman
Hi, I have one Puppet agent (2.6.3 on Ubuntu) that sometimes does not seem to survive a reload (SIGHUP). The agent is reloaded by 'logrotate' every morning, and usually this works OK, but just sometimes, puppetd gives up, without writing anything extraordinary to syslog (without any debug

Re: [Puppet Users] CIDR-matching in puppet manifests?

2011-01-28 Thread Martijn Grendelman
in various conf file settings, so clearly the underlying ruby makes this possible. I'll think about this code you've pasted. Thanks! Would you be so kind to post the solution you cho(o)se in the end? I am interested in this too.. Thank you! Best regards, Martijn Grendelman -- You received

Re: [Puppet Users] REMOVE ME

2011-01-25 Thread Martijn Grendelman
Please step into my office, and I'll remove you :-) Or look at the mail headers and take appropriate action: List-Unsubscribe: http://groups.google.com/group/puppet-users/subscribe?hl=en_US, mailto:puppet-users+unsubscr...@googlegroups.com Regards, Martijn. On 25-01-11 07:48,

Re: [Puppet Users] Check version of installed RPM

2011-01-24 Thread Martijn Grendelman
Hi, All that being said, if its just one or two packages you care about you can simply add a fact for the package versions, but this fact will only show the version on the next puppet run not the one during which you install said package since the compile stage of the puppet run is

Re: [Puppet Users] Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-10 Thread Martijn Grendelman
Hi, On 10-01-11 14:34, Adam Ryczkowski wrote: I like the idea of parametrized classes very much, and I would like to use them. Unfortunately Ubuntu Lucid ships with puppet 2.5.4, which doesn't support it. Does anybody here can tell me, how can I get 2.6.x version of puppet and puppetmaster on

Re: [Puppet Users] Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-10 Thread Martijn Grendelman
On 10-01-11 14:47, Martijn Grendelman wrote: ... Ubunutu packages ... Damn. I STILL can't type 'Ubuntu' properly. Just use Debian, it's easier :-) Regards, Martijn. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send

Re: [Puppet Users] Report rrdgraph failed: could not create RRD file

2010-12-28 Thread Martijn Grendelman
On 27-12-10 17:13, James Turnbull wrote: Martijn Grendelman wrote: On 24-12-10 16:47, Martijn Grendelman wrote: Hi, Today, I set up 'rrdgraph' reports. What could be the cause of this: Dec 24 15:52:35 offman01 puppet-master[20593]: Report rrdgraph failed: Could not create RRD file /var

Re: [Puppet Users] Unrecognised escape sequence '\~'

2010-12-28 Thread Martijn Grendelman
On 27-12-10 15:05, Felix Frank wrote: On 12/27/2010 02:54 PM, Martijn Grendelman wrote: Hi, In one of my modules, I have the following: exec { /bin/sed -i '\~^${line}$~d' '${file}': The '\~' is there, to make sed use '~' as the command separator instead of '/', which is too common

Re: [Puppet Users] Report rrdgraph failed: could not create RRD file

2010-12-28 Thread Martijn Grendelman
Hi, Today, I set up 'rrdgraph' reports. What could be the cause of this: Dec 24 15:52:35 offman01 puppet-master[20593]: Report rrdgraph failed: Could not create RRD file /var/lib/puppet/rrd/talk.dev.iphion.nl/changes.rrd: you must define at least one Data Source I think this is an RRD bug

Re: [Puppet Users] Report rrdgraph failed: could not create RRD file

2010-12-27 Thread Martijn Grendelman
On 24-12-10 16:47, Martijn Grendelman wrote: Hi, Today, I set up 'rrdgraph' reports. What could be the cause of this: Dec 24 15:52:35 offman01 puppet-master[20593]: Report rrdgraph failed: Could not create RRD file /var/lib/puppet/rrd/talk.dev.iphion.nl/changes.rrd: you must define

[Puppet Users] Unrecognised escape sequence '\~'

2010-12-27 Thread Martijn Grendelman
Hi, In one of my modules, I have the following: exec { /bin/sed -i '\~^${line}$~d' '${file}': The '\~' is there, to make sed use '~' as the command separator instead of '/', which is too common in the lines I am trying to delete. However, the puppet master now complains: Dec 27 14:07:11

Re: [Puppet Users] Unrecognised escape sequence '\~'

2010-12-27 Thread Martijn Grendelman
Hi, In one of my modules, I have the following: exec { /bin/sed -i '\~^${line}$~d' '${file}': The '\~' is there, to make sed use '~' as the command separator instead of '/', which is too common in the lines I am trying to delete. However, the puppet master now complains: Dec 27

[Puppet Users] Report rrdgraph failed: could not create RRD file

2010-12-24 Thread Martijn Grendelman
Hi, Today, I set up 'rrdgraph' reports. What could be the cause of this: Dec 24 15:52:35 offman01 puppet-master[20593]: Report rrdgraph failed: Could not create RRD file /var/lib/puppet/rrd/talk.dev.iphion.nl/changes.rrd: you must define at least one Data Source This happens for some nodes, but

[Puppet Users] Small documentation addition

2010-12-22 Thread Martijn Grendelman
Hi, At http://docs.puppetlabs.com/references/latest/report.html#tagmail I read: You must have the Ruby RRDtool library installed ... This package may also be available as ruby-rrd or rrdtool-ruby in your distribution’s package management system Maybe it can be noted in the text, that on Debian

Re: [Puppet Users] Small documentation addition

2010-12-22 Thread Martijn Grendelman
Hi, I was aware of the 'Contribute' page, and it does indeed seem like a lot of work, even for a reasonably experienced Git user like myself. I will file a documentation bug. Thanks. Regards, Martijn. On 22-12-10 16:54, Disconnect wrote: Wait, lets see if I understand the requirements for a

Re: [Puppet Users] n00b questions - verbosity of config????

2010-12-15 Thread Martijn Grendelman
Hi, I haven't followed the entire discussion, but one small thing caught my attention: On 14-12-10 19:15, Rameses Mss wrote: In your base node (i.e., top level inheritance) set a default: node base { $sshd_type=client include sshd } node myclient inherits base { } node

Re: [Puppet Users] Custom Functions that runs on the Client?

2010-12-14 Thread Martijn Grendelman
Hi, On Mon, Dec 13, 2010 at 12:56 PM, Yushu Yao y...@lbl.gov mailto:y...@lbl.gov wrote: Another though: Can I do something like if $(return value of an Exec resource)==0 { } else {} I.e. I want to run an shell command first, and do something depend on the

Re: [Puppet Users] Howto check if augeas is available

2010-12-09 Thread Martijn Grendelman
On 09-12-10 09:44, Hubert Krause wrote: Hello, Am Wednesday 08 December 2010 22:22:10 schrieb Patrick: What distro are you using? CentOS and Debian. New server will always be Debian. Our Puppet Server is CentOS at the moment. Why not just install Augeas when you install puppet?

Re: [Puppet Users] Howto check if augeas is available

2010-12-09 Thread Martijn Grendelman
I made a small mistake. Please see at the bottom. On 09-12-10 15:30, Martijn Grendelman wrote: An example: add the following to puppet_path/modules/modulename/lib/facter/augeas_available.rb -- cut here -- require 'facter' Facter.add(augeas_available) do setcode do

Re: [Puppet Users] Feature request: queued triggers

2010-12-09 Thread Martijn Grendelman
On 08-12-10 21:10, Jason Lavoie wrote: On 12/08, Martijn Grendelman wrote: I would like to have the possibility to tell Puppet to queue the trigger, and when the currently running catalog run is finished, process it and do another run. Does this sound like a good idea? I thought so

Re: [Puppet Users] Add file size/md5 validation

2010-12-08 Thread Martijn Grendelman
On 08-12-10 11:19, Leonko wrote: Hello, Anybody know how I can make checking file for verify for size/md5sum and if it not equal my value rewrite it from server. There may vriant than simple: file { /my/file: ensure = present, checksum = true,source = puppet:///files/file} ? Isn't that

Re: [Puppet Users] Converting to Ruby DSL

2010-12-07 Thread Martijn Grendelman
Hi, I'm sorry, this may not be the response you are waiting for. Unfortunately, I have only questions to add... I'm experimenting with converting some of my live puppet content to Ruby DSL and have found a few gaps I wouldn't mind some advice on. I'm not sure how many of you have already

[Puppet Users] Does Puppet depend on Augeas?

2010-12-06 Thread Martijn Grendelman
Hi, The lastest Puppet package in Ubuntu Natty /depends/ on libaugeas, rather than merely recommending it, like it used to, up to and including version 2.6.1. Is there a strict reason for this from Puppet's point of view? If not, I'll see if I can harrass the Ubuntu maintainer about this :-)

Re: [Puppet Users] Re: Schedule

2010-12-06 Thread Martijn Grendelman
specific about the day does not seem possible. Thanks, that's what I thought. I have created a custom fact named 'wday', that returns 'Date.today.wday', so I can test for '$wday 0 and $wday 6'. Ugly, but it works. Regards, Martijn. On Dec 2, 9:46 am, Martijn Grendelman mart

Re: [Puppet Users] Developing functions

2010-12-01 Thread Martijn Grendelman
regards, Martijn. On 11/30/10 6:43 AM, Martijn Grendelman wrote: Hi, Today, while working on some functions in Puppet, I got back lots of unexpected results. Lots of times, it seemed like my changes in the code were not picked up when I re-ran the test-classes. Even functions that I

Re: [Puppet Users] Developing functions

2010-12-01 Thread Martijn Grendelman
Hi Trevor, More likely just adding usecacheonfailure = false to the [puppetd] stanza in /etc/puppet/puppet.conf will help. I am yet unfamiliar with that option, but just as a remark, there was really no 'failure' involved here, it was just that enhancements to my code weren't picked up,

Re: [Puppet Users] Developing functions

2010-12-01 Thread Martijn Grendelman
with manifest changes too? Unfortunately, I've not done enough troubleshooting to narrow down the cause. I don't know if these issues are related, but thought I would suggest it. Thanks, Martijn. On Wed, Dec 1, 2010 at 7:33 AM, Martijn Grendelman mart...@iphion.nl mailto:mart

[Puppet Users] Developing functions

2010-11-30 Thread Martijn Grendelman
Hi, Today, while working on some functions in Puppet, I got back lots of unexpected results. Lots of times, it seemed like my changes in the code were not picked up when I re-ran the test-classes. Even functions that I removed from the code, after using them once or so, kept working after

[Puppet Users] join()

2010-09-09 Thread Martijn Grendelman
Hi puppeteers, In the function reference [1], I found a 'split' function for splitting a string into an array, but not a 'join' function for joining an array into a string. Why not? :) I have a list of IP addresses, that I use with ssh_authorized_key to restrict access. The list is now simply a

Re: [Puppet Users] join()

2010-09-09 Thread Martijn Grendelman
On 09-09-10 11:50, R.I.Pienaar wrote: In the function reference [1], I found a 'split' function for splitting a string into an array, but not a 'join' function for joining an array into a string. Why not? :) I have a list of IP addresses, that I use with ssh_authorized_key to restrict

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-07 Thread Martijn Grendelman
Hi, But for this to work, the Puppet run needs to run aptitude update to pick up the new package name. Running the update periodically isn't enough, but running an update on every catalog run is just overkill. I understand your concern here, but have you done the timing tests? How long

[Puppet Users] Module availability, loading order

2010-09-07 Thread Martijn Grendelman
Hi, I have create the following module: modules/foo `-- manifests |-- definitions | `-- line.pp `-- init.pp $ cat modules/foo/manifests/init.pp import definitions/*.pp $ cat modules/foo/manifests/definitions/line.pp define myline($file, $line, $ensure = 'present') { } I

Re: [Puppet Users] Module availability, loading order

2010-09-07 Thread Martijn Grendelman
On 07-09-10 14:41, R.I.Pienaar wrote: You define should be: define foo::myline { } and it should be in modules/foo/manifests/myline.pp Is the way I am trying to do things supposed to work? nope, What is the reason that this doesn't work? Is it an issue with loading order?

Re: [Puppet Users] Module availability, loading order

2010-09-07 Thread Martijn Grendelman
On 07-09-10 16:34, James Turnbull wrote: Martijn Grendelman wrote: It's probably my own lack of brainpower, but I feel the Puppet documentation could use some more elaborate examples here and there. Patches welcomed! http://github.com/reductivelabs/puppet-docs I had a feeling

[Puppet Users] Could not evaluate: No ability to determine if ... exists

2010-09-07 Thread Martijn Grendelman
Hi, What does this error mean? Sep 7 17:15:54 racey puppet-agent[3291]: (/Stage[main]/Sysctl/Sysctl[kernel.shmmax]) Could not evaluate: No ability to determine if sysctl exists I don't know where to start looking. If I should post my configuration, please let me know. Best regards, Martijn.

Re: [Puppet Users] Could not evaluate: No ability to determine if ... exists

2010-09-07 Thread Martijn Grendelman
On 07-09-10 17:29, Martijn Grendelman wrote: Hi, What does this error mean? Sep 7 17:15:54 racey puppet-agent[3291]: (/Stage[main]/Sysctl/Sysctl[kernel.shmmax]) Could not evaluate: No ability to determine if sysctl exists I don't know where to start looking. If I should post my

Re: [Puppet Users] Help with puppet kick

2010-09-07 Thread Martijn Grendelman
M C schreef: We would like to avoid pre-scheduled updates in our production environment by puppet. The solution I've come across is to instruct the puppet agent not to update on a schedule and instead use puppet kick from the puppet master to force updates when we're ready to deploy them. I

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Martijn Grendelman
On 05-09-10 12:02, Marcin Owsiany wrote: On Tue, Aug 31, 2010 at 04:03:35PM +0200, Martijn Grendelman wrote: What I would like, is for Puppet to run `aptitude update` before it installs or upgrades packages. FYI you're likely to encounter problems when using aptitude provider for package

Re: [Puppet Users] Puppet + APT, I am lost...

2010-08-31 Thread Martijn Grendelman
Hi Nigel Kersten, Thank you for your elaborate answer. I am not sure how to proceed, though... What I would like, is for Puppet to run `aptitude update` before it installs or upgrades packages. That doesn't seem out of the ordinary to me, but I can't make it work in Puppet. The approach I

Re: [Puppet Users] Puppet + APT, I am lost...

2010-08-31 Thread Martijn Grendelman
Mathias Gug schreef: I am not sure how I said I want to do an update before /every/ package install. Once at the start of a Puppet-run, /IF/ one or more packages need to be installed, would suffice. You may run into a chicken-egg problem. Packages that are configured as ensure = latest can