[Puppet Users] Which version of Puppet am I using?

2017-05-03 Thread Sans
Dear all, I was just trying to install Puppet v3.8.7 with PuppetDB v3.2.4: root@e115-s-pmaster-001:/# dpkg -s puppet|grep -i version Version: 3.8.7-1puppetlabs1 Config-Version: 3.8.7-1puppetlabs1 # root@e115-s-pmaster-001:/# dpkg -s puppetdb|grep -i version Version: 3.2.4-1puppetlabs1 but

Re: [Puppet Users] Upgrading to Puppet 4 - what about the modules

2017-05-03 Thread Rob Nelson
Generally speaking, modules created for Puppet 3 are likely to work in puppet 4 without changes. Of course, that's not to say that all will, you will have to test and make sure yourself since the module author has not. However, if a module on the forge does not support puppet 3 by now, that may

[Puppet Users] Upgrading to Puppet 4 - what about the modules

2017-05-03 Thread Ugo Bellavance
Hi, I'm currently running a puppet 3 server that serves about 20 puppet 3 clients. I use a number of modules, and most of them are not compatible with puppet 4. There is at least one module that is not compatible with puppet 4. Is puppet 4 backwards compatible somehow or do we need to have

[Puppet Users] Re: puppetlabs-inifile versus sudoers

2017-05-03 Thread Warron French
James, thanks for the reply. I didn't actually receive this message in my Gmail mailbox for some reason. I logged into groups.google.com and found that you had replied. Anyway, now that I have read your input, I will mull it all over in my head. Thanks again, Warron On Friday, April 28,

[Puppet Users] Re: Parameterized classes vs defined-types

2017-05-03 Thread Lesley Kimmel
I've [somewhat] recently started developing Puppet modules for use with Foreman and have gone through a couple iterations. At first I was developing a large, broadly-scoped module for a specific purpose. I soon found that in order to provide any amount of customizable behavior I would have to

Re: [Puppet Users] if / case loop syntax help

2017-05-03 Thread Henrik Lindberg
On 03/05/17 18:28, Samir Gahirwal wrote: Thanks for your help Rob! Yes even, I have second doubts about if statement, I will find some other way to fix this conditional statement. You probably want: if !($env == 'test' or $env == 'qa) { # } i.e. "neither of", which you can also

[Puppet Users] Puppet online user study - config file manipulations

2017-05-03 Thread Bernhard Denner
Hello Puppet community, As part of my master thesis, I've developed a module [1] (puppet-libelektra) to partially modify configuration files of different formats on a key value basis, similar to "ini_setting" or "augeas". Behind the scenes I'm using the Elektra configuration library [2]. To

Re: [Puppet Users] if / case loop syntax help

2017-05-03 Thread Samir Gahirwal
Thanks for your help Rob! Yes even, I have second doubts about if statement, I will find some other way to fix this conditional statement. On Wednesday, May 3, 2017 at 6:21:52 AM UTC-7, Rob Nelson wrote: > > I think some characters got gobbled during pasting or by Google Groups; it > looks

[Puppet Users] lvm module help

2017-05-03 Thread dkoleary
Hey, all; I'm having some trouble getting the lvm module to work the way I think it should based on my probable erroneous reading of the documentation. I would like to ensure a logical volume of 2gs is created in vg00 which has plenty of free space to handle the lv creation. I've been using

[Puppet Users] Re: Puppet facter utf-8 error

2017-05-03 Thread mobios
Thank for your reply Rob I checked on the the puppetserver the file encoding > file windows_firewallrules.rb and the encoding was ASCII text. It seems the encoding is in right format :( -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] if / case loop syntax help

2017-05-03 Thread Rob Nelson
I think some characters got gobbled during pasting or by Google Groups; it looks like the parameter block to your type is missing the start/finish. But that's syntax, I'm sure you've got it right or can fix any typos yourself. The suggestion I have is about a common anti-pattern: Don't Repeat

Re: [Puppet Users] Puppet facter utf-8 error

2017-05-03 Thread Rob Nelson
Is there a chance the encoding on the file containing the custom fact itself is not UTF8? It won't matter if the output is UTF-8 if Puppet can't parse it to apply the code inside it. `file ` usually starts with `ASCII` or `UTF-8 Unicode` if it's in the proper format. Rob Nelson

[Puppet Users] Puppet facter utf-8 error

2017-05-03 Thread mobios
Hello Puppet User, Infos: Puppet-client-version = 3.8.4 facter= 2.4.4 Puppetserver = 4.10.0 I wrote a fact to discover all firewallrules on a windows machine. Factname is windows_firewallrules.rb and returnvalue is a nested hash. if i execute following command. facter -p