[Puppet Users] return codes from puppet command

2014-02-19 Thread Mikael Lindqvist
Hi, Where are the return codes from the puppet command documented? I have seen 0, 2 and 6 and by the look of it they all seem to signal success, but it would be nice to see a list of them. Thanks! // Mikael -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] Good resources for writing rspec tests for puppet code changes?

2014-02-19 Thread Martin Alfke
Hi, On 19 Feb 2014, at 07:44, Johan De Wit wrote: > On 02/19/2014 02:03 AM, HPUX_PUPPET wrote: >> >> Just a bit more explanation... >> >> When I was looking for references I was only finding puppet-lint and >> rspec-puppet for testing manifests, but not finding anything for writing the >> sp

[Puppet Users] Why is the environment setting limited to alphanumeric characters only?

2014-02-19 Thread Matthew Burgess
Hi, Our infrastructure design has the environment that a server lives in embedded in its FQDN: hostname.seccomp-environment.local Where seccomp is the 'security compartment' (i.e. the kind of data it houses) and env is the environment name. I set my puppet.conf up so that 'environment = sc-env1

[Puppet Users] Hiera seems to be using stale data

2014-02-19 Thread Jonathan Gazeley
Hi chaps, I'm using Hiera in a light way to store a few global values for my servers, including the site-wide SMTP relay etc. Yesterday I changed one of the values to reflect my organisation's new SMTP server, but the change hasn't been applied to my nodes. I'm using camptocamp/postfix to con

[Puppet Users] Server Groups - How to ?

2014-02-19 Thread kaustubh chaudhari
Hi All, In Dashboard: I wish to group Windows server and Linux server in Windows server group and Linux server group respectively. Is there a way to do that for more that 3000 servers ? adding individual will be tedious job. Can some one help me here? Kind Regards, Kaustubh -- You receive

