[Puppet Users] Re: file_line assistance

2013-07-31 Thread ollies...@googlemail.com
On Tuesday, July 30, 2013 10:24:41 PM UTC+1, Tom Hanstra wrote: I'm running puppet 3.2.3 with the current (4.1.0) stdlib set from puppetlabs. I'm attempting to use file_line to add a line to a file. I've dumbed this down to basically the test script: class hs_puptest1 { file {

[Puppet Users] Re: Looping around a custom fact list

2013-07-16 Thread ollies...@googlemail.com
On Thursday, July 11, 2013 11:21:12 PM UTC+1, jcbollinger wrote: On Thursday, July 11, 2013 8:41:03 AM UTC-5,I wrote: $kernel_fact_stem = 'installed_kernel' $kernel_list = inline_template(%= (0...@installed_kernel_count.to_i).collect{|n| @kernel_fact_stem + n.to_s}.join(',') %)

[Puppet Users] Looping around a custom fact list

2013-07-11 Thread ollies...@googlemail.com
Hello, We have a custom fact to show all kernels installed which appends a count. i.e. installed_kernel0 = 2.6.18-274.3.1.el5 installed_kernel1 = 2.6.18-308.16.1.el5 installed_kernel2 = 2.6.18-194.11.4.el5 What I want Puppet to do is to loop through this list of potential kernels and install

[Puppet Users] Re: Looping around a custom fact list

2013-07-11 Thread ollies...@googlemail.com
On Thursday, July 11, 2013 10:17:47 AM UTC+1, Paul Tötterman wrote: What I want Puppet to do is to loop through this list of potential kernels and install a specific driver package for all possibilities. Is this even possible without a custom provider ? I doubt it, unless you also

[Puppet Users] facts_terminus

2013-06-27 Thread ollies...@googlemail.com
Hello, Is it possible to use this on a master in more than one way on a system that just accepts the puppet facts upload and is not a real puppet master server. I have a case where I would like to keep the facter information in couchdb, and also in Foreman which can be imported from the YAML

[Puppet Users] Separate reporting server for estate subset

2013-06-25 Thread ollies...@googlemail.com
Hello, Out of a large-ish estate of systems I want only some of those systems to send reports elsewhere to be processed by Foreman/Dashboard etc. Whilst the others carry on sending their reports to the general puppet master. Is this possible from the client side using reportserver = option and

[Puppet Users] Facter Strings to integer.

2013-03-18 Thread ollies...@googlemail.com
Hello, If I want to do something like this:- if $::lsbdistrelease = 6.3 { SOMETHING } Do I have to convert lsbdistrelease from a string to a number with an inline template or some such ? Thanks Paul -- You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] Re: multiple pamameter values in puppet dashboard ENC

2013-03-08 Thread ollies...@googlemail.com
On Friday, March 8, 2013 10:16:37 AM UTC, vioilly wrote: Is there a way to use send multiple parameter values using puppet dashboard ENC? For example, nameserver = 10.0.0.1, 10.0.0.2 or perhaps nameserver = ['10.0.0.1','10.0.0.2'} then the template erb file can loop through each of

[Puppet Users] Solaris Certificate Problems

2013-02-27 Thread ollies...@googlemail.com
Hello, Have a fully working setup with mostly Linux clients running on a 2.7.x master all is good. Trying to join Solaris clients to this master yields:- info: Creating a new SSL key for FQDN warning: peer certificate won't be verified in this SSL session info: Caching certificate for ca

[Puppet Users] Re: Solaris Certificate Problems

2013-02-27 Thread ollies...@googlemail.com
On Wednesday, February 27, 2013 8:09:11 AM UTC, olli...@googlemail.com wrote: Figured it out in the end. Puppet CA server had ca_ttl=25y in it. Solaris is still packing a 32bit OpenSSL. Which took it over 2038 Set down a few years and it's fine now. Thanks Solaris -- You received

[Puppet Users] puppetdb catalog duplication

2013-01-29 Thread ollies...@googlemail.com
Hello, Just kicking the tyres with PuppetDB (1.1.0) on a test setup with 100-odd nodes running only once an hour by default. Looking at the dashboard the catalog duplication is showing 0.0% which seems a little odd to me. Any way to track down why this is and how to correct it as presumably

[Puppet Users] Puppet LVM create volume maximum size

2013-01-08 Thread ollies...@googlemail.com
Hello, Using the LVM module/providers from the forge I want to create a logical volume at the maximum size and I cannot work out how to do this. physical_volume - volume_group - logical_volume - filesystem - mount All works fine but you have to hard code the size for the logical volume.

