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

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

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
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

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
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

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

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

Re: [Puppet Users] Puppet, git & security

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

Re: [Puppet Users] scope.compiler.classlist.include not working as expected?

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

Re: [Puppet Users] Package and unless

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

Re: [Puppet Users] File optimizations

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

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

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

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

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

Re: [Puppet Users] Remove directory

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

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

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

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

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

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

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

Re: [Puppet Users] puppet and std

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

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

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

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

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

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

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

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

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

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

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

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

2012-09-05 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
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

Re: [Puppet Users] Hiera to hash

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

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

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

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

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

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

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

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

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

Re: [Puppet Users] subscribing to a remote mailbox

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

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

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

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

Re: [Puppet Users] run stages and users

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

Re: [Puppet Users] Re: Autoscaling with Puppet

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