[Puppet Users] Error after upgrade to PE 2017.2.3

2017-08-14 Thread Jonathan Gazeley
Hi folks, I just upgraded my PE installation from 2016.4 to 2017.2.3 and I've started getting this error when I attempt to run the agent on the newly-upgraded Puppet Server (monolithic install). Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could no

[Puppet Users] Problems tagging resources with resource defaults

2017-07-27 Thread Jonathan Gazeley
Hi folks, I'm trying to track down an issue with my PE installation. I've been using exported resources to configure my Nagios monitoring since Puppet 0.2.6 but I've just noticed that tags are not behaving as I expected. The VMs in my estate all have exported resources like this: @@nagios_se

Re: [Puppet Users] Re: Browse PuppetDB resources

2017-07-27 Thread Jonathan Gazeley
Thank you, this was perfect! Cheers, Jonathan On 26/07/17 17:08, Russell Mull wrote: Hi Jonathan, You can use the PuppetDB CLI to do queries directly. https://docs.puppet.com/puppetdb/5.0/pdb_client_tools.html - Russ On Wednesday, July 26, 2017 at 3:57:37 AM UTC-7, Jonathan Gazeley wrote

[Puppet Users] Browse PuppetDB resources

2017-07-26 Thread Jonathan Gazeley
Hi folks, I'm trying to troubleshoot an issue about tagging and realising exported resources. Is there a way I can browse/view exported resources in PuppetDB to make sure the expected tags have been applied? Thanks, Jonathan -- You received this message because you are subscribed to the Goog

[Puppet Users] Conditional in ERB template

2017-02-09 Thread Jonathan Gazeley
'] being printed as a literal string. What have I done wrong? members=db1.example.com;value['service'];value['opt'],db2.example.com;value['service'];value['opt'],db3.example.com;value['service'];value['opt'], Any hints would be appr

Re: [Puppet Users] Help with data structure

2017-02-06 Thread Jonathan Gazeley
Sorry, this is my fault. I hadn't done "git push" to deploy my new code before testing :( Your example works perfectly! Thanks, Jonathan On 06/02/17 14:47, Jonathan Gazeley wrote: Thanks for your reply. I'm still having problems with this :( This is my worked example

Re: [Puppet Users] Help with data structure

2017-02-06 Thread Jonathan Gazeley
bers in the pp file and a file resource with content => template('modulename/templatename.erb') Inside the template you simply iterate through the key, value pairs. You can access hash members with their key; square brackets are used for accessing. https://docs.puppet.com/puppet/latest

[Puppet Users] Help with data structure

2017-02-02 Thread Jonathan Gazeley
service => 'RADIUS', opt => '&', }, } Is my design sensible, and how can I manipulate this data to generate a string in the config file as above? I'm using Puppet Enterprise 2016.5 but I only upgraded from Puppet 3.8 a couple of weeks ago, so I'm stil

[Puppet Users] Hiera behaviour in PE 2016.5

2017-01-10 Thread Jonathan Gazeley
Hi folks, Yesterday we migrated wholesale from Puppet 3.8 to Puppet Enterprise 2016.5 and we're having horrendous problems with Hiera. The fault is partly ours because our Hiera data is old and not properly organised (it doesn't use automatic parameter lookup everywhere). In Puppet 3, we wer

[Puppet Users] Puppet lookup() default value

2016-12-05 Thread Jonathan Gazeley
rver and I've got a lot of legacy baggage :( Thanks, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and st

Re: [Puppet Users] Hiera 4 problems

2016-11-30 Thread Jonathan Gazeley
n the caller. (super bad idea that works in hiera 3). Thanks - I removed this block and it now works! Onto the next bug :) Cheers, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google G

Re: [Puppet Users] Hiera 4 problems

2016-11-30 Thread Jonathan Gazeley
Any more suggestions? Many thanks, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails fr

Re: [Puppet Users] Re: Code Manager queued environments

2016-11-30 Thread Jonathan Gazeley
unless you specified --wait. Thanks, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails fr

[Puppet Users] Hiera 4 problems

2016-11-30 Thread Jonathan Gazeley
Error while evaluating a Method call, 'dig' parameter 'data' expects a Collection value, got String at /opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/master/puppetserver.pp:673:42 That manifest ships with PE and I haven't messed with it. Anyone know what's goi

[Puppet Users] Code Manager queued environments

