Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread Stephen Gran
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

Re: [Puppet Users] Re: Despite no change in content, agent log file indicates content changed in each catalog run

2013-08-23 Thread Stephen Gran
. 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

Re: [Puppet Users] Re: Despite no change in content, agent log file indicates content changed in each catalog run

2013-08-22 Thread Stephen Gran
, 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

Re: [Puppet Users] install module via rpm- behind a proxy

2013-06-19 Thread Stephen Gran
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

Re: [Puppet Users] Puppet, git security

2013-05-15 Thread Stephen Gran
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

Re: [Puppet Users] Package and unless

2013-03-01 Thread Stephen Gran
-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

Re: [Puppet Users] Possible to exclude an event in Puppet dashboard?

2012-10-22 Thread Stephen Gran
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

Re: [Puppet Users] File optimizations

2012-10-22 Thread Stephen Gran
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

Re: [Puppet Users] Re: Help- Parsing data from a yaml file using puppet 3.0 and hiera

2012-10-11 Thread Stephen Gran
' - '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

Re: [Puppet Users] Remove directory

2012-10-08 Thread Stephen Gran
, 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

Re: [Puppet Users] Puppet cron job class stamps file with date-time. How?

2012-10-04 Thread Stephen Gran
, group = $group ... } } See the templating docs. Cheers, -- Stephen Gran Senior Systems Integrator - guardian.co.uk Please consider the environment before printing this email. -- Visit

Re: [Puppet Users] Puppet 3 killed my environment variables

2012-10-03 Thread Stephen Gran
, -- 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

Re: [Puppet Users] Re: Massive Import/Include

2012-09-28 Thread Stephen Gran
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

Re: [Puppet Users] puppet and std

2012-09-25 Thread Stephen Gran
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

Re: [Puppet Users] Looping through a list of values - ENC

2012-09-18 Thread Stephen Gran
: } 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

Re: [Puppet Users] Looping through a list of values - ENC

2012-09-18 Thread Stephen Gran
}: #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

Re: [Puppet Users] inheritance failure: duplicate declaration error

2012-09-17 Thread Stephen Gran
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

Re: [Puppet Users] How to set DNS on Ubuntu 12.04 clients?

2012-09-11 Thread Stephen Gran
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

Re: [Puppet Users] How to set DNS on Ubuntu 12.04 clients?

2012-09-11 Thread Stephen Gran
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

Re: [Puppet Users] Re: Facter does not deliver ip addresses

2012-09-06 Thread Stephen Gran
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

Re: [Puppet Users] Re: Anyone using config_version successfully?

2012-08-24 Thread Stephen Gran
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

Re: [Puppet Users] Hiera to hash

2012-08-22 Thread Stephen Gran
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

Re: [Puppet Users] How to subscribe to an exported resource?

2012-08-14 Thread Stephen Gran
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

Re: [Puppet Users] Use of camelCase causes issues in dependancy resolution

2012-08-13 Thread Stephen Gran
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

Re: [Puppet Users] Run the nodes in an orderly

2012-07-16 Thread Stephen Gran
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

Re: [Puppet Users] class invocation instead of 'include'

2012-06-29 Thread Stephen Gran
'), 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

Re: [Puppet Users] class invocation instead of 'include'

2012-06-26 Thread Stephen Gran
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

Re: [Puppet Users] class invocation instead of 'include'

2012-06-26 Thread Stephen Gran
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

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-26 Thread Stephen Gran
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

Re: [Puppet Users] run stages and users

2012-06-14 Thread Stephen Gran
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

Re: [Puppet Users] Re: Autoscaling with Puppet

2012-06-06 Thread Stephen Gran
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