Re: [Puppet Users] List of properties in provider

2014-09-18 Thread Frederik Wagner
Hi Nan, thanks a lot. That works and gave me the right direction, in the end one can use: resource_type.validproperties (or self.class.resource_type.validproperties) Next time I'll check out puppet-dev. Bye Frederik P.S.: BTW nice introductory book ;-) On Wed, Sep 17, 2014 at 6:43 PM, Nan

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

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread jcbollinger
On Thursday, September 18, 2014 4:36:16 AM UTC-5, Jonathan Gazeley wrote: 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

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='anonymous': undefined method `[]' for nil:NilClass Could not retrieve fact='warranty_end',

Re: [Puppet Users] About the params pattern

2014-09-18 Thread jcbollinger
On Wednesday, September 17, 2014 10:55:12 PM UTC-5, François Lafont wrote: Thank you for your answer. Le 17/09/2014 17:12, jcbollinger a écrit : class my_module ( $var1 = $my_module::params::var1, $var2 = $my_module::params::var2, ) inherits my_module::params {

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread jcbollinger
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 changed that affected its result. On

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

[Puppet Users] Constant end of file reached

2014-09-18 Thread Steve Perry
Wondering if anyone has seen this issue before: [root@xxpuppet2 puppet]# puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: end of file reached Info: Retrieving pluginfacts Info: Retrieving plugin Error: /File[/var/lib/puppet/lib]: Failed to

Re: [Puppet Users] Constant end of file reached

2014-09-18 Thread Kylo Ginsberg
On Thu, Sep 18, 2014 at 9:37 AM, Steve Perry askil...@gmail.com wrote: Wondering if anyone has seen this issue before: [root@xxpuppet2 puppet]# puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: end of file reached Info: Retrieving

[Puppet Users] Using Powershell in facters yields no data

2014-09-18 Thread Brian Morris
Hello all, I have been banging my head against this one for a couple of days. I am trying to use Powershell to comb the Windows registry for installed applications, such as VMware Tools, to create a custom facter. If I run this code from a PS prompt it works, and returns the expected data: PS

[Puppet Users] puppet 3.6.2: future parser + extlookup() + environment based selector

2014-09-18 Thread Sergey Arlashin
Hi! We use puppet 3.6.2 with several environments. One of them is vagrant based environment called 'localdev' which is intended for local use only. Also we keep all the secret data like passwords and related stuff in csv files which reside in separate repository. We use extlookup() function to

[Puppet Users] Re: Using Powershell in facters yields no data

2014-09-18 Thread Brian Morris
I almost forgot. I have also tried setting the exec line up as a variable, and returning that variable, to no effect. -- 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

Re: [Puppet Users] Constant end of file reached

2014-09-18 Thread Steve Perry
Thanks for the reply Kylo - We were running puppet 3.7.1-1. After seeing this, I checked the keep alive settings in httpd.conf and KeepAlive was off. After enabling KeepAlive and setting it to 15 seconds, I was still seeing the same issue. I took a snapshot of the virtual machine and then

Re: [Puppet Users] Best practices: client/server VS Git

2014-09-18 Thread Julien Deloubes
Old topic but i was wondering how secure is the git masterless setup. Do you have to separate each node configuration in a git branch or sub directory? I mean if you git clone the whole repo isn't a bit dangerous to have all the configuration on the node? In a master/agent configuration the

Re: [Puppet Users] Best practices: client/server VS Git

2014-09-18 Thread Trevor Vaughan
It depends on how you organize/protect your repos. If you use something like Gitolite, you can restrict branches to specific users which would let you enforce central isolation. However, a mistake on a branch or permissions could indeed lead to sensitive information leaks. Trevor On Thu, Sep

Re: [Puppet Users] Using Powershell in facters yields no data

2014-09-18 Thread Rob Reynolds
On Thu, Sep 18, 2014 at 2:11 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello all, I have been banging my head against this one for a couple of days. I am trying to use Powershell to comb the Windows registry for installed applications, such as VMware Tools, to create a custom facter.

Re: [Puppet Users] Using Powershell in facters yields no data

2014-09-18 Thread Rob Reynolds
On Thu, Sep 18, 2014 at 3:54 PM, Rob Reynolds r...@puppetlabs.com wrote: On Thu, Sep 18, 2014 at 2:11 PM, Brian Morris nomadicextre...@gmail.com wrote: Hello all, I have been banging my head against this one for a couple of days. I am trying to use Powershell to comb the Windows registry

Re: [Puppet Users] Using Powershell in facters yields no data

2014-09-18 Thread Brian Morris
Holy cow, Rob... that was great info! All I did was change System32 to sysnative, and it worked on the first try. All of that frustration boiled down to one part of one path... Thank you for the link, too. It helps to understand why this happens. Cheers to you! On Thu, Sep 18, 2014 at 1:59 PM,

[Puppet Users] puppetlabs-* forge modules and 'parser = future'

2014-09-18 Thread Tim Skirvin
I decided to try out 'parser = future' today, and the first thing to fail was puppetlabs-apache, with errors along the lines of: Filepath: /srv/puppet/env/puppet/modules/apache/templates/httpd.conf.erb Line: 19 Detail: comparison of Float with String failed There's

Re: [Puppet Users] puppetlabs-* forge modules and 'parser = future'

2014-09-18 Thread Spencer Krum
+1 for a plan for this On Thu, Sep 18, 2014 at 2:16 PM, Tim Skirvin tskir...@fnal.gov wrote: I decided to try out 'parser = future' today, and the first thing to fail was puppetlabs-apache, with errors along the lines of: Filepath:

Re: [Puppet Users] About the params pattern

2014-09-18 Thread Francois Lafont
Hi, Le 18/09/2014 16:40, jcbollinger a écrit : Sorry, I worded that very poorly. Really no problem. ;) Class my_module inherits my_module::params. Absent my_module declaring its own local variables $foo1 and $foo2, the inheritance results in variables $::my_module::params::foo1 and

Re: [Puppet Users] Using Powershell in facters yields no data

2014-09-18 Thread Josh Cooper
On Thu, Sep 18, 2014 at 2:17 PM, Brian Morris nomadicextre...@gmail.com wrote: Holy cow, Rob... that was great info! All I did was change System32 to sysnative, and it worked on the first try. All of that frustration boiled down to one part of one path... Thank you for the link, too. It

Re: [Puppet Users] Using Powershell in facters yields no data

2014-09-18 Thread Brian Morris
Thank you for that, Josh, as well as for creating the Powershell module for Puppet. I hope to meet both you and Rob at PuppetConf next week. On Thu, Sep 18, 2014 at 4:24 PM, Josh Cooper j...@puppetlabs.com wrote: On Thu, Sep 18, 2014 at 2:17 PM, Brian Morris nomadicextre...@gmail.com wrote:

[Puppet Users] Example of how to use require with hiera?

2014-09-18 Thread Daniel Johnson
Things like require: File['somefile'] or require: File: somefile both crash, and burn. Not having a require also causes failure as it tries to do things it can't without the prerequisite. After hours of searching I couldn't find any examples to work from. -- teknotus (Take Notice) --

[Puppet Users] Locally Written Puppet Module Does Not Dislay Version Number With: puppet module list

2014-09-18 Thread Allen Santora
Greetings, (puppet-server-3.5.1 on CentOS 6.4) I'm writing my own nodejs manager in Puppet and I want to enforce a version number I have generated the module skeleton with the command: # puppet module generate company-nodejs in /etc/puppet/modules I then created

[Puppet Users] Re: Unable to do puppet apply nodes.pp

2014-09-18 Thread Jürgen Hermann
The Puppet file you pass to an apply is basically a full site.pp, so try adding a node default {…} around your resources. See https://github.com/jhermann/devpi-puppet/blob/master/site.pp#L31 for an example. -- You received this message because you are subscribed to the Google Groups