Re: [Puppet Users] Re: Initial Puppet 4.0.0 Migration Experience

2015-05-20 Thread Nick Howes
On Wednesday, 20 May 2015 13:22:37 UTC+1, Matthias Saou wrote: > > > Next, the very cryprtic "undefined method `key_attributes' for > nil:NilClass" message is apparently caused by the change of having > empty arrays now evaluate to true. This is the fix I came up with : > > > https://github.co

[Puppet Users] Re: Initial Puppet 4.0.0 Migration Experience

2015-05-20 Thread Nick Howes
On Wednesday, 20 May 2015 11:52:06 UTC+1, Matthias Saou wrote: > > I will post followups if > anyone is interested. > > Count me interested - I'm in the same pre-leap state (3.7 with all the future features enabled) and looking at 4, so I'm keen to hear all the details. -- You received this

[Puppet Users] Build scripts for puppet-agent?

2015-05-12 Thread Nick Howes
Hi there Does anyone have an idea of when the build scripts used to make the puppet-agent AIO package will be available? I'd like to tweak it to build a Solaris IPS package and it was mentioned elsewhere that they'd appear eventually. Cheers -- You received this message because you are subsc

[Puppet Users] Re: I can't seem to get $::processorcount to be an integer...

2015-04-16 Thread Nick Howes
On Thursday, 16 April 2015 10:02:46 UTC+1, Matthias Saou wrote: > > Hi, > > Using : > puppet-3.7.5-1.el6.noarch > puppetserver-1.0.2-1.el6.noarch > facter-2.4.1-1.el6.x86_64 > > And with this in my puppetserver's puppet.conf : > parser = future > stringify_facts = false > > I stil

[Puppet Users] Re: Puppet Opensource: handling EC2 instances on AWS

2015-04-15 Thread Nick Howes
You could set tags on EC2 instances, and use those to classify them. You might write a new fact called e.g. ec2_server_role, that reads in a tag from the server, then use that fact (possibly in the default node definition, depending on how you do things) to decide what role the node has. Writi

[Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-24 Thread Nick Howes
On Tuesday, 24 March 2015 15:22:16 UTC, Tom Limoncelli wrote: > > I'd like to assign $v one hash if $y == 'foo' and a different hash if > $y == 'bar'. However it seems like conditional assignments aren't > permitted. > > $ puppet --version > 3.7.3 > > $ cat -n hash-condeq.pp > 1 $y = 'f

[Puppet Users] Re: Debugging Puppet catalog compilation issues

2015-03-24 Thread Nick Howes
On Tuesday, 24 March 2015 12:10:25 UTC, Frederic Conrotte wrote: > > Hello > > I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this > compilation issue: > > > [1;31mError: Could not retrieve catalog from remote server: Error 400 on > SERVER: assert_type(): Expected type Stri

[Puppet Users] Provider/type with no name

2015-03-24 Thread Nick Howes
Hi, I'm writing a couple of types and providers to manage firewalld direct-mode chains and rules, which don't have any intrinsic name or ID. I've worked around it by combining their unique distinguishing properties into a name, which is used in `self.instances` so `puppet resource` works, and s

Re: [Puppet Users] Re: Tracking services that need to be restarted

2015-03-24 Thread Nick Howes
On Friday, 20 March 2015 14:04:25 UTC, Christopher Wood wrote: > > On Fri, Mar 20, 2015 at 06:17:55AM -0700, jcbollinger wrote: > > >exec { "Flag myservice for restart": > > command => '/bin/touch /var/run/services/myservice_update', > > refreshonly => true, > > subscrib

[Puppet Users] Tracking services that need to be restarted

2015-03-19 Thread Nick Howes
Hi, I've been wondering about what to do when configuration files change on services that I don't want to automatically restart. It's simple enough to make it automatically restart by having the file notify the service, but for important services I thought it would be good to have a module that

[Puppet Users] Re: --environment being over ridden by PE console's default environment group

2015-03-07 Thread Nick Howes
On Friday, 6 March 2015 16:04:26 UTC, Carl P wrote: > > I'm using dynamic environments with PE 3.7. I have production and > development sub-directories in /etc/puppetlabs/puppet/environments > containing environment.conf, hiera.yaml, Puppetfile, manifests/site.pp and > modules/ > > The nodes I'm

Re: [Puppet Users] Share data between custom functions/resources/providers?

2015-03-07 Thread Nick Howes
On Friday, 6 March 2015 23:16:26 UTC, ianm wrote: > > > There's a puppet-firewalld package in the Fedora and Epel repos > which installs Jiri Popelka's firewalld module. > > That's the one I've been using up til now (installed using r10k rather than an OS package) - the issue with that module

Re: [Puppet Users] Share data between custom functions/resources/providers?

2015-03-06 Thread Nick Howes
Thanks Felix; all good points. I'll probably start off with define & exec to drive `firewall-cmd` then, and see how that turns out. -- 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

Re: [Puppet Users] Share data between custom functions/resources/providers?

2015-03-06 Thread Nick Howes
Hi Felix, I'm aware there are no functions in the example, which would be implemented either as a `define` in Puppet or as a custom type in Ruby - I was just expressing that I'm open to any solution, which may involve some helper function under the hood. At the moment I'm using an existing module

[Puppet Users] Re: Get list of nodes where resource is used

2015-03-05 Thread Nick Howes
If you've got PuppetDB set up already then this is fairly simple. We use the puppetdbquery module (https://github.com/dalen/puppet-puppetdbquery) to do something like $collectors = query_nodes('Package[A]', 'fqdn') Which would return an array of the FQDNs of all nodes that declared package

[Puppet Users] Re: Reports not showing up in foreman.

2015-03-05 Thread Nick Howes
Facts are probably coming in as Foreman is the ENC (the node.rb script). Reports definitely should work, so something seems amiss. Is there a foreman.rb in your Puppet installation on the subordinate masters? It could be in a number of places depending on your Ruby installation. This is the scr

[Puppet Users] Share data between custom functions/resources/providers?

2015-03-05 Thread Nick Howes
Hello, I am trying to define something that would let me do this, or something like it: fw_service { elasticsearch: ports => [ '9200-9300' ], zone => work, } fw_zone { work: source_addresses => [ '10.0.0.0/16' ] } And for the fw_zone resource to be able to enumerate data f

[Puppet Users] Re: Using Ruby puppet db library - syntax question

2015-01-23 Thread Nick Howes
On Tuesday, 20 January 2015 20:00:14 UTC, JonY wrote: I'm hoping to use this library (or something similar) to request a single > fact from all nodes. The equiv curl request would be 'curl -X GET > http://host:8080/v3/facts --data-urlencode > 'query=["=","name","fs_space"]'. > > I've been loo

[Puppet Users] Re: Puppet Dashboard/console

2015-01-23 Thread Nick Howes
On Thursday, 22 January 2015 17:23:40 UTC, skc wrote: > > Hi > > I am very new to puppet and I have installed puppet master server and > configure 2 node ( agent ) and its working. > > I want to know how can I manage puppet, > > Is there any management console/ Puppet dashboard ? > > If yes ans

Re: [Puppet Users] Announce: Puppet Server 1.0.2 available!

2015-01-23 Thread Nick Howes
On Friday, 23 January 2015 01:09:36 UTC, oschad wrote: > > On Wed, 21 Jan 2015 05:40:27 -0800 (PST) > Mike Hendon > wrote: > > > Triggering a refresh when you've changed manifests is also a pain. > > Is a refresh on every change needed? > > Best Regards > Oli > It varies for me - some change