it's seem that 'returns' take
the return code of the command and not the output of the command.
How can I do it right?
test $(grep -c aa /tmp/aao) -gt 0
Cheers,
--
Stephen Gran
Senior Systems Integrator - theguardian.com
Please consid
someone) has used a fact. Facts values are
filled in by the agent on the node at the start of a run, before
catalogue compliation, so that they are available to the master for use
in the catalogue.
http://docs.puppetlabs.com/guides/custom_facts.html may be of some help
to you.
Cheer
supplied by the
agent. In this case, uptime_seconds is how many seconds the node has
been up. This will obviously change between runs. For a list of what
facts are available, you can run `facter -p` on the node.
Cheers,
--
Stephen Gran
Senior Systems Integrator - theguardian.com
Please con
services (e.g. export=http-proxy ...).
Is there any other way to "tell" puppet to use our http-proxy for the
installation?
Tell rpm to use the proxy. It has config files and macros for httpproxy.
Cheers,
--
Stephen Gran
Senior Systems Inte
update and then rsync to the masters. If
you rsync the entire git tree, your workflow remains the same as in the
article, except that the transport for getting the git repo onto the
masters has changed.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the e
and stop receiving emails from it, send
> an email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://gro
Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en
27;m not a puppetlabs person,
so can't make an official comment.
Turn the question around for a moment: why do you have so many file
resources?
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the envir
nt to
> exclude this from showing up as "CHANGED"
The traditional way to have a script run periodically is to put
something in cron. Puppet can help you with that.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environmen
>
> Followin is the structure of global.yaml file:-
> ---
> users:
>- 'seventeen'
>- 'eighteen'
Are you sure /etc/puppet/hiera/data/global.yaml exists on the puppet
master? Why are you using :puppet:
ersion or
something) and managing that directory with recurse and force and so on.
But, here's a nickel. Buy yourself a package management system.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
-
x27;),
owner => $owner,
group => $group
...
}
}
See the templating docs.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
--
m to know anything about that.
Can you not just set resource defaults like:
Exec {
environment => "HOME=/home/wibble"
}
?
Cheers,
--
Stephen Gran
Senior Systems Integrator - The Guardian
Please consider the environment before printing this email.
--
ame}.conf":
content => template('bind/slave_zone.conf.erb'),
notify => Service['bind']
}
}
class bind::master {
include bind
include bind::params
$zones = $bind::params::zones
bind::master_zone { $
x world. That puppet doesn't also send that message
through it's log routines so that you can see it somewhere (presumably
syslog) is the issue that needs addressing.
It may be that you've found a race condition where something can go
wrong between closing its fds and opening its
e key $name. Something like:
define vhostvirt($data) {
$user= $data[$name]
$docroot = $data[$name]
file { "/tmp/${name}":
#content => template("apache/vhost.conf.erb"),
owner => 'root',
group => 'root',
mode =&g
:
$vhost_list = split($domains, ',')
vhostvirt { $vhost_list: }
This will create one vhostvirt for each entry in $domains.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
---
uot;postfix_mailqueue",
> source => "postfix_mailqueue",
> enable => "true"
> }
>
> }
It looks like you're attempting to redeclare, rather than override, the
plugin definition, as the error tells you.
Try:
Munin::Client:
ore that it depends on the "ubuntu-minimal" package?
It won't cause any harm (as in, lack of functionality) - the
ubuntu-minimal package only exists to make sure other software is
installed. If you are uneasy about removing the package, you can also
presumably just make sure t
e accordingly, or write
> your own.
Surely if you're statically configuring DNS on a server, you don't want
a dynamic DNS configuration daemon running on the same server.
Presumably something like:
package { 'resolvconf':
ensure => purged
}
And then get on with
Hi,
Why do your init scripts start puppet with a locale other than C?
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
--
Visit guardian.co.uk
ed with the short hash of the commit when we sync
the repo to the master. It's not really hugely important, of course,
but it's nice to know when you're forcing a run on a node that you're
getting the revision you've just committed.
Cheers,
--
Stephen Gran
Senior Systems In
Try inspecting it some other way than printf debugging - notice always
flattens variables by calling .to_s on them, so it is not a very useful
tool. I am assuming that things are indeed fine, but this is confusing
matters.
Cheers,
--
Stephen Gran
Senior System
more elegantly? I
> understand that I need to create one file by node of class C, or is
> there a way to have the exported resources all concatenated into the
> same file?
The classic is:
https://github.com/ripienaar/puppet-concat
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian
essage because you are subscribed to the Google
> Groups "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/wOP78S9anc8J.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe
ght ask, though, why do you need this strict ordering? That's
usually a sign that you have created a not very fault tolerant design.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
---
igger a
> standard Hiera lookup of those parameters. It'll be roughly equivalent
> to doing:
>
> class {'myclass':
> param1 => hiera('myclass::param1'),
> param2 => hiera('myclass::param2'),
> }
That's perfect, thank you. That res
Groups "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/L8BBk9FKu8IJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send ema
Hi,
On Tue, 2012-06-26 at 11:47 +0200, Felix Frank wrote:
> Hi,
>
> On 06/26/2012 10:56 AM, Stephen Gran wrote:
> > There is one difference that is most likely a bug. try this manifest:
> >
> > ./test.pp
> > class { 'wobble': }
> > class
; To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
--
Stephen Gran
Senior Sys
t;0 rather than
> root, root just to avoid dependancy cycles.
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
--
Visit guardian.co.uk - newspaper of the
puppet side to match the host. I'm thinking that's certname and a
> custom fact, but am open to other ideas.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
32 matches
Mail list logo