I'm trying to use a snapshot of the upcoming 0.25 release on nontrivial
manifests for the first time, and I'm having some problems. Specifically,
I'm using the stand-alone 'puppet' executable, and find that it seems to
ignore the --modulepath option. Or, for that matter, the modulepath
setting
Larry Ludwig wrote:
Go back into your config and make sure emailing is re-enabled. I'm
not sure if something was changed globally in our redmine config.
James any idea?
The mailings don't go out to the puppet-b...@googlegroups.com mailing
list (which I subscribe to). There's nothing
Evan Hisey wrote:
I think you should have
class myclass ($passwd = 111) {
file {
this syntax is completely new to me, where is it documented?
thanks and cheers pete
It is document under variable scope in the puppet language guide. The
short version or rule of thumb I use is
David Schmitt wrote:
A possible workaround would be a puppet function which takes any number
of arrays and returns their concatenation (or (distinct) union).
Shameless plug: I have such a function in my 'nsc-puppet-utils' module
at http://www.nsc.liu.se/~bellman/nsc-puppet-utils.git. :-)
Allan Marcus wrote:
This has probably been discussed, but I would like an exec to only be
executed if a facter variable is true. Seems there are two ways of
doing this, but I can only get the if way to work.
# $lanl_sav_defdate is a custom fact
# make sure the live update file is
Chris Blumentritt wrote:
I am trying to manage ip address aliases and I cannot come up with a
good strategy. I have three webhead servers that are balanced via a
hardware load balancer. I have a define that will be setting up website
config on each server and one piece I need to sort
James Turnbull wrote:
Then have a look at piping the results of one of the reports (or
designing your own report - they are very extensible) to something:
They may be very extensible, but they aren't very well documented, so
you need to be at least a couple levels higher on Puppet wizardry
Jan Werner wrote:
eh. while writing the things above, i'd propably found a solution:
node definitions says: $listenif = eth0
now the magic class comes to it's action and has the following code:
case $listenif {
eth0: $listenip = $ipaddress_eth0
eth1: $listenip = $ipaddress_eth1
tun0:
Paul Lathrop wrote:
While it may seem clean to you, it doesn't map very well into Puppet.
You can't just have a require hanging out like that in the middle of a
define, just for example. Here's what I'd do (again, not really
understanding the key and keystore here):
[...]
key {
key1:
David Schmitt wrote:
Thomas Bellman wrote:
Haven't you just shifted around the problem? You still have an array
that you need to process each element of, only it is now a list of
keystores per key, instead of a list of keys per keystore.
The actual execution is always procedural (either
paul matthews wrote:
I've had a trawl through the archives and on the wiki and could not see
any reference to this but has any one done any work on provisioning of
xenserver vm's via puppet? If not, I'll look to create something and
report back
You mean defining Xen guests (domU) on a Xen
would like to not have to edit puppet.conf at
all to add or remove environments. Being able to configure a wildcard
environment in puppet.conf would be nice.)
/Thomas Bellman
--~--~-~--~~~---~--~~
You received this message because you are subscribed
David Schmitt wrote:
Peter Meier wrote:
it looks like memory is somehow a special variable (dunno why), but if
you don't name your variable memory, it works.
$memory is a fact containing amount of memory on the client.
No, it isn't. At least not a fact that facter (version 1.5.5)
I tried to use a Puppet variable named $memory and access it from
a template, like this:
$memory = 4711
file {
/tmp/test.txt:
content = inline_template(memory = %= memory %\n);
}
One would think that my file would contain memory = 4711 after that,
but
RijilV wrote:
Yeah, this is an old and know issue (unfortunately).
Original bug report:
http://projects.reductivelabs.com/issues/86
You can work around it with a hackish exec:
exec { mkdir -p /usr/share/openvpn/easy-rsa/2.0/keys: }
then tack that exec as a require to your file
Rene wrote:
I think this could be nice to do. For clusters (where every node
should have the same entries) it would ease the handling.
If so, how do you manage it? Static file, template, augeas, other?
On the Beowulf clusters where we run Puppet, we use a template. Since
we want over 150
schickb wrote:
I'd like to have the client specify their own node names. Actually,
what I really want is for clients to specify a node type. In other
words, I don't care what the machine or domain name is... I just want
to know the purpose of the node. Is a compute node or a database
node,
Trevor Vaughan wrote:
Interesting, this still seems...odd, but it should work, though I'm
still skeptical of using a cipher versus a true one-way hash.
The normal Unix crypt(3) method uses a variant of DES to make a one-way
hash. Basically, you use the password as the key to encrypt a
Nigel Kersten wrote:
Honestly, you just want to put everything in modules if you're using
environments, and not use fileserver mounts outside of modules.
But not those that you use for plugins (custom facts and custom types).
You will only get confused if you try to put them into
Keith Edmunds wrote:
You can depend on a class:
require = Class[thatclass],
before = Class[thatotherclass]
But can I cause a module (or class) to depend on a class? If so, I can't
find the correct syntax.
No. You need to let individual resources within that class or module
Keith Edmunds wrote:
Is it possible to make a module a dependency?
We have a base module that contains packages, configurations, etc, that
should be processed before other modules, and I'm looking for a way of
enforcing a dependency on everything in the base module without having to
Kyle Cordes wrote:
At the risk of being too far offtopic here on the Puppet list: I
wonder if there are, or will be, any wide-use distributions that work
differently, that update incrementally rather than a whole release
at a time. I imagine a world where I installed once and never upgraded
the service type doesn't use the init
script to check the service's status. Instead it look in the process
table for a process named iptables, and if it doesn't find it, it
will assume the service is stopped.
You need to specify 'hasstatus = true' for it to work the right way.
/Thomas Bellman
the --noop option:
# cat test.pp
node kumiko
{
file { /tmp/foobar: content = gazonk; }
}
# puppet --noop test.pp
notice: //Node[kumiko]/File[/tmp/foobar]/content: is absent, should be
gazonk (noop)
/Thomas Bellman
command, I'd suggest the OP to try
using that.
/Thomas Bellman
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkl0pisACgkQDGpP8Cv3aqJFgQCfTCRwg5gsof0okMR4KlHA79Sn
DnAAni3HgyxNenj1U7Nw6JxIQFvFdses
=X
David Lutterkort wrote:
On Tue, 2008-12-16 at 09:52 +0100, Thomas Bellman wrote:
1. Is it possible to specify what lens to use for editing a
certain file? Can I for instance tell it to use the sshd lens
to edit an sshd config file in a non-standard place?
Add the directory
I'm reading about Augeas to see what can be done with it, and
with the new 'augeas' resource type in 0.24.7. So far I have
only played using augtool, not the Puppet integration, but I
have a few questions:
1. Is it possible to specify what lens to use for editing a
certain file? Can I for
Xavier Beaudouin wrote:
Assuming I have eth0 given by a dhcp I'd like to setup it to static
ip... and
eth1
eth2
eth3
to another IP as well.
For example facter gave me ipaddress = 172.16.20.11 http://172.16.20.11
so eth0 will have 172.16.20.11 http://172.16.20.11, with gateway
Arnau Bria wrote:
In the example I have notify and subscribe, but I've been playing with
only one, with only the other and both, and ALWAYS exec yaim_conf is
executed.
You are missing the refreshonly parameter to the exec type.
(Nice to see other LCG sites using Puppet, by the way. :-)
environment variables,
if you want to trigger on something else on the machine.
/Thomas Bellman
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to puppet-users
Marcin Owsiany wrote:
On Tue, Nov 04, 2008 at 06:03:24AM -0800, Jeff wrote:
How do I reference the values of the array in this block:
notify { [bin, etc, lib, man, src, tmp, var] :
message = jeff: $name
}
i.e., what do I use in place of $name?
As far as I know, foo { [a, b, c]: } is
101 - 131 of 131 matches
Mail list logo