two Exec{}'s, and then a final Exec{} that disables the repo
again, and depends on everything else happening first. Ick
On Mon, Aug 15, 2011 at 11:17 AM, Sans r.santanu@gmail.com wrote:
Dear all,
Is there any way to enable a particular yum-repo (like: yum --
enablerepo
Dear all,
Is there any why to get the list of the nodes are currently being
managed by puppet? I know that I can do that looking in the $vardir/
ssl/ca/signed directory but i was wondering if puppet master itself
provides some mechanism. I'm running v2.6.6. Cheers!!
--
You received this message
Dear all,
How can i restart a service on the agent [only] if the associated
configuration file is changed. e.g. if I change the configuration in
ntp.conf, I like to restart the ntpd as soon as the changes are
detected and applied. Is there a way of doing that? Cheers!!
--
You received this
Dear all,
Can any one explain this please?
[root@puppet puppet]# puppet master --verbose
#
[root@puppet puppet]# service puppetmaster status
puppetmasterd (pid 1876) is running...
but the init.d script reports as it's not running:
[root@puppet puppet]# /etc/init.d/puppet status
puppetd is
Thanks to all for replying; going through the docs. cheers!!
--
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@googlegroups.com.
To unsubscribe from this group, send email to
Thanks Dan, for the link, shall try that,
puppet dashboard is seems to be a nice thing; thanks for that as well.
Cheers!!
--
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@googlegroups.com.
To
Dear all,
As in the title, how do I add some extra lines in a existing file and
check every time for its presence? I just don't want to copy over the
existing file for some good reason (system files etc.).
Any idea how should I do that? cheers!!
--
You received this message because you are
I [found and] started looking in the Augeas module - but looks like
there are some advantages as well. S, what's the best options (/
suggestions) we have? Basically I wanna add lines in the file like /
etc/sysctl.conf, /etc/my.cnf etc. Cheers!!
--
You received this message because you are
I've added a custom fact, namely num_cpu, to Facter and
pluginsync'ing to distribute to the clients. Now I want to write a
template (as the num_cpu differs from client to client) file, which
will generate a file like this, in return:
$restricted myserv.ac.uk
$ideal_load 8.5
$max_load 9.6
for
the conversion to integer - as I'm not sure
what the input data looks like :-)
Read the docs to get the full picture:
http://docs.puppetlabs.com/guides/templating.html
ken.
On Wed, Jun 15, 2011 at 12:22 PM, Sans r.santanu@gmail.com wrote:
I've added a custom fact, namely num_cpu, to Facter
Hi Ken,
It was my fault - in stead of doing .to_i I did .chomp.to_i,
which actually messed things up.
working just fine now. Cheers!!
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to
{ '/var/torque/mom_priv/config':
ensure = present,
content = template(...)
}
}
On Mon, Jun 13, 2011 at 8:00 PM, Sans r.santanu@gmail.com wrote:
Well, the file I mention is actually one of the Torque (formerly PBS
batch system) config file (location: /var
Dear all,
I see that writing a custom-fact with single line of command is not
that tough, like this:
Facter.add(num_core) do
setcode do
%x{/bin/grep siblings /proc/cpuinfo | uniq | cut -d -f
2}.chomp
end
end
But that's
, Sans r.santanu@gmail.com wrote:
Dear all,
I see that writing a custom-fact with single line of command is not
that tough, like this:
Facter.add(num_core) do
setcode do
%x{/bin/grep siblings /proc/cpuinfo | uniq | cut -d -f
2
Very useful info Ken - those are the couple of things I was actually
looking for. It'll certainly get me going.
One more thing, how do I do if..else.. thing in there? Like:
if [ $n1 == $n2 ]; then
echo something here
elif [ $n2 == $(($n1*2)) ]; then
echo something else here
.
Hi Dan,
Thanks for the link. That 's probably the next thing I'd be looking
for. Very useful information for the type of things I'm trying to do
here. Cheers!!
On Jun 14, 1:21 pm, Denmat tu2bg...@gmail.com wrote:
Is this what your after?
On Jun 14, 2:48 pm, Patrick kc7...@gmail.com wrote:
1) Why not use puppet to decide if Torque should be installed in the first
place? Then you can use that logic to decide if the file should be
created/put in place?
I can't: torque is a vital part of the middleware, which needs to be
Google helped me get stared and I did something like this:
if n1 == (n2 * 2)
# do this
elsif n1 == n2
# do that
end
which appears to be working. Is then optional? cheers!!
On Jun 14, 3:41 pm, Ken Barber k...@puppetlabs.com wrote:
ruby != bash :-). You need a ruby book if you
On Jun 14, 6:12 pm, Matthew Black mjbl...@gmail.com wrote:
I haven’t used torque or yaim but what you want to do in a fact is something
like this to determine installation.
if File.exists?('/path/to/config')
Does it work for directory as well?
-San
--
You received this message because you
Any suggestion from anyone else? Is there a way to check if a
directory (or file) already exists, then do something in Puppet?
Cheers!!
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to
Well, the file I mention is actually one of the Torque (formerly PBS
batch system) config file (location: /var/torque/mom_priv/config),
which is auto generated by yaim but the thing is: if the file is
already there yaim won't touch it. Let's just say that I don't want
yaim to create this file (it
Thanks kc! I probably didn't myself clear. I don't wanna create the the
config directory, in stead,* if it exists*, then make sure config file is
present with those info. Cheers!!
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To view this
Dear all,
This is my script in the bash: how can I put it into puppet?
#!/usr/bin/env bash
CONF_DIR=/var/mom_priv
CPU_COUNT=`cat /proc/cpuinfo | grep siblings | uniq | cut -d\ -f2`
ideal_load_var=$(echo scale=2; ${CPU_COUNT}+0.5 | bc)
max_load_var=$(echo scale=2; ${CPU_COUNT}*1.2 | bc)
if [
Hi Steven and vagn,
I almost forgot about ldconfig, I had a look now and ldconfig doesn't
appear to be working in this particular case. It's conventional for
the so_name to be the name+major version of the library (although, not
universally done), so ldconfig will create a link like foo.so.1 -
Thanks Rakhesh, looking into it. Cheers!!
On May 1, 8:14 am, Rakhesh Sasidharan pup...@rakhesh.net wrote:
In that case my suggestion of yesterday should do the trick -
Have a Exec resource with a command to link the files above, but which
runs only if the file does not already exist.
Thanks Dean, I got it now. It was really silly that I was thinking $
is a special notation used by Puppet for domain name.
All working now. Cheers!!
On Apr 29, 12:58 pm, Dean Wilson dwil...@unixdaemon.net wrote:
That regex is saying, match farm0 at the start of a string and then only
match
Dear all,
I'm trying to do this. Say for example, I want this link: liblcgdm.so
- liblcgdm.so.1.8.0 to be present on the client only if lcgdm-
libs-1.8.0-1sec.sl5 is already listed. I already have this to create
the link:
file {
'liblcgdm.so':
ensure = symlink,
name =
Hi Gabriel,
I overlooked the nagios::target class. Thanks for pointing that out.
Cheers!!
On Apr 28, 5:14 pm, Gabriel Filion lelu...@gmail.com wrote:
Hello,
Judging from the manifests that the OP sent, the HTTP server is run on
the nagios server, not on each node: the nagios class is
Hi Gabriel,
I overlooked the nagios::target class. Thanks for pointing that out.
Cheers!!
On Apr 28, 5:14 pm, Gabriel Filion lelu...@gmail.com wrote:
Hello,
Judging from the manifests that the OP sent, the HTTP server is run on
the nagios server, not on each node: the nagios class is
Dear all,
According to the Puppet doc, I used this:
node /^farm0\d+$/ inherits workernode {
}
in the node.pp to match any host like farm001.example.com but I get
error on the client nodes:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find node
Just one question:
On Apr 26, 9:29 am, Fransua33 moch...@gmail.com wrote:
[ ]
$servicelist=[nagios, httpd]
service { $servicelist:
ensure = running,
hasstatus = true,
hasrestart = true
}
Do
Thanks Felix, for the explaining this to me. I'm still learning Puppet
and making mistakes. Although I used ensure = purged for httpd, I
wanted to know why this wasn't working. Thanks again. Cheers!!
--
You received this message because you are subscribed to the Google Groups
Puppet Users
Dear all,
Say for example, this is the package, already installed on the
system:
# rpm -qa | grep lfc-libs
lfc-libs-1.8.0-1sec.sl5
lfc-libs-1.8.0-1sec.sl5
and I want a symbolic: liblfc.so - libdpm.so.1.8.0 in /opt/lfc/
lib, for example. Is it possible? Cheers!!
--
You received this message
Thanks John and others.
For my case, I definitely know I don't need httpd and any packages
(or updates) that depend on httpd, so ensure = purged should work
for me, in this particular occasion.
However, I also tried this (I posted this before in this thread abut
can't see that anymore):
package
Thank you guys!! So many possibilities, I love that.
BTW, can it be protected against the current version number, so that
if the future version breaks the link it'll be automatically created?
Cheers!!
--
You received this message because you are subscribed to the Google Groups
Puppet Users
On Apr 18, 2:22 pm, jcbollinger john.bollin...@stjude.org wrote:
[ . ]
1) The dependent package is managed by Puppet. In this case, you must
ensure it absent too, else you cannot achieve a consistent
configuration. You will either get Puppet failures or flip-flops
between whether
On Apr 19, 2:48 pm, jcbollinger john.bollin...@stjude.org wrote:
If I understand you correctly, how do one know about the packages that
depend on a certain package?
Well that's part of a deeper problem, isn't it? If you don't know
what packages you might end up removing or why they're
On Apr 18, 6:11 pm, jcbollinger john.bollin...@stjude.org wrote:
[rpmforge-extras]
name = RHEL $releasever - RPMforge.net - extras
baseurl =http://apt.sw.be/redhat/el5/en/$basearch/extras
enabled = 0
protect = 0
If the file exists before the Puppet run, then Puppet will not split
On Apr 16, 2:36 am, Patrick kc7...@gmail.com wrote:
ensure = absent uses rpm -e' to remove a package, which is a
problem for the packages with related dependencies. Is there any way
to use yum remove to do that? Cheers!!
It's been too long since I use rpm. Are you saying it refuses to
Dear all,
How can I create a yum repo like this?
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
[rpmforge-extras]
name = RHEL
Thanks Robb, for the tips. Changed all my module/class names according
to the recommendation. Cheers!!
On Apr 14, 11:39 pm, Robb robb.wago...@gmail.com wrote:
Also, watch out for casing of your module name. It appears that
'mySudo' works, but it is not recommended.
Recommended naming for
Dear all,
It's probably a newbie question again: What to do to ensure something
is not running or not installed and things like that as oppose to
ensure = installed, ensure = running, etc. ? e.g. if I want to
make sure that http is not running on certain clients - any way of
doing that?
Thanks
Thanks Patrick!
Where can I get the list of attributes and their predefined values?
Cheers!!
On Apr 15, 9:12 am, Patrick kc7...@gmail.com wrote:
For the package example, I'd try ensure = absent. I think I remember that
works.
For the httpd example, I'd try just ensuring that the httpd
Dear all,
Apparently I'll be installing Puppet on a cluster of 300+ nodes that
divided into four different types. How do I apply a specific module/
class to a specific client-group? For example, if I want to apply
my_module_1 to 50 or so odd machines and my_module_1 + my_module_2
to 80 machines,
On Apr 15, 12:09 pm, Russell Howe rh...@moonfruit.com wrote:
You can pattern match on the hostname in the node definition...
That could be a potential problem in future but for the time being,
that should work for me. So, how do I pattern-match host-names like
farm001 to farm110? Is there
On Apr 15, 12:46 pm, Felix Frank felix.fr...@alumni.tu-berlin.de
wrote:
So your node classes are determined by arbitrary ranges in their integer
naming? Really?
I hope by node classes you mean type of nodes. It's a bit
complicated: The cluster is shared for Grid and the local jobs. Grid
jobs
Thanks Brice, for the link.
Just had a quick look and I yet to understand how that external_nodes
think works. Cheers!!
On Apr 15, 1:34 pm, Brice Figureau brice-pup...@daysofwonder.com
wrote:
I think the best practice is to use an ENC[1] (external node classifier)
like the Foreman or Puppet
Dear all,
I'm trying to create a module for autofs, and I need to create a
file, say auto.mymounts, on the clients with these:
alice -
hard,intr,ro,nosuid,rsize=8192,wsize=8192,tcp,noatime,nfsvers=3
serv02:/experiment-software/EXP_SL5/alice
atlas -
I think you were pretty much right in this regard. Just found this in
the syslog:
DEPRECATION NOTICE: Files found in modules without specifying
'modules' in file path will be deprecated in the next major release.
Please fix module 'd_services' when no 0.24.x clients are present
Cheers!!
On Apr
On Apr 15, 9:37 am, Martijn Grendelman mart...@iphion.nl wrote
On Apr 15, 9:12 am, Patrick kc7...@gmail.com wrote:
For the package example, I'd try ensure = absent. I think I remember
that works.
ensure = absent uses rpm -e' to remove a package, which is a
problem for the packages with
Hi there,
Just started using Puppet since yesterday, so a totally newbie
question. I tried to search the answer by myself but none of the
suggestions actually worked. This is how my modules is laid:
|-- modules
| |-- mySudo
| | |-- files
| | | `-- sudoers
| | `-- manifests
| |
with or without
modules in it. Are you seeing otherwise? I'm using puppet-
server-0.25.5, on SL5. Cheers!
On Apr 14, 1:25 pm, Felix Frank felix.fr...@alumni.tu-berlin.de
wrote:
On 04/14/2011 11:36 AM, Sans wrote:
Hi there,
Just started using Puppet since yesterday, so a totally newbie
201 - 252 of 252 matches
Mail list logo