2016-11-29 Thread Jonathan Gazeley
;queued"},{"environment":"pe","id":8,"status":"queued"},{"environment":"production","id":9,"status":"queued"},{"environment":"sauron","id":10,"status":&qu

Re: [Puppet Users] Re: Problems with new PE 2016.4 install

2016-11-07 Thread Jonathan Gazeley
e exactly right. There was a custom mountpoints.rb in an old module I'm using. Nothing seems to be referencing it and I have no idea why it was ever needed - it's gone now and it works. Thanks! Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bris

Re: [Puppet Users] Problems with new PE 2016.4 install

2016-11-04 Thread Jonathan Gazeley
"419.11 MiB", available_bytes => 439472128, capacity => "11.13%", device => "/dev/sda1", filesystem => "ext2", options => [ "rw", "relatime", "block_validity", &quo

Re: [Puppet Users] Problems with new PE 2016.4 install

2016-11-04 Thread Jonathan Gazeley
0:30 AM, Justin Stoller mailto:jus...@puppet.com>> wrote: On Thu, Nov 3, 2016 at 2:52 AM, Jonathan Gazeley mailto:jonathan.gaze...@bristol.ac.uk>> wrote: Hi folks, I've been running open-source Puppet 3.x for years but this week I'm dabbling wi

Re: [Puppet Users] Re: Problems with new PE 2016.4 install

2016-11-04 Thread Jonathan Gazeley
otify { "${::mountpoints["/"]}": }' Thanks, -aj On Thursday, November 3, 2016 at 2:52:35 AM UTC-7, Jonathan Gazeley wrote: Hi folks, I've been running open-source Puppet 3.x for years but this week I'm dabbling with a new installation of PE 2016

[Puppet Users] Problems with new PE 2016.4 install

2016-11-03 Thread Jonathan Gazeley
/opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/master/puppetserver.pp:673:42 on node puppet4-prod.resnet.bris.ac.uk I think that manifest is something that came with PE and not something I've installed, so I've no idea where to start. Any ideas? Thanks, Jonathan -- Jonat

[Puppet Users] yumrepo difference in behaviour between CentOS 6 and 7

2016-09-12 Thread Jonathan Gazeley
s interested: https://github.com/uobnetops/repo_centos/blob/repo_naming/manifests/base.pp Thanks, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To uns

[Puppet Users] Trying to debug Facter

2016-05-31 Thread Jonathan Gazeley
deas for cleaning it up? Thanks! Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails fro

[Puppet Users] Puppetserver SELinux context

2016-04-27 Thread Jonathan Gazeley
a-Applications-and-Servers/Apache-Tomcat/check_jvm/details -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiv

[Puppet Users] puppetlabs-release not signed

2016-04-20 Thread Jonathan Gazeley
, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT Services University of Bristol -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to p

Re: [Puppet Users] Re: Variables inside variables

2016-03-31 Thread Jonathan Gazeley
Great, thanks! On 31/03/16 11:21, Daniel Sung wrote: I achieve this by using the getvar function in stdlib. For example: getvar("::network_${::gateway_dev}") Regards, Daniel On Thursday, 31 March 2016 11:04:45 UTC+1, Jonathan Gazeley wrote: Hi folks, Short version:

[Puppet Users] Variables inside variables

2016-03-31 Thread Jonathan Gazeley
. However there is not a $::network fact to reflect $::network_eth0. I have a custom fact $::gateway_dev which returns the name of the primary interface. Is it possible to access the variable like ${::network_${::gateway_dev}} ? Thanks, Jonathan -- Jonathan Gazeley Senior Systems Administrator IT

[Puppet Users] Scheduled changes to SSL certs

2015-10-16 Thread Jonathan Gazeley
Here's a problem that might have an interesting solution. I use Puppet to deploy (amongst other things) SSL certs for web servers. One of my certs is expiring in January 2016 and I have already been sent the replacement. They overlap by 7 days. I might forget to make the change in January so I

[Puppet Users] Re: r10k permissions strangeness

2015-08-18 Thread Jonathan Gazeley
I've just seen this bug report which was fixed in 2.8.2. However we're running 2.8.4... https://github.com/acidprime/r10k/issues/191 On 18/08/15 14:44, Jonathan Gazeley wrote: Hi folks, I'm a long-time Puppet user but this week I've moved to use Puppetserver and r1

[Puppet Users] r10k permissions strangeness

2015-08-18 Thread Jonathan Gazeley
Hi folks, I'm a long-time Puppet user but this week I've moved to use Puppetserver and r10k, using abstractit/puppet to oversee everything, and that depends on zack/r10k and other modules to do the heavy lifting. I'm using Gitlab to manage my git repo which uses a webhook to prod r10k into de

Re: [Puppet Users] fileserver.conf -- files not serving

2015-07-28 Thread Jonathan Gazeley
You could consider running SSH or rsync on port 8140... Cheers, Jonathan On 27/07/15 19:58, Peter Berghold wrote: Hi there, I am trying to keep Puppet modules in sync between Puppet masters in an environment where SSH is being blocked between the masters (long story there, corporate securit

Re: [Puppet Users] Config test when restarting a service

2015-07-06 Thread Jonathan Gazeley
On 06/07/15 14:26, Peter Meier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Notify on its own is no good, since if the exec fails, the service gets restarted anyway. Require on its own is no good, since the exec runs every time. Is there some way to combine the two? The problem is th

[Puppet Users] Config test when restarting a service

2015-07-06 Thread Jonathan Gazeley
Hi folks, I'm tying myself in knots trying to figure out the best metaparameters to use here. I want to define an exec that only runs when a service is scheduled to be restarted. It should check the config file and if the syntax is invalid, it should abort restarting the service (i.e. won't k

Re: [Puppet Users] Facter throwing MySQL errors

2015-06-01 Thread Jonathan Gazeley
quire' /var/lib/puppet/lib/facter/portage.rb:1 /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:130:in `load' /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:130:in `kernel_load' /usr/lib/ruby/site_ruby/1.8/facter/util/loader.rb:115:in `load_file' /usr/lib/ruby/site_ruby

Re: [Puppet Users] Facter throwing MySQL errors

2015-05-29 Thread Jonathan Gazeley
version has puppet facter) On 29 May 2015, at 11:21, Jonathan Gazeley wrote: Hi folks, Since upgrading to Puppet 3.8.1 my Facter (2.4.4) has been throwing this error every run: [jg4461@webdev-ispms ~]$ facter ERROR 2002 (HY000): Can't connect to local MySQL server through socket 

[Puppet Users] Facter throwing MySQL errors

2015-05-29 Thread Jonathan Gazeley
Hi folks, Since upgrading to Puppet 3.8.1 my Facter (2.4.4) has been throwing this error every run: [jg4461@webdev-ispms ~]$ facter ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ERROR 2002 (HY000): Can't connect to local MySQL server th

[Puppet Users] Re: puppetlabs/concat order parameter

2015-04-20 Thread Jonathan Gazeley
Looks like pfmooney/mit_krb5 is to blame... https://github.com/pfmooney/puppet-mit_krb5/issues/5 On 20/04/15 16:41, Jonathan Gazeley wrote: Hi folks, Today I upgraded puppetlabs/concat from 1.2.0 to 1.2.1 and immediately ran into an error: Error: Could not retrieve catalog from remote

[Puppet Users] puppetlabs/concat order parameter

2015-04-20 Thread Jonathan Gazeley
Hi folks, Today I upgraded puppetlabs/concat from 1.2.0 to 1.2.1 and immediately ran into an error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Order cannot contain '/', ':', or ' '. at /etc/puppet/modules/concat/manifests/fragment.pp:46 on node radius-dev.noma

Re: [Puppet Users] trunc number in manifest

2015-03-11 Thread Jonathan Gazeley
I would recommend using the `floor` function from puppetlabs/stdlib https://forge.puppetlabs.com/puppetlabs/stdlib Thanks, Jonathan On 10/03/15 09:27, MaryG wrote: Hi, I get this value from fact: $shmmax = <<$facts['memorysize_mb']*1024*1024)/2 I want to trunc since I get a float 963211427.

Re: [Puppet Users] bitbucket.org or internal git server and puppet-sync git hook

2015-03-06 Thread Jonathan Gazeley
We started using dynamic environments in November. Some of our manifests are sensitive and my employer's policy forbids us from storing this type of information in any kind of third-party service, so I built my own Gitlab server. I wrote a brief note on how to do this on my employer's blog: ht

Re: [Puppet Users] Design help: django deployment

2015-02-19 Thread Jonathan Gazeley
On 18/02/15 21:05, Pete Brown wrote: If you can't find anything decent I would see that as an opportunity to add your resulting module to puppet forge. :) Indeed :) I couldn't find anything quite suitable so I started work on a basic module. https://forge.puppetlabs.com/jgazeley/django Chee

[Puppet Users] Design help: django deployment

2015-02-10 Thread Jonathan Gazeley
Hi folks, The developers at my place are designing a new set of webapps, which will be written in Python/Django. This is new to us (our old stuff is nasty Perl) and I've been asked to look at how to deploy these new apps using Puppet. The Django apps will be developed in Git repos and releas

[Puppet Users] Re: Unexpect error_document behaviour in puppetlabs/apache

2015-01-29 Thread Jonathan Gazeley
Fixed my own problem. The closing square bracket was a few lines too low and some other hash elements were being accidentally included and passed to error_documents. Sorry for the noise! On 29/01/15 11:48, Jonathan Gazeley wrote: Hi folks, I'm hitting an unexpected problem with puppe

[Puppet Users] Unexpect error_document behaviour in puppetlabs/apache

2015-01-29 Thread Jonathan Gazeley
Hi folks, I'm hitting an unexpected problem with puppetlabs/apache. I have an apache::vhost declaration which includes the following block: error_documents => [ { 'error_code' => '404', 'document' => '/error_docs/404.html' }, { 'error_code' => '40

Re: [Puppet Users] managing firewall rules in an auto-scale world

2015-01-26 Thread Jonathan Gazeley
ence is that the system works absolutely fine in our site of about 80 nodes, provided we remember to issue 'puppet node deactivate' when we kill off an old server. Cheers, Jonathan -Jason On Mon, Jan 26, 2015 at 4:28 AM, Jonathan Gazeley <mailto:jonathan.gaze...@bristol.ac.u

Re: [Puppet Users] managing firewall rules in an auto-scale world

2015-01-26 Thread Jonathan Gazeley
I have done exactly this with a MariaDB cluster. Each client that needs to access the database includes a class called mariadb::client which includes this snippet: # Auto-add a firewall rule in the MySQL and MariaDB server just for us @@firewall { "100-mariadb-${::fqdn}": proto => 'tcp

Re: [Puppet Users] Re: Monitoring apache::vhost

2015-01-23 Thread Jonathan Gazeley
On 22/01/15 15:19, jcbollinger wrote: On Wednesday, January 21, 2015 at 5:43:05 AM UTC-6, Jonathan Gazeley wrote: Hi folks, My legacy puppet code includes a manifest called httpd::vhost which installs an Apache vhost and does some extra things, like add Nagios checks

[Puppet Users] Monitoring apache::vhost

2015-01-21 Thread Jonathan Gazeley
Hi folks, My legacy puppet code includes a manifest called httpd::vhost which installs an Apache vhost and does some extra things, like add Nagios checks. I'm now removing my old httpd::vhost module and switching to puppetlabs/apache, and using apache::vhost. This means I now have to manuall

Re: [Puppet Users] Forge module etiquette

2015-01-14 Thread Jonathan Gazeley
that the module is no longer supprted. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes) On Jan 13, 2015, at 11:37 AM, Jonathan Gazeley wrote: Hi folks, Got a question

