[Puppet Users] slashes or dashes for module names in metadata.json ?

2015-10-16 Thread Vince Skahan
Confused - I've seen both used in PL docs, and both used in various tools and examples. If I'm identifying the puppetlabs stdlib into my metadata.json file as a dependency, as an example: - do I call it 'puppetlabs/stdlib' - do I call it 'puppetlabs-stdlib' - or is the story 'both are

Re: [Puppet Users] Re: Configure Jboss EAP with Puppet: How to set the 'jboss_bind_address'

2015-10-16 Thread Rich Burroughs
Yes exactly, you want to override those defaults in Hiera as John says. If you are implementing a module off of the Forge, you shouldn't have to edit the module itself. They should be designed so you can use them with your own data already. Rich On Fri, Oct 16, 2015 at 6:24 AM jcbollinger wrote

Re: [Puppet Users] Making a Provider API Call Idempotent

2015-10-16 Thread Danny Roberts
> > > Excellent analysis, you've almost solved it. > > https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb#L78 > > returns the value from the API. This has to match what puppet receives > from the manifest. Adding '.to_sym' or something similar s

Re: [Puppet Users] file absent in config manifest fails

2015-10-16 Thread Tim Dunphy
> > ... in a catalog. The module is just source code on the master which can > contain as many "conflicting" resource definitions as it wants. The > important thing is that only unique resources are then sent to the agent. I > don't know the newrelic module, but from the class names I'd assume, onl

[Puppet Users] Re: Configure Jboss EAP with Puppet: How to set the 'jboss_bind_address'

2015-10-16 Thread jcbollinger
On Thursday, October 15, 2015 at 6:44:41 AM UTC-5, Wei Chen wrote:]# cat init.pp > > # Puppet class jboss_install to install jboss rpm and start > # the jboss server as service > class jboss_eap ( > $jboss_bind_address = '', > $jboss_bind_address_management = '', > $jboss_multicast_address =

[Puppet Users] Re: Reusable function/class code

2015-10-16 Thread jcbollinger
On Thursday, October 15, 2015 at 11:53:49 AM UTC-5, Matt Shields wrote: > > I need to do the same process over and over again for numerous users. > What would be the easy way to create a class or function to wrap the > following code so that each time I need to do the following it's a single

Re: [Puppet Users] file absent in config manifest fails

2015-10-16 Thread David Schmitt
On 15/10/2015 04:55, Tim Dunphy wrote: If you specify 'ensure => absent' then you should not have a 'content' line. They are contradictory parameters. (Also, but unrelated, the path parameter is duplicative since specifying the path as the file resource name serves the same pur

Re: [Puppet Users] Scheduled changes to SSL certs

2015-10-16 Thread David Schmitt
On 16/10/2015 11:11, Jonathan Gazeley wrote: 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 m

Re: [Puppet Users] Making a Provider API Call Idempotent

2015-10-16 Thread David Schmitt
On 14/10/2015 22:56, Danny Roberts wrote: In a custom type/provider I am writing it seems that the provider is not entirely idempotent. The provider (https://github.com/kemra102/puppet-githubapi/blob/master/lib/puppet/provider/github_repo/default.rb) is calling the Github API (https://devel

[Puppet Users] Scheduled changes to SSL certs

2015-10-16 Thread Thomas Müller
You could use the strftime function from stdlib instead of generate. I don't know a better way as comparing dates in a conditional. -- 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 i

Re: [Puppet Users] Scheduled changes to SSL certs

2015-10-16 Thread Christopher Wood
Have your monitoring system pop up a critical alert for any certs which will expire in the next week. Have a patch ready to go for your pp/eyaml files. On Fri, Oct 16, 2015 at 11:11:31AM +0100, Jonathan Gazeley wrote: > Here's a problem that might have an interesting solution. > > I use Puppet t

Re: [Puppet Users] How to ensure the rpm version?

2015-10-16 Thread David Schmitt
Hi Wei, On 16/10/2015 09:50, Wei Chen wrote: Hi, I try to use the puppet to configure the Jboss EAP 6.X. My first init.pp looks as follow: ... class jboss_rpm_install { # Required RPM package $jboss_core_rpm = [ "jbossas-appclient", "jbossas-bundles",

[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] How to ensure the rpm version?

2015-10-16 Thread Wei Chen
Hi, I try to use the puppet to configure the Jboss EAP 6.X. My first init.pp looks as follow: ... class jboss_rpm_install { # Required RPM package $jboss_core_rpm = [ "jbossas-appclient", "jbossas-bundles", "jbossas-core", "jbossas-hornetq-n