Displaying 20 results from an estimated 3000 matches similar to: "Module Patterns part 1 -- The Puppet Semaphor"
2007 Jul 21
5
Some ''in service'' questions
Hi,
Just a quick query about some things that crop up when I run ''puppetd
--test''. Every time I run this command I always see the following
output, which I think is strange as the ''man'' package has been installed
previously and the firewall service is definitely running. Has anybody
got any suggestions as to why puppet thinks it needs to install the man
2007 Jul 12
11
Problem with "defined" keyword
Hi,
I''m running Puppet 0.23.0 on my servers, and i got something like this:
In a classa.pp file (included in site.pp):
class A {
file { "test1":
...
}
}
In a classb.pp file (included in site.pp):
class B {
file { "test2":
...
}
if defined(File["test1"]) {
... do things ...
}
if
2006 Oct 06
8
VServer Support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi *!
I''m currently working on integrating VServer support into puppet. I have
uploaded a prototype for managing interface configuration to the Cookbook at
http://reductivelabs.com/cookbook/VServerRecipes
and would very much appreciate feedback about style and functionality.
Regards, David
- --
- - hallo... wie gehts heute?
- - *hust*
2007 Jan 14
7
Delayed detection of updates
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi *!
Has anybody a fix/workaround for this beahaviour? My Service[munin-node] is
subscribed to the timestamp of a directory containing config-snippets like
this:
{{{
file{"/etc/munin/plugins": checksum => mtime, }
service{munin-node: subscribe => File["/etc/munin/plugins"], # ...
}}}
When adding new snippets to the
2007 Feb 02
2
Subscribe to multiple files
Hello,
I am attempting to reload both nfs and nfslock when changing my exports configuration file.
Unfortunately, I am unable to discern the correct syntax for making a single object subscribe to multiple objects.
I have tried:
=> [nfs nfslock]
=> [nfs, nfslock]
=> [[nfs],[nfslock]]
=> [[nfs] [nfslock]]
and none of them seem to work.
Any assistance would be appreciated.
Thank
2007 Jul 11
3
Strange problem with exported ressources
Hi there,
I have a strange problem with the exported ressources in the munin
module I wrote.
See: http://mail.madstop.com/pipermail/puppet-users/2007-June/003179.html
For some reason it stopped working.
On the munin::host I get the error that:
err: Could not retrieve configuration: Exported resource
File[munin_def_XY_4949] cannot override local resource
The munin::host is also a
2007 Apr 04
5
sshkey
Hello all,
How are you using the sshkey type? Are you using it to list hosts and keys in a class that nodes include in order to manage /etc/ssh/ssh_known_hosts or something else? How does any of this relate to the sshrsakey and sshdsakey facts on the host? I read some stuff about this on the Virtual Resources page but it''s too vague for my simple mind and I''d be reluctant to use
2007 Mar 19
6
Last call for fixes: Releasing tomorrow
I think I''ve got every fix except one in that''s going to make it into
grover, which I''ll hopefully be releasing tomorrow. I plan on adding
Tim Stoop''s patches for home directory management (#432), but
everything else is getting pushed to the next release at this point.
I''ve fixed all of the major bugs, or at least I think I have. If
2007 Mar 20
2
0.22.2 bug?
Hi,
I''ve just installed 0.22.2 and believe I''ve discovered a bug (or oversight).
I have an exec like this:
exec { "change-to-local-mirror":
command => "sed -i ''s#\(KERNEL_REPO.*=\).*#\1
$mirror#'' ${rulefile}",
path => "/usr/bin:/usr/sbin:/bin",
2007 Jun 29
2
DesignPatterns part 2: humane class names with namespaces
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear list!
In an effort to get feedback and spread the word, here follows the second
article about possibilities to structure manifests. These Design Patterns are
more general than the typical Puppet Recipie and will receive a own page on
the wiki when I collect enough[1] material.
To the meat: humane class names with namespaces
Class names
2007 Feb 20
5
Recipe for Apache2 on Debian (Etch)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Tim, *!
Thank you for posting your nice apache2 recipe to the wiki! It''s really good
to see how others make things happen and a good example for others.
One little thing though caught my notice because I''m currently making the same
naughty thing on Simple Text Recipes. There is no ensure attribute. Since you
already have done
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 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 Apr 12
14
how to make puppet a killer app
I''ve been thinking about how to make Puppet a killer app, and I think there
is one specific thing that could be done to help make that happen:
People using Puppet now to consistently state what they *really* wish Puppet
could do for them -- the recent thread around Puppet on Windows is in that
vein, but it''s not specific enough. For example, I''d like to know what
2007 Apr 18
3
advice on pseudo iteration needed (mailman recipe)
hello list,
what i want to archive is something like this:
include mailman
manage_mailing_list {"chatml":
password => "asdfasdfasdf",
subscribers => ["darks@fet.org",
"hand@dampf.de",
"i.am.cool@yoo.org"
]
}
which should create the
2007 Feb 09
12
Module Organization
This is in reference to David Schmitt''s writeup [1]
I like that writeup a lot; I just had a few comments/clarifications:
* Namespaces: For now, we just use a flat namespace for modules, i.e.
you can''t have modules within modules, and you always know that in a
fully qualified name ''foo::bar::baz'' that ''foo'' is the module name and
2007 Mar 27
8
using $name in default assignment within define?
I thought this made sense, but apparently I am mistaken:
define copyfile($owner = root, $group = root, $repo = "config",
$mode, $source = $name, $purge = false, $backup = false,
$recurse = false, $server = $servername) {
file { $name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,
2007 Mar 16
19
Terminology
Hello folks,
I''ve blended/updated the Glossary of Terms
(<http://reductivelabs.com/trac/puppet/wiki/GlossaryOfTerms>). It seems
the definition of "manifests" is a bit different amongst members.
Some people consider a "manifest" to be a configuration file written in
puppet, e.g. any .pp file. But at my organization, we''ve considered the
totality
2007 Apr 10
4
packaging, incremental configuration and puppet
im a new puppet user.
i need to handle a couple of scenarios in our deployment
1. i should be able to do incremental changes to certain class of nodes in
my infrastructure.
is it possible with puppet. i see in the puppet documentation that the
entire config is downloaded
to the client and then made sure that its in sync with that config. i would
like to have a base config
and then apply
2007 Feb 15
5
Problem with iptables && ensure => running
I''ve been seeing this for a long time now...
Got a class like:
<snip>
class iptables
{
package {
iptables:
ensure => latest
}
service {
iptables:
enable => true,
ensure => running
}
remotefile {
"/etc/sysconfig/iptables":
mode => 400,
source