I don't know what pbcopy is locate can't find it. Never heard of
it,
Yeah never mind - its a convenient Mac OS X tool for copying something
into the clipboard. Not critical.
but, after removing the rpm and wiping /var/lib/puppet and running
'locate puppet', I get:
(you really should use
What version of facter are you running btw?
You already answered that - never-mind :-).
ken.
--
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,
I'm guessing you get nothing when you try:
facter domain
?
What version of facter are you running btw?
Can you show the results of the following commands:
hostname
dnsdomainname
cat /etc/resolv.conf
Cheers.
ken.
On Tue, Sep 13, 2011 at 1:33 PM, Sans r.santanu@gmail.com wrote:
I know
:32 pm, Ken Barber k...@puppetlabs.com wrote:
I'm guessing you get nothing when you try:
facter domain
?
What version of facter are you running btw?
Can you show the results of the following commands:
hostname
dnsdomainname
cat /etc/resolv.conf
Cheers.
ken.
--
You received
I could be wrong about the cause actually ... I think its still a bug
though :-).
Let me take a closer look at the code and see if I can work it out.
ken.
On Tue, Sep 13, 2011 at 3:29 PM, Ken Barber k...@puppetlabs.com wrote:
Yep - that looks like a bug. The change was here:
https
Since this is urgent and we are in RC, I've raised a bug for you Sans:
http://projects.puppetlabs.com/issues/9457
ken.
On Tue, Sep 13, 2011 at 3:43 PM, Ken Barber k...@puppetlabs.com wrote:
Yeah okay I was close though :-).
if name = Facter::Util::Resolution.exec('hostname
Yeah this doesn't seem to be old versions of Puppet.
So from my other email ... can you show us the code where you are
doing your comparison for $puppetversion? I have a feeling I might
know what it is ... although I'm probably wrong ...
In fact - grep for 'puppetversion' in all of your puppet
So that is the only case where you are using the variable throughout
your entire code? I mean - ALL your code ... not just the one line you
are printing to the screen ...
ken.
On Tue, Sep 13, 2011 at 8:30 PM, Douglas Garstang
doug.garst...@gmail.com wrote:
On Tue, Sep 13, 2011 at 11:01 AM, Ken
13, 2011 at 8:34 PM, Ken Barber k...@puppetlabs.com wrote:
So that is the only case where you are using the variable throughout
your entire code? I mean - ALL your code ... not just the one line you
are printing to the screen ...
ken.
On Tue, Sep 13, 2011 at 8:30 PM, Douglas Garstang
Even using:
notify{${::puppetversion} on ${::fqdn}:}
Instead would be of interest ...
ken.
On Tue, Sep 13, 2011 at 8:46 PM, Ken Barber k...@puppetlabs.com wrote:
The reason why I say this - is because I can replicate this problem myself
with:
node default {
$puppetversion = 0.25.5
statement ...
ken.
On Tue, Sep 13, 2011 at 9:01 PM, Douglas Garstang
doug.garst...@gmail.com wrote:
On Tue, Sep 13, 2011 at 12:46 PM, Ken Barber k...@puppetlabs.com wrote:
The reason why I say this - is because I can replicate this problem myself
with:
node default {
$puppetversion = 0.25.5
/domain.rb file that you were talking about?
Cheers,
San
On Sep 13, 5:38 pm, Ken Barber k...@puppetlabs.com wrote:
Since this is urgent and we are in RC, I've raised a bug for you Sans:
http://projects.puppetlabs.com/issues/9457
ken.
--
You received this message because you are subscribed
Good to hear. That fix should be in the next rc.
ken.
On Tue, Sep 13, 2011 at 10:46 PM, Sans r.santanu@gmail.com wrote:
Done!!
Work like a charm. thanks.
-Santanu
On Sep 13, 9:25 pm, Ken Barber k...@puppetlabs.com wrote:
Yeah - try this copy instead if you can:
https
...@gmail.com wrote:
On Tue, Sep 13, 2011 at 3:21 PM, Douglas Garstang
doug.garst...@gmail.com wrote:
On Tue, Sep 13, 2011 at 1:06 PM, Ken Barber k...@puppetlabs.com wrote:
Hmm ... well can you try using ${::puppetversion} ...?
Adding this:
notify{xxx = ${::puppetversion
I think this may be totally related. We're using mongrel... AND,
running the puppet master in standalone mode as you suggested yields
this now on the client:
Sep 13 16:49:06 hproxy11 puppet-agent[27311]:
(/Stage[main]/Puppet::Setup/Notify[xxx = 2.7.3 ...]/message) defined
'message' as 'xxx
Thanks for your help. Unfortunately, I can't tell you much about the
setup. I've only ever done this with passenger as well, and the person
who did set it up has
left the company.
I'm not really sure if you should raise a new ticket on this one - or
add an addendum to this:
I'm launching puppet with 'service puppet restart'.
Do you get any different results if you run it like:
puppet agent -t
Instead of using that service?
Are you absolutely certain there isn't a stray ruby process running
your old 0.25 puppet agent?
Well, I can't seem to work out what's going
On Client:
service puppet stop
yum clean all
rpm --erase puppet
rpm --erase facter
rm -fR /var/lib/puppet
yum upgrade puppet
On server:
puppetca --clean hproxy11.h.foo.com
On Client:
service puppet start
Where are the RPM's from that you are using for both 0.25.5 and 2.7.3?
I wonder
Where are the RPM's from that you are using for both 0.25.5 and 2.7.3?
I wonder if this can be replicated elsewhere ... what OS distribution
and version are you using?
If you can let me know this info I can probably try to replicate.
One thing was troubling me ... and its probably a long
'notice' is a function. It runs on the server. Try using the 'notify'
resource instead.
ken.
On Sat, Sep 10, 2011 at 12:24 AM, Douglas Garstang
doug.garst...@gmail.com wrote:
Maybe it's because it's Friday, but I'm suddenly not sure if I am
going crazy or not...
I have a server running
What does:
puppet -e 'notice($puppetversion)'
Show on the _client_? I know its probably obvious but you never know.
ken.
On Sat, Sep 10, 2011 at 12:39 AM, Douglas Garstang
doug.garst...@gmail.com wrote:
On Fri, Sep 9, 2011 at 4:36 PM, Ken Barber k...@puppetlabs.com wrote:
'notice
puppet -e 'notice($puppetversion)'
Show on the _client_? I know its probably obvious but you never know.
Actually, it's not obvious. I didn't know you could do that. Never
seen it documented anywhere...
puppet help apply
(I really should use puppet apply these days as that way of using -e
I assume you mean't to use notify(), not notify{} ?
No - he meant what he said. Its a resource for client notifications.
Give it a try can't hurt.
Can you send your puppet.conf from both boxes (via pastie or
somesuch)? Maybe there is something there. I'm tempted to suggest
running the
Out of morbid curiosity - how are you running the puppet client on
that client box? You aren't running an agent are you and using kick or
some such?
On Sat, Sep 10, 2011 at 12:56 AM, Ken Barber k...@puppetlabs.com wrote:
I assume you mean't to use notify(), not notify{} ?
No - he meant
Hi Bjørge,
The clue is in looking at the code for the 'fqdn' fact:
snippet
host = Facter.value(:hostname)
domain = Facter.value(:domain)
if host and domain
[host, domain].join(.)
/snippet
And drilling into the 'domain' fact:
snippet
if name =
The first two could be solved as one using 'hostname --fqdn', meybe even
the third one.
Perhaps the methodology chosen was more compatible with multiple UNIX
operating systems. For example hostname --fqdn doesn't seem to work on
Mac OS X. A lot of facter code may appear quirky on the surface
The user resource won't clean up home directories directories for you.
In fact there was a feature request to rename the attribute for this
very reason:
http://projects.puppetlabs.com/issues/7002
It was originally pegged in the original managehome feature request
many years back but never made
If you look at this example:
I have a Ruby class in nagios module - it's located in nagios/
manifests/ssa_nagios_checks.rb
and looks like this
hostclass :ssa_nagios_checks do
...
end
In nagios/manifests/init.pp I have
class nagios::server {
...
include ssa_nagios_checks
...
}
'],
:service_description = x['doc']['desc'],
:use = 'generic-service',
:check_command = check_command,
:require = File[#{nagios_confdir}/app_alerts/ssa/
services] )
end
end
Thanks
Alex
On Aug 11, 9:13 pm, Ken Barber k...@puppetlabs.com
Is your config facts_terminus=yaml for a reason? Usually its 'facter'.
ken.
On Thu, Aug 11, 2011 at 10:59 PM, John T. Guthrie jguth...@book.com wrote:
Hello all,
I am running puppet 2.7.1 with mongrel and an apache proxy. I have been
seeing an issue where it appears that the puppetmaster is
You need to add a 'subscribe' or 'notify' parameter to your server or
file resource (respectively). For example:
http://docs.puppetlabs.com/references/stable/metaparameter.html#notify
There is an example in the puppetlabs-ntp module:
If you want the sysv equivalent to:
service puppetmaster status
Its:
/etc/init.d/puppetmaster status
You used the agent's one which is not going to be the same service:
[root@puppet puppet]# /etc/init.d/puppet status
ken.
On Wed, Aug 10, 2011 at 1:52 PM, Sans r.santanu@gmail.com wrote:
Hi Scott,
I think its fair enough thing to expect it to do something like this ...
Incidentally, there is already a feature request for this:
http://projects.puppetlabs.com/issues/3789
Do you want to watch/vote for it ...? Or you can always provide a
patch ... we won't complain :-).
ken.
On
Hi Steve,
Did you add pluginsync = true on the client? Is it in the [agent] or
[main] section?
What happens when you just do:
puppet agent -t --pluginsync
(obviously inserting any other switches you normally require)
ken.
On Wed, Aug 10, 2011 at 8:22 PM, Steve some1youk...@gmail.com wrote:
On Aug 10, 12:25 pm, Ken Barber k...@puppetlabs.com wrote:
Hi Steve,
Did you add pluginsync = true on the client? Is it in the [agent] or
[main] section?
What happens when you just do:
puppet agent -t --pluginsync
(obviously inserting any other switches you normally require)
ken
Hey Oliver :-).
* using class introspection, generate class interface YAML that is
read and used by our ENC instead of using a separate configuration
specification, store this with the versioned Puppet classes.
I guess resource_type is your friend in this case. Info should be
available in
Try:
notice($t['given'])
Or:
notice(${t['given']})
Surrounding the var in ${} within quotes helps the
parser/interpolation find the edges of your var declaration.
ken.
On Thu, Aug 4, 2011 at 2:09 AM, Douglas Garstang
doug.garst...@gmail.com wrote:
Well, this is weird...
If I have this yaml
Take a look at Jordan Sissel's FPM software if you want a cheap way of
making a deb.
Ken.
On Aug 1, 2011 7:10 PM, Daniel Pittman dan...@puppetlabs.com wrote:
Yup. This is totally the right way to do that.
If you don't want to, I would suggest that you compile once, tar up
the content, and
Because about one in five of them is not actually *finished*
So currently the incomplete functions are:
date
is_float
is_integer
is_numberic
is_valid_domain_name
is_valid_ip_address
is_valid_mac_address
is_valid_netmask
rand
squeeze
If anyone wants to help complete these - I'm happy to take
IMHO I don't think I want nested facts to work :-). The evaluation
order alone is trouble some ... ie. the inner fact wouldn't get added
until the enclosed fact is evaluated ... doesn't sound like something
you would want in ordinary circumstances :-). Remember sometimes fact
information is gather
Have you looked at tags?
http://docs.puppetlabs.com/references/stable/metaparameter.html#tag
http://docs.puppetlabs.com/references/stable/function.html#tag
It allows you to tag parts of your content, and selectively run it
with --tags tag_name on the command line.
Classes are already tagged
, Jul 11, 2011 at 10:59 AM, Ronen Narkis nark...@gmail.com wrote:
Just did,
Thank you!
Ronen
On Mon, Jul 11, 2011 at 1:50 AM, Ken Barber k...@puppetlabs.com wrote:
Hi Ronen,
Making the rules persistent is a matter of running iptables-save
afterwards. If you drop this in your top scope
Among the modules iv tried:
https://github.com/puppetlabs/puppetlabs-firewall
What was the problem you had with this module?
ken.
--
Join us for PuppetConf, September 22nd and 23rd in Portland, OR:
http://bit.ly/puppetconfsig;
--
You received this message because you are subscribed to
Hi Ronen,
Making the rules persistent is a matter of running iptables-save
afterwards. If you drop this in your top scope it should work:
exec { persist-firewall:
command = $operatingsystem ? {
debian = /sbin/iptables /etc/iptables/rules.v4,
/(RedHat|CentOS)/ = /sbin/iptables
So ...
servermd5 = YAML.load(apitruthtag(metadata)).ivars[checksum] #
When executed from a puppet run I tells me that ivars is undefined.
What does the output of apitruthtag(metadata) show you between each
run in facter, irb and puppet? Can you output each to a file and
analyze the difference?
The reason we are doign this is to make sure that we have sufficient free
disk space on various mountpoints to actually run the application on the
server.
Oh - and your monitoring doesn't do this already?
So this is something I'd like to enforce (or ensure) as part of the
configuration.
You can add new entries using the 'host' type:
http://docs.puppetlabs.com/references/stable/type.html#host
For example:
host { myhostname:
ip = 1.1.1.1,
}
By itself, it won't remove existing entries (but there is a way to do
this as well using purging).
If you haven't read it already, there
If its a pure ruby provider, try running something like 'puppet agent
-t --pluginsync' on the server first, so it gets synced there. Then
try your client again.
The problem is your server isn't scanning your modulepath for types
... its expecting types to be in its own libdir first. Hence why an
can correct me on that.
ken.
On Thu, Jul 7, 2011 at 2:31 PM, JohnW boerma@gmail.com wrote:
Thanks Ken
That did the trick.
I was afraid I had to reinvent a wheel here, as I was a bit on a
deadline
John
On Jul 7, 2:50 pm, Ken Barber k...@puppetlabs.com wrote:
If its a pure ruby
Let me understand this correctly - you want to use the Puppet RAL
layer to interrogate data such as free space on a mount?
At the moment you can't use RAL data elsewhere in Puppet content ...
but you can use the RAL layer in your own code and in things like
MCollective using the ralsh plugin ...
'defined' might be what you are after ... something like:
class foo {
}
class { foo:
}
if defined(Class[foo]) {
notice(foo is defined)
} else {
notice(foo is not defined)
}
When you comment out the class { foo: } then the expression results
in a negative.
ken.
On Thu, Jul 7, 2011 at 5:26
notice: /Stage[main]/Nagios::Nrpe/Service[nagios-nrpe-server]/ensure: ensure
changed 'stopped' to 'running'
That looks like its trying to start it, not restart it. Do you get
this message each time you do a puppet run (even when nothing has
changed)? If so - you might need a valid 'status'
Use the pattern attribute, documented here:
http://docs.puppetlabs.com/references/stable/type.html#service
ken.
On Fri, Jul 8, 2011 at 1:18 AM, Joehillen joehil...@gmail.com wrote:
Yes, it says it every time. The actual process is called nrpe, so that
makes sense that it can't find it.
Try:
% if includernw == 1 % include /etc/dhcp/dhcpd.rnw;% end %
Note the '==' :-).
ken.
On Wed, Jul 6, 2011 at 2:45 PM, Jonathan Gazeley
jonathan.gaze...@bristol.ac.uk wrote:
I have a puppet class called dhcp which sets up the daemon and installs a
base dhcpd.conf.
I have also have
FYI - for performance I would upgrade Puppet (there were performance
improvements in newer revisions), and use something like
Apache/Passenger as a delivery mechanism.
One question - does this happen each time you run it on the same box?
If there is no new changes - is the performance still
Whats wrong with using chained resources?
class x {
file { a:
} -
exec { b:
} -
exec { c:
} -
exec { d:
}
}
ken.
On Tue, Jul 5, 2011 at 4:40 AM, vagn scott vagnsc...@gmail.com wrote:
Sometimes things just have to happen in sequence.
It is the simplest of relations, but puppet
What does your service {} block look like? Are you using hasstatus =
true? For example:
service { puppet:
ensure = running,
enable = true,
hasstatus = true,
}
ken.
On Tue, Jul 5, 2011 at 9:53 AM, Chris Phillips ch...@untrepid.com wrote:
Hi,
I've a puppet module running which ensures the
these anonymous blocks/closures with defaults as well:
class c {
{
Service { hasstatus = true }
service { a: }
}-
{
Service { hasstatus = false }
service { b: }
}
}
ken.
On Tue, Jul 5, 2011 at 10:26 AM, vagn scott vagnsc...@gmail.com wrote:
On 07/05/2011 04:35 AM, Ken Barber
Hi Kyle,
The source paths need to be accessible by the same user that
puppetmasterd is running as ... which is usually puppet. Some of those
files are owned by root and 700 or 600 so it can't read them:
drwx-- 2 root root 4.0K 2011-07-05 07:39 autostart
Look at the error:
err:
Do you get any errors when you run puppetd/puppet agent on the server
side? (as apposed to running it on the client).
What version of puppet are you running btw?
ken.
On Tue, Jul 5, 2011 at 9:11 AM, alan bover alanbo...@gmail.com wrote:
Hi, I've been doing some testings with an iptables puppet
How big are these manifests (ie. number of files, total lines for all
files that get imported)? For example - are you pulling in a large
file of all your nodes or something? I recall there has been problems
in the past with parsing large files - its fixed now though.
The obvious suggestion is to
Hey Bjørge,
Looks like a bug ... can you create an issue here?
https://github.com/puppetlabs/puppetlabs-firewall/issues
Can you supply the output of the command iptables-save as well in the
ticket? It looks like its having trouble parsing that.
ken.
2011/7/4 Bjørge Solli
my manifest contains number of file (flat and templete ) and for
pulling some jars on client.
I guess I was looking to find out the specifics of how big these
manifests and templates are in total on the nodes you are having
specific performance issues with. You say 'big manifests' but this is
:
On Jul 4, 7:36 pm, Ken Barber k...@puppetlabs.com wrote:
my manifest contains number of file (flat and templete ) and for
pulling some jars on client.
I guess I was looking to find out the specifics of how big these
manifests and templates are in total on the nodes you are having
Its just using the Ruby Etc library to do the lookup according to
puppet/util/posix.rb. Which won't match NIS accounts. So I'd raise a
feature request if you want this support.
You can work around this by using something like:
$username = bob
ssh_authorized_key { keyfor-${username}:
key = ...,
Another mechanism. You can use mcollective and this resource to
trigger mco calls inside puppet:
https://github.com/ripienaar/puppet-mcollective
The resource acts like an exec ... and can be refreshed and notified.
For example:
file {/tmp/foo1:
# content = foo,
content = inline_template(%=
I concur. Using mcollective to trigger Puppet is sweet.
ken.
On Fri, Jun 24, 2011 at 3:31 PM, Daniel Maher dma...@milestonelab.com wrote:
On 06/24/2011 04:10 PM, Nathan Clemons wrote:
This is what we do at Livemocha; we're actually in the process of
switching over to using MCollective to
Thanks Stefan. A bug (originally a doc bug) and subsequent discussion
at Puppetlabs is documented here:
https://projects.puppetlabs.com/issues/8096
ken.
On Thu, Jun 23, 2011 at 6:11 PM, Stefan Schulte
stefan.schu...@taunusstein.net wrote:
On Wed, Jun 22, 2011 at 08:37:25PM +0100, Ken Barber
So it would appear the parameter 'name' acts as namevar for file and
exec at least ... its not defined in the type for these explicitly -
it seems implicit. This seems historical and I haven't seen it used
before (at least I've never used it myself). Does anyone know the
history behind this?
The
My initial layout was motivated by a need to harden our Linux
systems. I grouped the various hardening configs into:
Kernel
OS
Network
Shell
Files
Application
I'm hoping I can create the same module structure within puppet.
Start here:
http://docs.puppetlabs.com/guides/modules.html
Augeas is a resource - I don't see how it fits in as a module. You may
_use_ it in your modules if you like.
On Mon, Jun 20, 2011 at 12:09 PM, Bruce Bushby bruce.bus...@gmail.com wrote:
One last question:
Would the list suggest implementing augeas where possible? and would
augeas fit into the
Do you have a lot of boxes that perform the same function? You can use
the regex node syntax:
node /^db/ {
include db
}
Or device some other way of extracting function out of the machine
name. It might save you some time.
Otherwise if your machines are fairly unique using ENC to configure
The main reason I separate title from namevar is so when I have
references to the exec they stay consistent - but the command args
can be updated independently. This matters more when I have references
that cross file boundaries.
ken.
On Sat, Jun 18, 2011 at 7:35 PM, vagn scott
Did you try the logouput = on_failure in the exec?
Can you try that and run the content with the --debug flag so we can
all see the output? (try putting the output in pastie.org if its a lot
of information).
ken.
On Mon, Jun 20, 2011 at 1:28 PM, lucas.brig...@ymail.com
grillobri...@gmail.com
Getting back to my ultra simple setup, I'm finding that I can't run
puppetd --test:
[root@msukpuppet02 puppet]# puppetd --test
err: Could not retrieve catalog from remote server: SSL_connect
returned=1 errno=0 state=SSLv3 read server certificate B: certificate
verify failed
warning: Not
I tried using try the logouput = ON_FAILURE in the exec.
But my client is a puppet CentOS. (The puppet version is outdated).
Not recognizing this parameter.
There is a newer version of Puppet in EPEL testing. For example, RHEL/CentOS 5:
seconds
kbarber:tmp ken$
ken.
On Fri, Jun 17, 2011 at 2:56 AM, Ashley Gould ago...@ucop.edu wrote:
On Wed, Jun 15, 2011 at 07:48:50PM -0700, Ashley Gould wrote:
On Wed, Jun 15, 2011 at 06:13:52PM +0100, Ken Barber wrote:
Certainly works for me in a simplified example ... can you simplify
You should usually run the exec with:
exec { asdf:
...
logoutput = on_failure,
...
}
This prints to screen any error. Anyway the clue for your case is in
the error message:
err: /Stage[main]//Node[lucas.com.br]/Wordpress::Install[ ]/Exec[tar
-vzxf /var/www/wordpress.tar.gz]/returns:
What version of puppet are you using?
kbarber:~ ken$ puppet --version
2.6.8
kbarber:~ ken$ puppet -e '$callapidata = [ 'wert1','wert2'] notice
$callapidata[1]'
notice: Scope(Class[main]): wert2
notice: Finished catalog run in 0.01 seconds
kbarber:~ ken$
ken.
On Thu, Jun 16, 2011 at 10:36 AM,
Your template file should look something like:
$restricted %= fqdn %
$ideal_load %= num_cpu.to_i + 0.5 %
$max_load %= num_cpu.to_i * 1.2 %
(the to_i is to ensure the conversion to integer - as I'm not sure
what the input data looks like :-)
Read the docs to get the full picture:
Include just evaluates the class whereas a require creates a dependency:
http://docs.puppetlabs.com/references/stable/function.html#require
The difference is evident when the catalog needs to be applied. With
include you have evaluated its contents at the time of the include -
but any resources
= $num_cpu * 1.2
in the init.pp and then $ideal_load %= i_load % (same for the
$max_load) in the template file, it works.
Any idea what's wrong? Cheers!!
On Jun 15, 1:51 pm, Ken Barber k...@puppetlabs.com wrote:
Your template file should look something like:
$restricted %= fqdn %
$ideal_load
I concur. Same problem applies to Apache vhosts - best intentions
never seem to cover all possible scenarios and its often good to have
a 'custom = template(foo/foo.conf)' method for allow custom stuff
to be added to a vhost entry - at least until each and all cases are
covered by native resources
What errors are you getting when you use this pattern? Do you have
sample code and errors for your use case?
I presume you are doing an:
include foo::wrapper
At some point to evaluate that wrapper class? Otherwise nothing will happen.
ken.
On Wed, Jun 15, 2011 at 12:40 AM, Ashley Gould
So resource order is working in the following example:
class one {
notify{class_one: message = class one}
}
class two {
notify{class_two: message = class two}
}
class { two: require = Class[one] }
class { one: }
kbarber:~ ken$ puppet apply -v tmp/executeorder.pp
info: Applying
Not pretty - but hacking up your example to work in ruby should be
something like:
Facter.add(num_core) do
setcode do
dd_code=`which dmidecode`.chomp
n1=`#{dd_code} -t processor | grep -c Socket Designation`.chomp.to_i
n2=`#{dd_code} -t processor | grep Core Count | uniq | awk
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
.
.
fi
Cheers!!
On Jun 14, 1:42 pm, Ken Barber k...@puppetlabs.com wrote
Try:
% if [x86_64,amd64].include?(architecture) %
... do stuff ...
% end %
ken.
On Tue, Jun 14, 2011 at 11:30 AM, romuald FREBAULT kurgan...@gmail.com wrote:
Hi,
I have a recipe that deploy a nrpe_local.cfg.
In my template, i want to deploy diffrent lines between 32 and 64 bits.
We have
I believe that would be a good addition. You should raise a feature
request with category 'Documentation' so its tracked:
http://projects.puppetlabs.com/projects/puppet/issues
ken.
On Tue, Jun 14, 2011 at 4:26 PM, Matthias Saou
th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Nice idea to hire document writers with clairvoyance skills :-).
On Tue, Jun 14, 2011 at 6:45 PM, Nick Fagerlund
nick.fagerl...@puppetlabs.com wrote:
On Jun 14, 8:26 am, Matthias Saou
th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
wrote:
Could the documentation section
Try:
inline_template('%= scope.lookupvar(::fqdn) %')
ken.
On Sun, Jun 12, 2011 at 3:20 PM, Matthias Saou
th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
wrote:
Hi,
I'm starting to play with the latest puppet 2.7.0rc4, one of my goals
being to try and update all of my
Ronen,
Have you tried grepping through all your content to make sure your not
using 'include nodejs' elsewhere - or some other usage of it where
you are not specifying user. You might be seeing non-deterministic
class loading order which may be why your symptoms are intermittent.
ken.
On Sat,
I'd unpack the binary RPM, put it in a yum repo somewhere and install
it with package {}.
ken.
On Feb 23, 8:05 pm, Steve some1youk...@gmail.com wrote:
puppet newbie trying to install bin file through puppet. How would I
go about it?
class java {
package {java_package:
provider =
So your original case:
class dbservices {
...
class postgres {
...
}
class mysql {
...
}
}
Wouldn't have worked if all you did was:
include dbservices
Because the 'include' only executes the contents of the dbservices
class right? The 'inner classes' contents just get
This is the approach I've taken in the past - and I've used a 'static
address' aka elastic IP as you have been trying to do and it has
worked. I guess this isn't the best forum for problems with the
Elastic IP service ... but it _should_ work and has worked for me.
At the risk of being off topic
My biggest problem is how to control version numbers with a web interface.
What i mean is instead of version = 'x.y.z' to take some how the version
number from an external data source(database).
You can either use External Nodes:
http://docs.puppetlabs.com/guides/external_nodes.html
You can use a file resource to copy a diff to a temp/diff area that
notifies an exec that does the diff as you have mentioned. This means
the diff would only get downloaded once, and the patch only applied if
the diff changes.
So roughly:
file {/var/lib/diffpatches/foo.patch:
source =
Hi David,
The source URL you have used in your define:
puppet://puppet/varlibeuca/keys/$file
Implies its trying to get the file from the following path on the
puppet master (server with hostname puppet):
/etc/puppet/modules/varlibeuca/files/keys/$file
Is this how you have laid our your pem
the file it
should be trying to read;
-rw-r--r-- 1 eucalyptus eucalyptus 1679 Sep 3 10:49
/var/lib/eucalyptus/keys/node-pk.pem
David
On Sat, Feb 19, 2011 at 11:43 AM, Ken Barber k...@bob.sh wrote:
Hi David,
The source URL you have used in your define:
puppet://puppet
Robin,
There are great books here that can be purchased:
http://www.amazon.co.uk/Pro-Puppet-James-Turnbull/dp/1430230576/ref=sr_1_1?ie=UTF8qid=1298144204sr=8-1
http://www.amazon.co.uk/Pulling-Strings-Puppet-Configuration-Management/dp/1590599780/ref=sr_1_fkmr0_1?ie=UTF8qid=1298144230sr=1-1-fkmr0
401 - 500 of 515 matches
Mail list logo