similar to: Cron jobs not removed when deleted from Manifest

Displaying 20 results from an estimated 20000 matches similar to: "Cron jobs not removed when deleted from Manifest"

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''
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 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
2007 Jul 16
3
learning the cron module
OK. I thought I would start by looking at how cron.rb in the puppet lib/type works because what I''m trying to accomplish is similar. However, when looking through that, it wasn''t immediately obvious to me how or when the resulting cron file was getting written out. Is this getting stored up in some instance var or something? Maybe getting sent to standard out and some
2008 Nov 10
4
Weird custom type behaviour
Hey, I have a very trivial parsedfile based type - http://pastie.org/311146 - that works fine when deployed and run under puppetd -t. However, when being run by the daemonized puppet, it results in this error: Mon Nov 10 03:50:48 +0000 2008 //Node[ams-proxy-2]/quagga/Quagga::Daemon[zebra]/Quagga_service[zebra] (err): Failed to retrieve current state of resource: No ability to determine if
2007 Nov 21
9
purging exported resources
So I have the following: define nagios::service ( $nagios_template = ''service-template'', $host_name = $fqdn, $service_groups = '''', $contact_groups = $default_contact_group, $max_check_attempts = 3, $dependency = false, $dependent_host = $fqdn, $dependent_service = '''', $check_command = '''' ) {
2007 Feb 27
3
Problem enforcing permissions on remote file copy
Hello, I have been attempting to do the following: file { "/home/test/test.txt": owner => test, group => test, checksum => md5, source => "puppet://puppet/files/test.txt" } At first, this appeared to work, but now I realize that when the file is copied from the server, the permissions are not applied until the next puppet run. Does puppet not apply the
2006 Nov 16
7
Negating or removing classes
I have a situation where I''d like to perform some actions when a node is removed from a class. I have a few (homegrown) services that install ssh keys in authorized_keys and it''s possible that a node may have the service enabled and disabled during it''s lifetime. When disabled I''d like to clean up the ssh keys for security reasons. This brings up the broader
2007 Jan 23
2
Default variable reference
Hello, I have been perusing the documentation looking for the default list of variables that puppet defines such as $operatingsystem. For instance, how is $host translated; <host>.<domain>, or just <host> and where can I find this information. Thank you, -- Rob -- ____________________________________________________________________________________ Never miss an email
2007 Jan 18
5
Docs moved to Trac
Hi all, Peter Abrahamsen has duplicated all of the documentation and cookbook pages in Puppet''s Trac page: https://reductivelabs.com/trac/puppet/wiki/DocumentationStart Please let me or Peter know if there are any problems. -- A motion to adjourn is always in order. --Robert Heinlein --------------------------------------------------------------------- Luke
2007 Feb 20
8
overriding included classes
I believe this has already been discussed[1], but I''d like to add a bit more to that original discussion and see if anyone has any suggestions. Here''s what I''m trying to do: we have a set of very thorough "wipe" scripts that run every night on our workstations. I''d like to stash these into a class so that I can include them as a group: class wiped
2007 Jan 23
20
"Found a bug" message when purging services
I attempted the following: resources { service: purge => true, noop => true } service { sshd: ensure => running; iptables ensure => running; } And got the following message: notice: Starting configuration run err: Found a bug: uninitialized constant Parse notice: Finished configuration run in 0.47 seconds When I remove the ''resources'' line, everything works
2008 Feb 20
2
purging unmanaged cron
Should this work? # --- remove any cronjobs that are not managed by puppet. resources { "cron": purge => true } I get the following error. Resources[cron]: Failed to generate additional resources: You must specify a title for objects of type Puppet::Type::Cron Ben
2007 May 15
5
Purging issue
I have a little issue with purging. I use: file { [''/etc/shorewall/puppet'',''/etc/shorewall/puppet/rules'']: ensure => directory, mode => 0700, recurse => true, purge => true, } but purging does not work, i can do a touch
2007 Nov 06
4
strange behavior from purge
I have the following define... define puppet::module_dir { if $name { include puppet file { "${puppetdir}/modules/${name}": ensure => directory, mode => 0755, purge => true, recurse => true, } } } I call it like so: puppet::module_dir { "main" } puppet::module_dir
2007 Feb 07
5
exec on purge
Is there a way to exec something on purge?
2008 May 23
2
manage cron jobs
Hi All, is it possible to delete cronjobs by patterns using ''cron'' resource? I.e. I want to make sure that there is no any cronjob that contains "/ path/to/some/unneeded_file" command in root crontab without knowing the command possible parameters and schedule. If no, any suggestions about how it can be performed are welcome. Thanks in advance
2007 May 23
6
Brainstorming - how to manage Shorewall rules
Shorewall (IP Tables frontend - www.shorewall.net) has been kind of a headache in trying to move forward with puppet - we just haven''t found a clean way to manage the "rules" file. With that in mind - would it be possible to create a "shorewall_rule" type? The rules file is a simple file with space/tab delimited fields: (I can provide a detailed explanation of each
2007 Oct 16
4
Useradd & NIS issue if the user exist
Hi, I have a class to add users to all the host servers. We are in the process to have a coexisting user which belongs in NIS & as well as /etc/passwd. We have NIS clients (yp running) on all host servers. So when running puppet is fails to add or modify user, bcos the user already exists in NIS. Eg: A user pcruise is an existing NIS user. When using useradd or
2007 Aug 23
10
Using resource names in templates...
Hi all, I''ve been turning my head upside down to find a solution on the following problem: I have a samba fileserver and need to make puppet do: 1. Create groups 2. Create directories with group rights 3. Create an smb-shares.conf from a template that can be included in the main smb.conf. To do this I need to have a combination of sharename and group _and_ create the