[Puppet Users] Re: Error: undefined method `gsub' for nil:NilClass

2014-02-19 Thread Fiddyspence
That was my fault - I pushed a change without actually running the tests and got everything I deserved as a result. Apologies for the bug, but it's fixed now. On Friday, 31 January 2014 18:44:07 UTC, Juan Pablo Daniel Borgna wrote: > > Hi guys, can you give me a hint on this? > > Thanks! > > Deb

[Puppet Users] Puppet and best way to append a new user to sshd_config AllowUsers with augeas

2014-02-19 Thread Remi Ferrand
Hi, I'm just starting to play with puppet and augeas and I've managed to add a new user to the AllowUsers list of *sshd_config*. I'm doing it this way: $user='testuser' augeas {'test': context => '/files/etc/ssh/sshd_config', changes => [ "defnode 001 etc/ssh/sshd_confi

Re: [Puppet Users] return codes from puppet command

2014-02-19 Thread Andrey Kozichev
puppet help agent * --detailed-exitcodes: Provide transaction information via exit codes. If this is enabled, an exit code of '2' means there were changes, an exit code of '4' means there were failures during the transaction, and an exit code of '6' means there were both changes and fa

Re: [Puppet Users] Why is the environment setting limited to alphanumeric characters only?

2014-02-19 Thread Jason Antman
Matt, I don't remember the technical details on why it exists, but it does. No, there aren't any plans to relax it that I'm aware of... Yeah, we use git branches as environments, and we essentially do 's/[^A-Za-z0-9_]/_/g' on the branch names to get environment names. -Jason On 02/19/2014

Re: [Puppet Users] Good resources for writing rspec tests for puppet code changes?

2014-02-19 Thread Jim Perry
Thanks for the links, I will take a look at them. I would love to get some training on it, but the company won't spring for it. So it looks like I am hacking it out with everyone's help and Google. On Wed, Feb 19, 2014 at 4:44 AM, Martin Alfke wrote: > Hi, > > On 19 Feb 2014, at 07:44, Johan D

Re: [Puppet Users] Re: Good resources for writing rspec tests for puppet code changes?

2014-02-19 Thread HPUX_PUPPET
Thanks Johan and Martin. I looked at the links you sent, but this is what I have already found and it really did not provide any new insights. The main problem I am having is that what I put in rspec code should be working but just does not. I have even hard-coded in a true or false return,

Re: [Puppet Users] Re: Good resources for writing rspec tests for puppet code changes?

2014-02-19 Thread Johan De Wit
On 02/19/2014 03:22 PM, HPUX_PUPPET wrote: Thanks Johan and Martin. I looked at the links you sent, but this is what I have already found and it really did not provide any new insights. The main problem I am having is that what I put in rspec code should be working but just does not. I have e

[Puppet Users] Re: Hiera seems to be using stale data

2014-02-19 Thread jcbollinger
On Wednesday, February 19, 2014 4:52:45 AM UTC-6, Jonathan Gazeley wrote: > > Hi chaps, > > I'm using Hiera in a light way to store a few global values for my > servers, including the site-wide SMTP relay etc. Yesterday I changed one > of the values to reflect my organisation's new SMTP server

[Puppet Users] Re: Combining stages with hiera

2014-02-19 Thread jcbollinger
On Tuesday, February 18, 2014 3:34:46 PM UTC-6, Jordan Wright wrote: > > I have some Windows systems that I need to configure a user's profile. The > user has to be logged into for the profile to be created. I came up with > the solution below but it seems kinda hacky. > Indeed. > I assum

[Puppet Users] Re: how to require a md5sum before installing?

2014-02-19 Thread Andy Spiegl
Hi Rafael, > http://forge.puppetlabs.com/gini/archive Thanks, I'll try that! Sounds promising. Now I only have to find a way to securely get md5sum.exe onto the machines, uhm... Thanks! Andy. -- Every generation laughs at the old fashions but religiously follows the new. (Henry David Tho

Re: [Puppet Users] Re: Good resources for writing rspec tests for puppet code changes?

2014-02-19 Thread HPUX_PUPPET
On Wednesday, February 19, 2014 9:28:55 AM UTC-5, Johan De Wit wrote: > > Don't have any experience/access to hpux, but you can always show us > the code and the rspec files. > So we can have at least a look at it :) > > And multiple eyes see more then two :) > > Thanks. I think I tracked

[Puppet Users] Re: Puppet and best way to append a new user to sshd_config AllowUsers with augeas

2014-02-19 Thread Stefan Heijmans
Hi, You could also use the augeasproviders module [1] from the forge. Checkout the sshd_config_provider examples here [2]. Stefan [1] http://forge.puppetlabs.com/domcleal/augeasproviders [2] http://augeasproviders.com/documentation/examples.html#sshd_config_provider -- You received this me

[Puppet Users] connecting puppet master and agent

2014-02-19 Thread krishna chaitanya kurnala
HI I am new to Puppet and having a tough time understanding the process of how Authentication works in puppet. I am trying to connect puppet 3.4 master and agent on a centos 6 machine. we use host files, rather than dns. This could be a simple question, but, I want to learn to Concepts. I made

Re: [Puppet Users] Hash iteration order in a template not consistent

2014-02-19 Thread Andre Nathan
Hello Sorry to ressurect this old thread, but I've just found this issue upgrading from Puppet 2.7.x to Puppet 3. It's true that ruby 1.8 hash order cannot be relied on, but it should always be the same, right? I mean, one doesn't know which order the hash contents will be iterated on, but wha

Re: [Puppet Users] return codes from puppet command

2014-02-19 Thread Erik Dalén
-- test/-t turns on the detailed exit codes option On 19 February 2014 08:33, Andrey Kozichev wrote: > puppet help agent > > * --detailed-exitcodes: > > Provide transaction information via exit codes. If this is enabled, an > exit > > code of '2' means there were changes, an exit code of '4

[Puppet Users] Re: Combining stages with hiera

2014-02-19 Thread Jordan Wright
I guess I should explain my situation a bit. The intent of this system is to configure kisok type systems. Each machine will be logged into a local limited user account that is running an application that the public will use. At this time I have no need and don't ever plan to have two local ac

[Puppet Users] Announce: Puppet 3.4.3 Now Available

2014-02-19 Thread Melissa Stone
3.4.3 is a bug fix release in the Puppet 3.4 series. - Final: February 19, 2014. Bug Fixes -- PUP-1473: User resource fails on UTF-8 comment Puppet's user resource now supports UTF-8 characters for the c

[Puppet Users] Action required: ruby-shadow package broken, update required

2014-02-19 Thread Ryan McKern
*Bottom line on top* Due to a incompatible change found after release, if you installed version 2.3.2 of the ruby-shadow package from yum.puppetlabs.com then you need to upgrade your yum cache and downgrade to version 1:2.2.0 of ruby-shadow. *What happened?* As part of our on-going effort to pro

[Puppet Users] Setting validproperties fields in provider modules

2014-02-19 Thread HPUX_PUPPET
I am still working to the HPUX provider to handle password expirations and I have gotten the max and min password age values extracted from the OS, but for the life of me I cannot seem to get them to assign to the :password_max_age and :password_min_age fields in the Ruby code. I know from look