[Puppet Users] Forge module etiquette

2015-01-13 Thread Jonathan Gazeley
Hi folks, Got a question about the best way to handle Forge module migrations without screwing over anyone who uses that module. Some time ago I started using a Puppet module from Github[1], which was not available on the Forge at the time. I contacted the author to ask if he would consider

[Puppet Users] Upgrading all Forge modules at once

2015-01-06 Thread Jonathan Gazeley
Hi peeps, Is there a way to upgrade all currently-installed Forge modules at the same time? I'm guessing no, since I've looked in the past and haven't found a way. I prepared a small script the enumerates all installed modules and upgrades them sequentially. It's hacky, but it works for me.

[Puppet Users] Nagios user lookup

2014-12-22 Thread Jonathan Gazeley
Hi folks, I'm not sure if I'm thinking about the problem the wrong way, but I'm trying to design a way to have one directory of user information in hiera which feeds the creation of unix users as well as nagios contacts. I have a hiera data structure like this: unifiedusers: jon: nagio

[Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 14:50, Jonathan Gazeley wrote: On 24/11/14 11:54, Jonathan Gazeley wrote: [jg4461@puppet-prod PUPPETROOT]$ sudo puppet node deactivate authconfigtest.resnet.bris.ac.uk Error: Failed to submit 'deactivate node' command for authconfigtest.resnet.bris.ac.uk to P

[Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 11:54, Jonathan Gazeley wrote: [jg4461@puppet-prod PUPPETROOT]$ sudo puppet node deactivate authconfigtest.resnet.bris.ac.uk Error: Failed to submit 'deactivate node' command for authconfigtest.resnet.bris.ac.uk to PuppetDB at puppetdb.resnet.bris.ac.uk:8081: SSL_connec

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 12:48, Felix Frank wrote: On 11/24/2014 12:57 PM, Jonathan Gazeley wrote: On 22/11/14 21:00, Felix Frank wrote: On 11/20/2014 05:07 PM, Jonathan Gazeley wrote: But how does that work when the GitLab server and Puppetmaster are different servers? Well, do they need to be

[Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 11:54, Jonathan Gazeley wrote: Hi all, I'm confused by a new error on my Puppetmaster. It is connected to PuppetDB running on a separate server over SSL on 8081. All Puppet functions work normally, including submitting and retrieving catalogs, facts and exported reso

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Jonathan Gazeley
On 23/11/14 04:23, Spencer Krum wrote: A hook can use ssh to push. We set up a tool called puppetsync that would be run on the puppetmaster, but would be triggered by post-recieve hook over ssh from the git server. Thanks, good tip. puppetsync script looks extremely useful :) -- You received

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Jonathan Gazeley
On 22/11/14 21:00, Felix Frank wrote: On 11/20/2014 05:07 PM, Jonathan Gazeley wrote: But how does that work when the GitLab server and Puppetmaster are different servers? Well, do they need to be? ;-) Sort of, yes. We are quite strict about segregating services on our systems, and the

[Puppet Users] Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
Hi all, I'm confused by a new error on my Puppetmaster. It is connected to PuppetDB running on a separate server over SSL on 8081. All Puppet functions work normally, including submitting and retrieving catalogs, facts and exported resources. However I'm getting errors when attempting to iss

[Puppet Users] Planning dynamic environments with Git

2014-11-20 Thread Jonathan Gazeley
Hi all, I'm in the process of redesigning my puppet architecture. We want to use dynamic environments and Git (with GitLab). I read about using post-receive hooks to automatically create environments and deploy stuff that is pushed into various branches[1],[2]. But how does that work when the

[Puppet Users] PuppetDB IPv4 problems

2014-11-19 Thread Jonathan Gazeley
Hi peeps, I'm rebuilding my old PuppetDB box on a new system, which is on a v6-capable subnet. It has both IPv4 and IPv6 addresses. However, PuppetDB is only listening on v6, regardless of what I put in the jetty.ini. If I set ssl-host = 0.0.0.0 it ends up listening on :::8081 If I set ssl-h

[Puppet Users] Having trouble purging an old node

2014-11-10 Thread Jonathan Gazeley
Hi peeps, I'm having trouble purging a node from PuppetDB. This is something I've done many times before - I just issue "sudo puppet node deactivate " on the puppetmaster, the node gets deactivated in PuppetDB, and other nodes purge appropriate resources on their next checkin (e.g. the monito

Re: [Puppet Users] Automatically remove deactivated host from icinga/nagios config

2014-10-09 Thread Jonathan Gazeley
On 09/10/14 15:11, Kai Timmer wrote: 2014-10-09 15:20 GMT+02:00 Ken Barber >: No not necessarily, you need to enable resource purging with resources like nagios_host: resources { "nagios_host": purge => true, } Oh, I just did not now that. M

Re: [Puppet Users] Error 500

2014-10-03 Thread Jonathan Gazeley
On 03/10/14 13:43, Brian Morris wrote: This is bombing on your facters. I would try commenting out successively more facters, from the bottom of each facter file, until you locate the source of the error. OK. How do you tell this? I couldn't really make head or tail of the error message.

[Puppet Users] Error 500

2014-10-02 Thread Jonathan Gazeley
For quite a long time now, we've intermittently been receiving Error 500 when doing puppet runs. There's nothing bad in the puppetmaster log, but the Apache log on the puppetmaster shows a segfault (see below). Any ideas for debugging/fixing this? Thanks, Jonathan [jg4461@radius03 ~]$ sudo p

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread Jonathan Gazeley
On 18/09/14 15:53, jcbollinger wrote: On Thursday, September 18, 2014 9:26:12 AM UTC-5, Jonathan Gazeley wrote: On 18/09/14 14:27, jcbollinger wrote: 2) The get_data() function relies on the ::serialnumber fact. I am uncertain how that fact is computed, but maybe something

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread Jonathan Gazeley
On 18/09/14 14:27, jcbollinger wrote: On Thursday, September 18, 2014 4:36:16 AM UTC-5, Jonathan Gazeley wrote: Could not retrieve fact='warranty_start', resolution='': undefined method `[]' for nil:NilClass Could not retrieve fact='warranty_end&

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread Jonathan Gazeley
On 17/09/14 17:29, Trevor Vaughan wrote: Ah, so looking at warranty.rb and then stdlib...puppet_vardir.rb, you may be missing this: begin require 'facter/util/puppet_settings' rescue LoadError => e # puppet apply does not add module lib directories to the $LOAD_PATH (See # #4248). It sh

Re: [Puppet Users] Trouble with Facter

2014-09-17 Thread Jonathan Gazeley
On 16/09/14 21:14, Trevor Vaughan wrote: *slow clap* Well played sir, well played. Trevor On Tue, Sep 16, 2014 at 4:00 PM, Jonathan Gazeley <mailto:jonathan.gaze...@bristol.ac.uk>> wrote: On 16/09/14 20:00, Trevor Vaughan wrote: I had a problem similar to this when an

Re: [Puppet Users] Trouble with Facter

2014-09-16 Thread Jonathan Gazeley
On 16/09/14 20:00, Trevor Vaughan wrote: I had a problem similar to this when an error was introduced to my puppet master's served code base. To troubleshoot I did the following: 1) Restart the puppetmaster process (passenger, whatever you're using) 2) Remove everything under /var/lib/puppet/l

Re: [Puppet Users] Re: Trouble with Facter

2014-09-16 Thread Jonathan Gazeley
On 16/09/14 14:30, jcbollinger wrote: On Tuesday, September 16, 2014 4:44:32 AM UTC-5, Jonathan Gazeley wrote: Overnight my Facter seems to reporting new errors. As far as I can see, neither Puppet, Facter, MCollective or the facts in question were updated, so I'm strug

[Puppet Users] Trouble with Facter

2014-09-16 Thread Jonathan Gazeley
Overnight my Facter seems to reporting new errors. As far as I can see, neither Puppet, Facter, MCollective or the facts in question were updated, so I'm struggling to find a cause. The problem as exacerbated because MCollective is emailing me with the same error every 15 minutes. This error i

Re: [Puppet Users] --configprint

2014-09-08 Thread Jonathan Gazeley
On 05/09/14 16:47, R.I.Pienaar wrote: - Original Message - From: "Jonathan Gazeley" To: "puppet-users" Sent: Friday, September 5, 2014 4:39:49 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 16:20, R.I.Pienaar wrote: - Original Message ----- Fro

Re: [Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
On 05/09/14 16:20, R.I.Pienaar wrote: - Original Message - From: "Jonathan Gazeley" To: "puppet-users" Sent: Friday, September 5, 2014 4:09:26 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 16:04, R.I.Pienaar wrote: - Original Message ----- Fro

Re: [Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
On 05/09/14 16:04, R.I.Pienaar wrote: - Original Message - From: "Jonathan Gazeley" To: "puppet-users" Sent: Friday, September 5, 2014 3:59:28 PM Subject: Re: [Puppet Users] --configprint On 05/09/14 15:02, R.I.Pienaar wrote: - Original Message ----- Fro

Re: [Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
On 05/09/14 15:02, R.I.Pienaar wrote: - Original Message - From: "Jonathan Gazeley" To: "puppet-users" Sent: Friday, September 5, 2014 2:53:27 PM Subject: [Puppet Users] --configprint Hi peeps, I've just noticed that "puppet agent --configprint ru

[Puppet Users] --configprint

2014-09-05 Thread Jonathan Gazeley
Hi peeps, I've just noticed that "puppet agent --configprint runinterval" is not doing what I expect. Why does it misreport the environment? The node is indeed checking into the netops environment. [jg4461@web-team-dev ~]$ puppet agent --configprint environment production [jg4461@web-team-dev

Re: [Puppet Users] 'substr' function

2014-09-04 Thread Jonathan Gazeley
; string t" On 04 Sep 2014, at 11:19, Jonathan Gazeley wrote: Another dumb question, but I can't find what I'm looking for. Does Puppet have a function that's equivalent to the substr() function in Perl? I want to truncate arbitrary strings to 7 chars but I can'

[Puppet Users] 'substr' function

2014-09-04 Thread Jonathan Gazeley
Another dumb question, but I can't find what I'm looking for. Does Puppet have a function that's equivalent to the substr() function in Perl? I want to truncate arbitrary strings to 7 chars but I can't see how to do this with any of the built-in functions or functions in stdlib. e.g. substr('h

Re: [Puppet Users] 'inherits' in a defined type

2014-09-03 Thread Jonathan Gazeley
Thanks - this works. Seems a bit inelegant, but it'll have to do. Cheers, Jonathan On 03/09/14 15:05, Atom Powers wrote: You may need to define local versions of them that equal the param or default to the param. $var = $::class::params::var On Wed, Sep 3, 2014 at 5:58 AM, Jon

[Puppet Users] 'inherits' in a defined type

2014-09-03 Thread Jonathan Gazeley
Hopefully this is just me having a bad day, but I'm having trouble writing a new module. I have a mymodule::params class with some sensible site defaults in it, and the other classes "inherit mymodule::params". I also have some defined types, and of course you can't use 'inherits' in a defin

[Puppet Users] Spurious warnings from NetworkManager

2014-08-29 Thread Jonathan Gazeley
For a little while now my puppet has been printing the same warning on every run. I ignored it for ages, but yesaterday since an upgrade to MCollective it now emails me with the warning on every run, so I've decided to fix it. This is the warning: ** (process:24410): WARNING **: nm_client_get

Re: [Puppet Users] Re: Forge doesn't work reliably for me

2014-07-03 Thread Jonathan Gazeley
el Legleux wrote: I'm also seeing this on: https://forge.puppetlabs.com/rismoney/windowsnetwork <https://forge.puppetlabs.com/rismoney/windowsnetwork> On Monday, June 30, 2014 5:24:17 AM UTC-7, Jonathan Gazeley wrote: Recently I have been unable to upgrade some

[Puppet Users] Forge doesn't work reliably for me

2014-06-30 Thread Jonathan Gazeley
Recently I have been unable to upgrade some modules (or check for upgrades) from Puppet Forge using the module tool. All of my modules were originally installed from the Forge. This problem only occurs with some modules but it always occurs. [jg4461@puppet-prod ~]$ sudo puppet module upgrade

[Puppet Users] Re: puppetlabs-mysql options without values

2014-06-24 Thread Jonathan Gazeley
I read the docs again and this time I understood. The correct syntax is 'federated' => true Note to self: RTFM Cheers, Jonathan On 24/06/14 15:53, Jonathan Gazeley wrote: Hi all, I've just started playing with puppetlabs-mysql to replace my nasty legacy manifest fo

[Puppet Users] puppetlabs-mysql options without values

2014-06-24 Thread Jonathan Gazeley
Hi all, I've just started playing with puppetlabs-mysql to replace my nasty legacy manifest for setting up MySQL servers. One thing I'm stuck on, it's easy to set configuration options like "thing = value" but so far I haven't been able to set an option that doesn't take a value, like "thing".

[Puppet Users] Switching to directory environments

2014-05-23 Thread Jonathan Gazeley
Hi puppet peeps, Something to think about for the weekend. We're running puppet 3.6 now and it is warning me that config environments are deprecated and that I should migrate. That's fine, but I'm not quite sure how to replicate the setup I've got now with directory environments. Currently,

Re: [Puppet Users] MCollective across subnets

2014-05-19 Thread Jonathan Gazeley
On 19/05/14 13:51, José Luis Ledesma wrote: Every node has a persistent TCP connection with the middleware server port 61613. Thanks, that's what I needed to know. I had set all the nodes to listen on 61613 for incoming connections from the middleware server. Cheers, Jonathan -- You receiv

[Puppet Users] MCollective across subnets

2014-05-19 Thread Jonathan Gazeley
Hi peeps, I recently installed MCollective using the puppetlabs module. I'm just beginning to find my way around it but I've noticed that quite a few of my nodes aren't appearing in MCollective. The nodes are split across 4 subnets (three publicly address, one private. Two of the public ones

Re: [Puppet Users] "locking" puppet runs

2014-05-12 Thread Jonathan Gazeley
On 09/05/14 20:33, jcbollinger wrote: On Thursday, May 8, 2014 8:58:52 AM UTC-5, Dirk Heinrichs wrote: Am 08.05.2014 15:34, schrieb Jonathan Gazeley: I suppose it would be possible to disable the agent from running as a daemon and use cron, and the cron job could easily use a

[Puppet Users] "locking" puppet runs

2014-05-08 Thread Jonathan Gazeley
We run our puppet agents as daemons with runinterval set to 30m. This works fine for the mostpart, but recently we took on three MariaDB Galera cluster nodes. In order for the cluster to survive, at least one node must be running at all times, i.e. you must not restart the MariaDB service on al

Re: [Puppet Users] Re: Optional parameters in Nagios_host

2014-05-02 Thread Jonathan Gazeley
On 01/05/14 14:18, jcbollinger wrote: On Thursday, May 1, 2014 5:06:37 AM UTC-5, Jonathan Gazeley wrote: I'm struggling a little bit with this one. Some of my puppet nodes have lights-out management. For those that do, I want to put the IP address of their iLOM card in

[Puppet Users] Optional parameters in Nagios_host

2014-05-01 Thread Jonathan Gazeley
I'm struggling a little bit with this one. Some of my puppet nodes have lights-out management. For those that do, I want to put the IP address of their iLOM card in Hiera and have that appear as the notes_url in nagios_host{}. This works well for hosts that *do* have iLOM, but for those with

[Puppet Users] PuppetDB intermittent crashing

2014-04-28 Thread Jonathan Gazeley
Hi folks, I'm using Puppet with PuppetDB running on the same machine, but with the Postgresql database on an external server. Several times a day, PuppetDB seems to crash with errors like the one below. Nodes are then unable to check in, although Puppet will restart its own PuppetDB service on

Re: [Puppet Users] Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley
On 07/04/14 14:10, Felix Frank wrote: Ugh, dammit. This does look like a bug. What version of Puppet is this? Can you open a Jira issue? This is Puppet 3.4.3. I've logged issue PUP-2170 - let me know if you want me to provide any more info. Thanks, Jonathan -- You received this message bec

Re: [Puppet Users] Announce: Puppet 3.5.0 now available!

2014-04-07 Thread Jonathan Gazeley
On 07/04/14 15:08, Kinzel, David wrote: This does not appear to exist athttp://downloads.puppetlabs.com/puppet/puppet-3.5.0.tar.gz yet... Can someone fix it? This release of puppet was withdrawn after bugs were identified. https://groups.google.com/forum/#!msg/puppet-users/uJCKQ7uUlCs/46Hlk

[Puppet Users] Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley
I've been using puppet with nagios for ages without any problems. Recently I looked into the puppet logs on my nagios server and it seems on every puppet run, puppet throws an error and recreates all the nagios_host objects (see below), even if none of them have been changed. I haven't changed

[Puppet Users] Hiera seems to be using stale data

2014-02-19 Thread Jonathan Gazeley
Hi chaps, I'm using Hiera in a light way to store a few global values for my servers, including the site-wide SMTP relay etc. Yesterday I changed one of the values to reflect my organisation's new SMTP server, but the change hasn't been applied to my nodes. I'm using camptocamp/postfix to con

[Puppet Users] Re: "You need rubygems to use Hiera"

2014-01-20 Thread Jonathan Gazeley
s and doing "sudo yum reinstall puppet" put back the files and it now works again. Cheers, Jonathan On 20/01/14 12:19, Jonathan Gazeley wrote: Hi chaps, This morning I started running into an error. All my nodes started failing with: Error: Could not retrieve catalog from remot

[Puppet Users] "You need rubygems to use Hiera"

2014-01-20 Thread Jonathan Gazeley
Hi chaps, This morning I started running into an error. All my nodes started failing with: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: You need rubygems to use Hiera at /home/ispms/PUPPETROOT/environments/common/modules/uob_ntp/manifests/init.pp:5 on node dhcp

Re: [Puppet Users] Re: Nagios_contact in multiple contactgroups

2014-01-15 Thread Jonathan Gazeley
On 14/01/14 23:27, jcbollinger wrote: On Tuesday, January 14, 2014 5:42:54 AM UTC-6, Jonathan Gazeley wrote: This is ridiculous and bizarre behaviour and seems to defy the whole point of having a managed resource, and there is an old, open bug for it. http

  1   2   >