similar to: Unless in exec doesn''t seem to be honored on notify.

Displaying 20 results from an estimated 9000 matches similar to: "Unless in exec doesn''t seem to be honored on notify."

2007 Oct 12
2
"run once" directive for service or package
hi, is there a way to specify that something is to be run only once, upon install of the package? i''m trying to automate the installation of some services and their requisite packages. some of them require setting up various things afterwards (user, passwords, etc). i know i could have it done via exec & onlyif. however there are obvious security issues with trusting the
2007 Jan 17
16
Cron jobs not removed when deleted from Manifest
I''m not sure if this has been posted previously, but I couldn''t find any information on it. I added a cron job via the cron type and it installed properly. Next, I removed the cron type from the manifest. The result was that, while the entry was no longer in the yaml file, the cron entry was not removed! Is this a bug, or the way that it is supposed to function? Thank you,
2007 Oct 18
3
verify before deploy
so I have this sudo module that I''ve been working on: class auth::sudo { package { sudo: ensure => installed } file { sudo_config: name => "/tmp/sudoers", owner => "root", group => "root", mode => 0440, notify => Exec["sudoers-syntax"], source => [
2006 Sep 07
13
How to handle config files used by a combination of classes?
Hi, How should I handle the combinatorics when one config file must be built for a combination of possible classes? Take for example the amd automounter''s configuration file, which on Debian is found at /etc/am-utils/amd.conf. This is an INI style file which looks like: [fsname1] param1=foo param2=bar [fsname2] param1=baz param2=quag In my case I have one class of machines
2007 Mar 29
2
some questions regarding inhert, unless/onlyif and notify on recursive objects
hello, i''m just playing around with the really great puppet to learn the syntax and see what it can do. i''m using puppet 0.22.1 on debian etch. i created a aide class to distribute a modified aide.conf.d directory and if not already done initialize the database (yes this should probably be better organized and databas initialization should be performed as the last step):
2007 Sep 04
9
exec creates and subscribe
I have the following test case: file { sendmail-conf: path => "/etc/mail/${fqdn}.mc", owner => "root", group => "wheel", mode => 0644, links => follow, source => "puppet:///sendmail/${hostname}.mc" } $mail_dir = "/etc/mail" $cf_dir = "/usr/share/sendmail/cf/" exec { build-conf: command => "/usr/bin/m4
2007 Aug 20
1
SimpleTextRecipes
I have copied the simple text snippets into a pp file and set a host to attempt to add lines, but regardless if the line is there or not, it still adds it... what am I doing wrong? in definitions/linetests.pp: define append_if_no_such_line($file, $line) { exec { "echo ''$line'' >> ''$file''": unless => "grep -qe
2008 Jan 14
3
Spot the cyclical relationship
I got the following error, but there''s no "cycle" I commented out File["/dev/sdb3"] and it works, but of course would choke if I ran it and the requirement were not met err: Could not apply complete catalog: Found cycles in the following relationships: File[/dev/sdb1] => Exec[echo -e "0,290\n,290\n," | sfdisk /dev/sdb] Here''s the node: node
2008 Jan 10
10
Install Package only if a certain file exists.
So I can''t quite see how to do this in the existing syntax. Ideally there would be an onlyif parameter for packages, but that doesn''t seem to be the case. I could create a fact that returns true or false depending on whether the file exists, but that doesn''t feel like the right way to do it either. I could do something like: $file_exists =
2006 Aug 27
5
Re: preseeding files only on reinstall
On Aug 27, 2006, at 9:55 AM, Thorsten Sandfuchs wrote: > hio, > me again :) > > In Debian, there is a mechanism to preseed debconf (configuration- > database for > the system) with decisions, before installing a package. Debconf > mussn''t ask > the user then. I wrote this pp for preseeding-support: [snip] Very cool. Seems like that''s something that
2007 Apr 18
20
dependency and communication between defined classes
Hi, i wanted to know how you handle case when classes or define need to communicate between them. For exemple i got an ftpd define and a apachevhost define. Both need to know the path where the vhost is set and this path is defined by the ftpuser home''s directory. How can i ask information from other define or other classes ? we allready seen that tag are not reliable as they
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 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 Feb 07
5
exec on purge
Is there a way to exec something on purge?
2007 Aug 23
24
Type development for the rest of us
Since I had my type development epiphany a couple of days ago, I''ve decided to write down my understanding of developing simple types, at http://reductivelabs.com/trac/puppet/wiki/PracticalTypes. I''d appreciate comments from people who already know how to develop types as to correctness, and also comments from people who are new to type development about whether it''s a
2007 Jun 02
6
exec subscribe refresh not working
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I''m trying to figure out why exec{} which subscribes to a file, doesn''t get triggered when the file is touched by puppet. I''ve got the following: exec { "/usr/sbin/postmap /etc/postfix/checks/access": refreshonly => true, subscribe => File["/etc/postfix/checks/access"];
2007 Jul 02
3
0.23.0 puppet dependancy issue
Hello, I use some define in classes like class foo { define bar() {} } before in .22.4 i had require => Bar[''mybar''] on object and it worked. Now i have : err: Could not apply complete configuration: Could not retrieve dependency ''Shorewall-realize[shorewall.conf]'' at /etc/puppet/manifests/classes/shorewall.pp: for exemple. Do anyone knwo why it
2007 Feb 13
10
Is there a limit on the size of a template?
Hello, I have recently run across the following error: /usr/lib/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault This has happened after adding a particularly large template file with ruby 1.8.1. Thank you, -- Rob -- ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews
2006 Dec 21
3
service reload?
Hey All, I can see in the type reference under service it has restart, stop, start etc. But is there a way to issue a /etc/init.d/daemon reload ? but still have the restart available if needed Cheers Brendan Brendan Beveridge Managed Services Consultant Direct | 02 8235 9593 Mobile | 0434 077 934 Email | Brendan.Beveridge@brennanit.com.au "Brennan IT lands major IT&T
2008 Jul 30
6
Refreshonly question
Does anyone have a technique for performing an exec the first time puppetd runs but then reverting to refreshonly => true state for subsequent runs? The basic idea is: file { "/etc/foo": notify => Exec["bar"] } exec { "bar": command => "Do stuff to /etc/foo", refreshonly => true } Should I use a fact that is unset based on a