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 consider the environment before printing this email
. 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.
Cheers,
--
Stephen Gran
Senior
, 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 consider the environment before printing
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 Integrator - guardian.co.uk
Please consider the environment before printing this email
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 environment
-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email
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 environment before printing this email
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 environment before printing this email
'
- 'eighteen'
Are you sure /etc/puppet/hiera/data/global.yaml exists on the puppet
master? Why are you using :puppet: and :datasource: ?
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email
, there are a number of approaches that might make sense here,
including making a named subdirectory (say, /opt/java_version 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
,
group = $group
...
}
}
See the templating docs.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
--
Visit
,
--
Stephen Gran
Senior Systems Integrator - The Guardian
Please consider the environment before printing this email.
--
Visit guardian.co.uk - newspaper of the year
www.guardian.co.ukwww.observer.co.uk www.guardiannews.com
On your
bind::slave_zone { $zones }
}
This is off the top of my head, and leaves out an awful lot of
boilerplate. Hopefully you see what I'm trying to say and it gets you
to somewhere more manageable.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider
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 logs.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before
: }
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.
--
Visit guardian.co.uk - newspaper of the year
}:
#content = template(apache/vhost.conf.erb),
owner = 'root',
group = 'root',
mode = '777',
ensure = present,
}
}
That should be enough to get you going.
Good luck,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing
than override, the
plugin definition, as the error tells you.
Try:
Munin::Client::Plugin[postfix_mailqueue] { enable = true }
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email
running on the same server.
Presumably something like:
package { 'resolvconf':
ensure = purged
}
And then get on with your life?
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email
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 the service doesn't run.
Cheers,
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider
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
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 Integrator - guardian.co.uk
Please consider the environment before printing this email
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 Systems Integrator - guardian.co.uk
Please consider the environment before printing this email
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.co.uk
Please consider the environment
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 Systems Integrator - guardian.co.uk
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.
--
Visit guardian.co.uk - newspaper
'),
param2 = hiera('myclass::param2'),
}
That's perfect, thank you. That restores the singleton nature of
classes to parameterized classes, which is IMHO much nicer than what we
have at the moment. I look forward to using this :)
Cheers,
--
Stephen Gran
Senior Systems Integrator
at
http://groups.google.com/group/puppet-users?hl=en.
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
--
Visit guardian.co.uk - newspaper of the year
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 { 'wibble': }
I disagree on this being a bug.
This syntax
options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
Stephen Gran
Senior Systems Integrator - guardian.co.uk
Please consider the environment before printing this email.
--
Visit guardian.co.uk - newspaper
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 year
www.guardian.co.uk
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.
--
Visit guardian.co.uk - newspaper of the year
31 matches
Mail list logo