similar to: Re: How to conditionally run defines? (and a question about updating... )

Displaying 20 results from an estimated 2000 matches similar to: "Re: How to conditionally run defines? (and a question about updating... )"

2007 Jan 15
7
How to conditionally run defines?
Hi all, Is there a (simple) way to add conditionals to a call to a define? What I want is to run a define only if a file (that gets created somewhere along the run of the define) does not exist. In this way I can skip a whole lot of setup work in the define if I know it has already run once before. I would think adding a unless clause would be a elegant solution (and the other conditionals like
2007 Jun 13
11
Re: classes and definitions --> RFC <--
On 12/06/07, Luke Kanies <luke@madstop.com> wrote: > > On Jun 11, 2007, at 12:01 PM, Thijs Oppermann wrote: > > > But they don''t always work. For example, in the example (a bit > > like) above (which was what I had in my git module definition for > > clientsetup): > > > > file { "/home/${user}/.netrc.d": > > ensure
2007 Jan 03
18
error "Stack level too deep" on ''exec[ "perl Makefile.PL" ] ?
Hi, I''m testing puppet from the subversion trunk. I have a rather hacked-together system to install a CRM into one of my nodes, which worked (more or less) with version 0.19.3. When I tried to do a puppet run on a completely clean node it seemed to stall on the ''compilation'' part (I do an exec of ''perl Makefile.PL'' in the appropriate dir). When I broke
2007 Aug 23
3
Using Puppet to swap eth0 and eth1
I''ve been using Puppet now for a month or so and I''ve come to a problem that may warrant an additional Puppet metaparameter. I''m advocating the addition of a metaparameter called "preaction" (or something like that), which will perform some arbitrary action before the resource is modified. There may be a way to do this within Puppet already (with some
2007 Jun 09
12
Example module for central git repository via http (sort of like a subversion repo) [a bit RFC]
Hi all, I''ve been looking for a good example for how one would build a module, but I couldn''t really find something that I liked, so I went ahead and tried to do it myself. The result is this: a git module (see attachment). Please have a look and comment on it, before I add it to the wiki. I especially want comments on the setup of the module itself, not so much on the git
2007 Mar 18
1
A wish or possible?
Hi, One thing I''d like to be able to do is this... define sedfile ( $file = '''', $target = '''', $pattern = '''', $options = ''-i -n'' , onlyif = '''' ) { case $file { '''': { err ( "Require valid filename: ''$file''" ) } } case $target {
2006 Dec 24
3
Installing CPAN packages?
Hi guys, Has anyone yet tackled installing CPAN packages through puppet? I need some that aren''t available as separate debs, so if anyone has an idea how best to do this, I''d like feedback. Thanks, Thijs
2007 Jan 23
2
Inconsistent notices during puppetd --test run
I added ntp to my servers running with puppet. These are all Ubuntu machines, btw. I get the following in the verbose output: {{{ warning: Service[ntp-server](provider=debian): Could not start Service[ntp-server]: Execution of ''/etc/init.d/ntp-server start'' returned 256: * Starting NTP server... notice: /base/Service[ntp-server]/ensure: ensure changed
2006 Sep 23
4
"server" config option (and cmd-line option) don''t do anything for puppetd?
Hi guys, Unlike what it says in the documentation and the --help output, I can''t seem to get puppetd to use the --server setting. The only way I can get puppetd to work is to include a ''puppet'' alias to the ip of the machine I''m running puppetmasterd on in my hosts file. The strange thing though, is that the logs of my puppetmaster show that it *is* getting
2006 Sep 21
2
Examples, and what is the preferred version/release to use?
First of all, in the thread ''Using multiple values for source, for platform/arch/host configs'' Jason said: "I would really appreciate any examples, or further advise anyone has." -> I heartily second that. A good start would be to fill in the cookbook, as Luke has been quietly whispering here and there. ;) Then my other main question at the moment is: what version
2007 Jan 04
10
New Feature: Graphing
Hi all, One of the major new features in the upcoming release is that Puppet now uses a graph library internally to handle resource relationships. The big benefit to all of you is that you can use this library to turn these graphs into images. The trick, right now, is adding --graph when you run puppetd. This creates .dot files, which can then be interpreted by the
2007 Feb 06
14
Unless in exec doesn''t seem to be honored on notify.
This was a fun one to track down... I was trying to use the append_if_no_such_line script from the wiki and it was working fine EXCEPT when I threw a notify at it. The notify appears to completely ignore both unless and onlyif within the exec for some reason. If I put the same test in the actual command line, it works fine. Example: unless => "/bin/grep -Fqe ''$line''
2006 Oct 14
1
Parent directory handling of file type?
Hi all, Is there maybe an undocumented parameter with which to tell puppet to create missing parent directories when using the ''file'' type? And if not, should there be? I actually expected it to be default behaviour to create missing parent directories when doing something like: {{{ file { "/usr/local/svn/repos": ensure => directory, owner => root } }}}
2011 May 02
2
exec resource: negate onlyif condition
Hi, today I''m stupid. How can I negate the test for execs onlyif? I want to run the exec onlyif command returns 1. regards, Andreas -- 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
2007 May 26
13
munin module: manage clients and server''s config
Hello all. Probably this question has already been posed in the context of another software, but I am unable to find it. I would like to implement a module which should manage munin-clients as well as the munin-server. Here is what I am thinking about implementing: - There are two classes: munin::client and munin::server - munin::clients'' configuration will be managed automatically.
2007 Dec 26
7
Thank you puppet!!
I''ve been hacking at puppet for the past week or two, and came up with some great stuff, but I''m wondering if there''s a way to tie it all together To create a virtual machine for our company''s QA environment, I''m currently doing 3 things: #create a vm node vmsvr2 inherits default { include vmserver vmserver::vm {
2007 Aug 24
11
Aliases not working in a subclass ?
Hi folks, I''m overriding some resource attribute in a subclass. It seems that specifying a resource by its alias doesn''t work in a subclass. Looks like a bug, no ? === module-classes.pp === class module::base { file {"/tmp/test-module": alias => test-module, content => "module::base", } } class
2009 Feb 11
1
where to submit new logcheck rules?
Hi, I've got a few logcheck ignore.d rules that I'd like to submit, one example is sqlgrey. /usr/share/doc/logcheck/README.maintainer talks about shipping the rules inside the package itself, so I could file a request with sqlgrey. However, that doesn't work because of course I don't have all the packages I use on my network installed on my loghost. In fact, I believe that
2012 Aug 29
1
augeas and cron.allow
Hi. I am having a few problems with augeas and need some help. What I am trying to use is augeas to update the cron.allow file. I can get augeas to add the required name but I am having problems with getting it to add the name once. augeas { "check_mk_cron.allow" : context => "/files/etc/cron.allow", # changes => "set
2006 Jun 16
0
[ATTN] To all users of unicode_hacks
TO everyone who is making use of unicode_hacks! I have made irreversible changes to the plugin so that the routings are no longer overloaded. To call the character-bound routines, you need to use the "chars" or "u" accessors, as outlined in the docs http://julik.nl/code/unicode-hacks/index.html and in this blog post by Thijs: