Displaying 20 results from an estimated 100000 matches similar to: ""Found a bug" message when purging services"
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 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 = ''''
) {
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
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 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
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
2006 Dec 14
11
Puppet and Cfengine Differences
Hello,
I''ve recently begun looking at Puppet as an alternative to Cfengine and I
have a couple of questions.
1) Besides the information posted on the Puppet website, are there any
critical differences between Puppet and Cfengine?
2) Does Puppet allow for client-specific file text manipulation. For
instance, in Cfengine I can add a line of text to a file if the line doesn''t
2007 Jan 30
2
Problem deleting user''s primary groups and the users themselves.
This has been a "fun" issue.
Basically, I''m trying to purge (ensure => absent) useless users and groups
that I don''t need.
The problem that I''m having, is that I can''t seem to determine a way to make
sure that the users are deleted before the groups.
For example:
user { games: ensure => absent }
group { games: ensure => absent }
Now,
2007 Oct 16
30
Template Nodes considered harmful
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Russ, Digant, *!
Several times on the IRC channel I noticed people having problems getting to
grips with the interaction of scopes when using template nodes[1]. Typically
this looks thus:
| node genericwebserver { stuff }
|
| node ''web01.example.com'' inherits genericwebserver {
| $influence_genericwebserver =
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 Aug 24
7
Problem restarting client service ssh in client
Hello,
I want a simple operation in a puppet node like restarting the ssh
service if it was stopped. My site.pp is simple as this:
import "services/*"
node default {
include ssh
}
The services directory as a ssh.pp :
class ssh {
service { ssh:
ensure => running,
subscribe => File["/etc/ssh/sshd_config"]
}
}
I''ve stopped the ssh service in the
2007 Apr 30
17
Managing packages which require a reboot
Hi,
I''m working on a method to manage packages which require a reboot after
being installed. I''m curious how other people are handling this problem.
Consider the resource:
pkg_deploy { "MacOSXUpdCombo10.4.9Intel.dmg": alias => macosx1049 }
I''d like to only install the package under if the following conditions
are met:
- No user is logged into the
2007 Feb 14
15
Recursive home-dir does more than only files in repository
Hi all,
Today I came across something that I consider a bug. Would like to hear your
opinions.
Facts:
- Using 0.22.1 from Debian Unstable on a Debian Testing machine
- Recipes work on other machines
The recipe in question is:
# Keep home-dirs in sync
file { "/home/tim":
recurse => true,
source =>
2007 Jan 24
3
Another ''found a bug'' problem - This time with user purging.
Ok, given the statement on the web page about unlesssystemuser under
Resources (
http://reductivelabs.com/projects/puppet/documentation/typedocs.html#resources),
I assume that users can be purged.
However, when I attempt to do this with resources { user: purge => true,
noop => true } and what I get is:
err: Found a bug: private method ''split'' called for nil:NilClass.
2008 Jun 06
8
useradd provider not working?
I have this config:
# BL00070 - Disable NFS
service {["nfs","nfslock","netfs","portmap"]:
ensure => stopped,
enable => false,
}
user {"rpc": ensure => absent, provider => "useradd" }
user {"rpcuser": ensure => absent, provider => "useradd" }
file
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 Feb 25
6
Wildcard expansion in remote files or recursion?
Hi all,
[Please CC me in replies, I am not subscribed to this list.]
First of all, thanks for puppet! It is a very nice tool and I''m in the (slow)
process of using it to manage my new Xen-based virtual server farm with it.
Most of the "simple" tasks worked well so far, and I may be able to add a few
recipies to the Wiki when I find time to do so.
However, is there any way
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 Oct 26
14
''Considered Harmful'' Considered Harmful
Because here in Puppet-land we''re all about self-reference and
recursion, and because I actually have to give a talk at RubyConf
next weekend about abusing self-reference, and because parent nodes
aren''t considered harmful in my own world, I give you:
http://www.codinghorror.com/blog/archives/000982.html
I think it manages to somehow be both on- and off-topic at the same