Displaying 20 results from an estimated 10000 matches similar to: "Using case in class"
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 Feb 14
9
managing multiple files
How can I express the following in puppet?
$http_conf = "/etc/http/conf/httpd.conf"
$vhosts_conf = "/etc/http/conf/vhosts.conf"
@files = ("$httpd_conf", "$vhosts_conf")
foreach f (@files) {
file { "$f":
owner => root, group => root, mode => 664,
source => "puppet://$server/apache/$f",
}
2007 Apr 13
3
wildcard node name?
Can you wildcard a domain for a node name like the following?
node ''*.sub.example.com'' {
....
}
Thanks,
Kent
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 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 Apr 27
5
puppetd -v -o hangs
I''m having this issue where "puppetd -v -o" hangs (won''t return my
prompt) when starting a daemon I wrote. If puppetd is running as a
daemon a zombie process is created each time puppetd tries to start my
daemon. Puppet detects when the daemon is down and starts it just
fine. I''m using version 0.22.3 on RHEL 5.
Here''s the class. I''ve
2007 Feb 11
7
Could not find definition vico_network
I''m trying to manage network files on two nodes, "vico" and "backup."
The component "vico_network" below works fine.
define vico_network ($owner = ''root'', $group = ''wheel'', $mode = ''644'',
$cro_int = ''ne3'',
$carp0_skew = '''', $carp1_skew =
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
2007 Mar 30
7
subversion and /etc/puppet
I''m trying to come up with a way to manage /etc/puppet on the Puppet
server from my workstation. My idea was to place all of /etc/puppet
into subversion, check it out to my workstation, commit via ssh, and
then use a post-commit to update /etc/puppet. That way any time I
made a change in /etc/puppet it would be immediately updated and ready
for the next puppetd run. Problem is the
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 Aug 27
2
Puppet Documentation
I''ve been watching the thread where Luke is having to spend time
defending his position about documentation. Can we get off that?
From my perspective, Luke, I''m glad you have documented as much as you
have. I''m one of the few who have been a little stymied by what
documentation is available, but in no way do I believe berating you for
your lack of documentation is a
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
2008 Apr 02
1
service won't restart puppetd
I''ve got the following class that runs if I activate the repo in
/etc/yum.conf. If I run "puppetd -t" from the command line it will
restart puppetd fine. If I let the class run on it''s own as a deamon
puppetd does not restart. The puppetmaster on the other hand does
restart using either method. I ran the client in "--debug" but that
doesn''t seem to
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 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 Mar 13
11
N00B questions: How to dynamically set hostname in a config file . . .
Greetings -
I''ve just started testing Puppet and have a couple of questions:
1. Is there a way to dynamically change a configuraion file that is
sent to nodes?
For example, I want to modify /etc/hosts to have the hostname and ip
address set dynamically - the hosts file shoule look like:
12.34.56.78 node1.example.com
22.35.66.99 server1.example.com
But I don''t want to
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
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
2012 Jul 19
3
Problems granting privileges with puppetlabs/mysql
First off, I''m not sure if I should be asking questions about puppetlabs
modules here, if not, I apologise...
I''m trying to at least setup my mysql replication user through the mysql
module, but I seem to be unable to divine the correct way to do this. I''ve
tried a number of different variations, but my user doesn''t get the
repl_slave_priv on my user
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