[Puppet Users] Re: Puppet LVM create volume maximum size

2013-01-08 Thread ollies...@googlemail.com
On Tuesday, January 8, 2013 9:21:54 AM UTC, olli...@googlemail.com wrote: Hello, Using the LVM module/providers from the forge I want to create a logical volume at the maximum size and I cannot work out how to do this. physical_volume - volume_group - logical_volume - filesystem - mount

[Puppet Users] Catalog into something human readable

2012-12-06 Thread ollies...@googlemail.com
Hello, Is there anyway to parse a catalog generated with something like:- puppet master --compile host hostname.cat That looks vaguely human readable. I have tried the puppet catalog print face but cannot seem to get it to parse for some reason # puppet catalog print --catalog

[Puppet Users] Overriding default providers

2012-10-12 Thread ollies...@googlemail.com
Hello, I have a need to extend a default provider. Now whilst I can/will raise a request to add the required functionality to the blastwave.rb provider in the short-term what would be the best way to use my extended version. I can add the updated provider to my global module which drops my

[Puppet Users] PuppetDB - HA

2012-09-21 Thread ollies...@googlemail.com
Hello, So in my company I have put in this fully load-balanced (behind F5) solution with multiple PM's/CA's/ENC and a single entry client entry point no matter where the servers are located globally - puppet.domain and the F5 will point you as local as possible and the rest do their thing. Now

[Puppet Users] Multiple package install.

2012-08-31 Thread ollies...@googlemail.com
Hello, For the life of me I cannot get this to work. It's seemingly doable with a single class but outside params.pp: class vmware::params { case $::lsbmajdistrelease { '4': { $packagelist = [ 'vmware-tools-esx-kmods-smp', 'vmware-tools-esx-kmods-up' ] } default: {

Re: [Puppet Users] Multiple package install.

2012-08-31 Thread ollies...@googlemail.com
On Friday, August 31, 2012 9:00:34 AM UTC+1, David Schmitt wrote: On 2012-08-31 09:46, olli...@googlemail.com javascript: wrote: Hello, For the life of me I cannot get this to work. It's seemingly doable with a single class but outside params.pp: class vmware::params {

Re: [Puppet Users] Multiple package install.

2012-08-31 Thread ollies...@googlemail.com
On Friday, August 31, 2012 9:41:28 AM UTC+1, David Schmitt wrote: D'oh. here're quotes too! Missed them on the first round. D. Of course there is. Fixed it thanks. Coffee needed for me I think. Cheers Paul -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Adding resource parameters in inheritence

2012-07-24 Thread ollies...@googlemail.com
Hello, On some machines being managed by Puppet I would like to perform targetted audit runs with puppet -t --noop --tags audit For better or for worse I am trying to do this with a separate module audit rather than add the audit = to the resources and use inheritence. i.e. class

[Puppet Users] Re: Adding resource parameters in inheritence

2012-07-24 Thread ollies...@googlemail.com
Your general idea sounds feasible. I see two specific problems in the example code you posted, however: 1. Is the title of the File resource you want to override really 'resolv.conf'? I mean, it could be if you specified the full path via the 'path' parameter in the original

[Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-18 Thread ollies...@googlemail.com
On Tuesday, 17 July 2012 16:14:05 UTC+1, Matt wrote: Is there no one who has done this that can provide examples of how they did it? I would if I could. Company policy and all that. Generated the SSL certificate with the single F5 DNS address that all the clients globally will hit

Re: [Puppet Users] how to scale puppet with F5 load balancer?

2012-07-09 Thread ollies...@googlemail.com
On Monday, 9 July 2012 06:44:16 UTC+1, Alan Evans wrote: From what I can tell there is no need to use alternate names. You can make the F5 appear to the clients to be the puppetmaster by leveraging the F5 to do SSL offloading and part of the certificate verification taking some load off

[Puppet Users] Puppet v2.7.11 Seg Faults

2012-07-03 Thread ollies...@googlemail.com
Hello, Migrating some clients from an ancient client to a new infrastructure based on 2.7.11 these are RHEL boxes Some clients are hitting an issue [30/06/12 05:11:37 UTC] /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:733: [BUG] Segmentation fault [30/06/12 05:11:37 UTC] ruby 1.8.5

[Puppet Users] Python Puppet YAML Report Parser

2012-06-10 Thread ollies...@googlemail.com
Hello, A quick search showed some people may have got this working. Anyone got a Python (or Perl) script to parse the Puppet reports and put them into a human readable format ? Might be able to knock something together myself but not used PyYAML too much and might need some pointers. Thanks

[Puppet Users] Disable HTML traces from Passenger

2012-05-30 Thread ollies...@googlemail.com
Hello, Not sure on this must be something in Apache/Passenger but I cannot find it right now. Is there anyway to disable the Ruby traces to return non--HTML output ? Many thanks, Paul -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to

[Puppet Users] rdoc escaping help

2012-04-13 Thread ollies...@googlemail.com
Hello, Trying to be a good boy and put rdoc headers in my classes. I am trying to put some scoped variables into the output i.e. # [*myclass::params::server*] # This is derived from the myclass::params class which returns the server to configure # # [*myclass::params::venafiport*] # This is

[Puppet Users] Templates has_variable scoping etc

2012-03-21 Thread ollies...@googlemail.com
Hello, Trying to write out a file with some facter variable handling i.e. if has_variable?(@lsbdistdescription) then my_OS = @lsbdistdescription else my_OS = @operatingsystem + + @operatingsystemrelease end Therefore if the facter variable @lsbdistdescription doesn't exist (i.e. Solaris)

[Puppet Users] 2.7.9 - 2.7.11 Error 403

2012-02-27 Thread ollies...@googlemail.com
Hello, Thought I would upgrade the masters then tried to join a new client. All the /etc/puppet/*.conf files are the same. This is running split CA/Masters running behind F5 and running under Passenger on RHEL6 Now getting 403 errors. info: Retrieving plugin err: /File[/var/lib/puppet/lib]:

[Puppet Users] Re: 2.7.9 - 2.7.11 Error 403

2012-02-27 Thread ollies...@googlemail.com
Never mind found I did indeed screw with auth.conf - my bad. Nice to see facts only loading once this time... On Feb 27, 1:43 pm, ollies...@googlemail.com paul.seym...@barcap.com wrote: Hello, Thought I would upgrade the masters then tried to join a new client. All the /etc/puppet/*.conf

[Puppet Users] RHEL4 + 2.6.11 and Puppet CA/Master at 2.7.9

2012-02-24 Thread ollies...@googlemail.com
Hello, As the 2.7 branch doesn't seem to be available for RHEL4 (yes I know EOS next week) am trying to use a 2.6.11 client for our new Puppet infrastructure to replace the creaking one we have now. The POC setup is all running behind an F5 with a pair of CA's and seperate pool of Puppet

[Puppet Users] Re: RHEL4 + 2.6.11 and Puppet CA/Master at 2.7.9

2012-02-24 Thread ollies...@googlemail.com
- network - nimbus - ntp - packages - profile - puppetclient - resolver - security - selinux - services - ssh - sudo - syslog - systemusers - tsgtools - verify - vmware environment: engineering Is there anything wrong the 2.7.9 clients work fine ? Thanks Paul On Feb 24, 10:12 am, ollies

[Puppet Users] Template Help Please

2012-01-23 Thread ollies...@googlemail.com
Hello, I am trying to setup a template with data being passed in as a long string of data which is being returned via extlookup() i.e. $resolvers = 10.10.10.10 11.11.11.11.12.12.12.12 The template should split those up and put a nameserver entry per line in /etc/resolv.conf I have this in the

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 1:17 pm, Denmat tu2bg...@gmail.com wrote: Hi, Is that variable declaration copied correctly? $resolvers = 10.10.10.10 11.11.11.11.12.12.12.12 Should be $resolvers = 10.10.10.10 11.11.11.11 12.12.12.12 what's that do for you? That was a typo in my original mail. The syntax

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 1:32 pm, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Absolutely beats me. Is this a verbatim paste from your template? Are you certain that the template is the source of the error? Does it say anything beyond syntax error? Just pasting puppet output would be ideal.

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 4:32 pm, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 01/23/2012 02:48 PM, ollies...@googlemail.com wrote: host: parse of /etc/resolv.conf failed ./resolver/templates/resolv.conf.erb:7:in `result': compile error (SyntaxError) ./resolver/templates/resolv.conf.erb:4

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 23, 9:07 pm, Guy Matz gm...@matz.org wrote: Is your issue resolved?  It looks like you don't have the correct erb syntax in your loop *%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each I think should be *%*

[Puppet Users] Re: Template Help Please

2012-01-23 Thread ollies...@googlemail.com
On Jan 24, 7:14 am, ollies...@googlemail.com paul.seym...@barcap.com wrote: On Jan 23, 9:07 pm, Guy Matz gm...@matz.org wrote: Is your issue resolved?  It looks like you don't have the correct erb syntax in your loop *%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each

[Puppet Users] Stupid Exec

2012-01-05 Thread ollies...@googlemail.com
Hello, I have this stupid exec on a bash script but bear with me. Works OK on an ancient 0.xx Puppet setup. But not on 2.7.9. $command = ( /apps/path/scripts/install.sh || true ) touch /etc/ puppet/puppet.script.done exec { install: command = $command, cwd

[Puppet Users] Re: Stupid Exec

2012-01-05 Thread ollies...@googlemail.com
On Jan 5, 3:54 pm, krish das.srikris...@gmail.com wrote: On Thu, Jan 5, 2012 at 9:12 PM, ollies...@googlemail.com paul.seym...@barcap.com wrote: Hello, I have this stupid exec on a bash script but bear with me. Works OK on an ancient 0.xx Puppet setup. But not on 2.7.9. $command

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-21 Thread ollies...@googlemail.com
Thanks for all the help but I have failed in this and decided to change tack a little. With no better results :) Here is what the current attempt is. 2 Apache Load-Balancers which will be CA's and therefore entry points for clients. These will be in active/standby solution on RHEL6 with

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread ollies...@googlemail.com
Thanks. I assume that the section in this:- http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Scalability Stating that is doesn't work for 0.25 2.6 also applies to the 2.7.9 release that is the latest ? Sharing an area via NFS/iSCSI/rsync'ing or whatever is potentially viable does

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread ollies...@googlemail.com
That's easy: dedicate two host to be CAs only. One is the hot standby of the first one. You can either manually bring it up when the first one fails, or use something like drbd+pacemaker to do it automatically. Then have all your other masters run in no ca mode. Each can have a different

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread ollies...@googlemail.com
On Dec 20, 4:16 pm, Brice Figureau brice-pup...@daysofwonder.com wrote: On Tue, 2011-12-20 at 08:02 -0800, ollies...@googlemail.com wrote: That's easy: dedicate two host to be CAs only. One is the hot standby of the first one. You can either manually bring it up when the first one

[Puppet Users] Seperate CA's/Master behind load balancer

2011-12-16 Thread ollies...@googlemail.com
Hello, Attempting to setup a CA primary/standby as well as seperate puppetmaster servers (all running Apache/Passenger) behind another Apache/Passenger type load balancer. Clients are not getting certs:- err: Could not request certificate: Could not intern from s: nested asn1 error Clearly an

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-16 Thread ollies...@googlemail.com
Thanks I realised that when I sent it. Dialled back the CA to:- Listen 18140 VirtualHost *:18140 SSLEngine off ServerName CA FQDN RackAutoDetect On DocumentRoot /etc/puppet/rack/puppetmaster/public/ Directory /etc/puppet/rack/puppetmaster/ Options None AllowOverride None

[Puppet Users] Separate CA's

2011-12-15 Thread ollies...@googlemail.com
Hello, I have a desire to have separate primary/secondary CA servers, and separate puppet master servers running behind a load balancer (ultimately an F5 but will use an Apache mod_proxy.. setup initially to test). The Pro Puppet books suggest this with everything running with Passenger which is

[Puppet Users] Re: extlookup()

2011-10-25 Thread ollies...@googlemail.com
Thanks but it remains the same. Even if I put an ${fqdn}.csv it will read that file but only take the first entry in the CSV and apply that to every extlookup call in the module. It's a little curious. This is running on PE1.2 but I suspect this is running the same code base as 2.6.9 -- You

[Puppet Users] Re: extlookup()

2011-10-24 Thread ollies...@googlemail.com
On Oct 21, 12:55 pm, Andrew Thompson netengr2...@gmail.com wrote: On Oct 20, 10:18 am, ollies...@googlemail.compaul.seym...@barcap.com wrote: Taking a brief look at extlookup() We have a module to setup resolv.conf based on location so we have a % {domain}.csv file Can you post your

[Puppet Users] extlookup()

2011-10-20 Thread ollies...@googlemail.com
Taking a brief look at extlookup() We have a module to setup resolv.conf based on location so we have a % {domain}.csv file more /etc/puppetlabs/puppet/envs/legacy/extdata/ldt.csv domainname,my.domain.com resolvers,10.10.10.10 10.10.10.11 searchpath,sub.my.domain.com sub2.my.domain.com class

[Puppet Users] puppet-lvm and volume group issues

2010-10-15 Thread ollies...@googlemail.com
Trying to setup a volume group with puppet lvm and this:- volume_group { my_vg: ensure = present, physical_volumes = /dev/sdb /dev/sdc /dev/sdd, require = [ Physical_volume[/dev/sdb], Physical_volume[/dev/sdc], Physical_volume[/dev/sdd] ] }