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

2015-03-06 Thread Ian Mortimer
On Sat, 7 Mar 2015, Nick Howes wrote: Thanks Felix; all good points. I'll probably start off with define exec to drive `firewall-cmd` then, and see how that turns out. There's a puppet-firewalld package in the Fedora and Epel repos which installs Jiri Popelka's firewalld module. -- Ian

[Puppet Users] exec resource applied on every run

2015-03-06 Thread Tim Dunphy
Hey all, I've created a very basic puppet module to install bacula and ensure that it's running. However one exec statement in my manifest gets applied every time. Here's the manifest: class bacula::install { if $hostname == ops { file { /var/bacula: ensure = directory,

Re: [Puppet Users] puppet 2.7.26 certificate verify failed master and client the same

2015-03-06 Thread Felix Frank
Hi, on the agent, try puppet agent --configprint server It likely indicates the FQDN of the old master. Change your puppet.conf accordingly, so that the new FQDN is used instead. [main] server=gso0puppet01... HTH, Felix On 03/04/2015 05:35 PM, Ed Deloye wrote: I am building a new puppet

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

Re: [Puppet Users] Order class with parameter

2015-03-06 Thread Thomas Bendler
Hi Felix, 2015-03-06 11:38 GMT+01:00 Felix Frank felix.fr...@alumni.tu-berlin.de: [ ​...]​ now I see - you're relying on https://github.com/thbe/puppet-yum to handle the repo, yes? You are lacking a crucial dependency then is all. Class['::yum] - Class['icinga::package'] -

Re: [Puppet Users] Puppet Open Source with own Certificates

2015-03-06 Thread Felix Frank
On 03/05/2015 08:33 AM, hoize wrote: I hope you can help me. At PuppetLabs-Docs I only found the configuration for Puppet Enterprise for my issue. Hi, apart from some path names, it should be applicable to open source puppet. Can you link the specific howto you are following, and indicate

Re: [Puppet Users] Access Catalog from validate block in custom type

2015-03-06 Thread Henrik Lindberg
On 2015-06-03 12:18, Gavin Williams wrote: Morning all I'm trying to add some validation to a new type I've written[1] for my Puppet-glassfish module[2]. As part of the validation, I need to access the current catalog to make sure that there's no another resources defined with the same /:name/

Re: [Puppet Users] Access Catalog from validate block in custom type

2015-03-06 Thread Gavin Williams
Henrik Cheers for the response. I possibly didn't explain it that clearly... This resource is trying to match the name of a different resource with the same target. E.g, I was trying to guard against this: # JMS resource jmsresource { 'jms/test': ensure = present, restype =

Re: [Puppet Users] Problems with a resource default definition

2015-03-06 Thread Henrik Lindberg
On 2015-02-03 15:30, Christian Hase wrote: Hi folks, i want to declare a resource default globally for all available classes. I searched google and found this site: Which version of puppet are you using? Suspect that there is an issue with default values for meta parameters (like provider).

Re: [Puppet Users] Order class with parameter

2015-03-06 Thread Felix Frank
Hi, now I see - you're relying on https://github.com/thbe/puppet-yum to handle the repo, yes? You are lacking a crucial dependency then is all. Class['::yum] - Class['icinga::package'] - Class['icinga::config'] - Class['icinga::service'] I'm still a little confused as to how the yum module

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

2015-03-06 Thread Felix Frank
On 03/06/2015 04:12 PM, Nick Howes wrote: 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. That's

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,

[Puppet Users] Re: Puppetdb 2.2.2 - warning in log every 2 seconds when modifying host jetty.ini

2015-03-06 Thread Duncan McNaught
It was HAProxy with ssl-hello-chk set causing the issue. On Thursday, March 5, 2015 at 5:25:21 PM UTC-7, Duncan McNaught wrote: Hi All, I used the puppetlabs-puppetdb module to set up puppetdb on a new CentOS 6.5 server. When I modify /etc/puppetdb/conf.d/jetty.ini so that host =

[Puppet Users] Re: Implement Puppet Master into our productive environment

2015-03-06 Thread jcbollinger
On Thursday, March 5, 2015 at 6:24:55 PM UTC-6, hoize wrote: Hello! Tthe last months I installed and tested a Puppet Master in a testing environment. But now I have to imigrate it into our Productive Environment. So I have some questions: 1. How many nodes can Puppet Master (Open

[Puppet Users] Re: Problems with a resource default definition

2015-03-06 Thread jcbollinger
On Thursday, March 5, 2015 at 6:27:55 PM UTC-6, Christian Hase wrote: Hi folks, i want to declare a resource default globally for all available classes. I searched google and found this site: https://ask.puppetlabs.com/question/396/howto-force-systemd-as-service-provider-globally/

[Puppet Users] Re: question about using custom types and defined types together

2015-03-06 Thread jcbollinger
On Thursday, March 5, 2015 at 6:26:00 PM UTC-6, Stanley Karunditu wrote: Hello, I'm new to puppet and puppet module writing and kindly request your help. My understanding of proper puppet module practices is still young. Being tasked to write a puppet module for a utility that

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

2015-03-06 Thread Carl P
Hi, 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/various modules The nodes I'm trying to apply config to are members of

Re: [Puppet Users] Order class with parameter

2015-03-06 Thread Thomas Bendler
Hi Felix, it's on the forge (https://forge.puppetlabs.com/thbe/icinga). The declaration of the repository is in the init section ( https://github.com/thbe/puppet-icinga/blob/master/manifests/init.pp). The idea behind this is a generic module for yum that allows service modules to add

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:

[Puppet Users] Access Catalog from validate block in custom type

2015-03-06 Thread Gavin Williams
Morning all I'm trying to add some validation to a new type I've written[1] for my Puppet-glassfish module[2]. As part of the validation, I need to access the current catalog to make sure that there's no another resources defined with the same *:name* and *:target *values. The reason behind

Re: [Puppet Users] Inter-node dependency

2015-03-06 Thread lupindeterd
hi, thank you for the reply, however the end state really is to have both machine in sync and working as pair of primary/standby Database log shipping. The flow therefore are: 1) create backup in serverA 2) copy to serverB 3) restore copy serverB 4) start replication mode serverB 5) start

Re: [Puppet Users] Inter-node dependency

2015-03-06 Thread Felix Frank
On 03/06/2015 06:50 PM, lupindet...@gmail.com wrote: hi, thank you for the reply, however the end state really is to have both machine in sync and working as pair of primary/standby Database log shipping. The flow therefore are: 1) create backup in serverA 2) copy to serverB 3)

[Puppet Users] Re: Implement Puppet Master into our productive environment

2015-03-06 Thread Byron Miller
Foreman allows for multiple masters, its pretty simple - install a puppet master and foreman-proxy. The default install of foreman with passenger will handle hundreds of nodes on an average sized VM/server. On Thursday, March 5, 2015 at 6:24:55 PM UTC-6, hoize wrote: Hello! Tthe last

Re: [Puppet Users] exec resource applied on every run

2015-03-06 Thread Brian Mathis
Hi Tim, The exec type has some attributes that can control this, such as onlyif, unless, and creates. Please review the documentation here: https://docs.puppetlabs.com/references/latest/type.html#exec ❧ Brian Mathis @orev On Fri, Mar 6, 2015 at 5:30 PM, Tim Dunphy bluethu...@gmail.com