[Puppet Users] Re: Help on Hiera automate

2014-01-13 Thread CD
Hi Alessandro, I think if you specify $users it has all the content of children but in a single string. Don't know whether this is what you need. try: $users=hiera('users') notify { $users: } Regards, CD On Tuesday, January 14, 2014 11:02:29 AM UTC+10, alessandro mazzoli wrote: > > Hi all, > I

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-13 Thread Rob Reynolds
On Mon, Jan 13, 2014 at 4:24 PM, jcbollinger wrote: > > > On Monday, January 13, 2014 2:45:11 PM UTC-6, Rob Reynolds wrote: >> >> Paul, >> We've patched that here https://github.com/puppetlabs/puppet-win32-ruby/ >> pull/17 which should be included in puppet 3.4.0 forward. We are >> updating to th

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-13 Thread Ian Mortimer
On 14/01/14 03:49, Andrey Kozichev wrote: This scenario works well if on the class input I just supply single mountpoint -> then I do hiera("mountpointname") and create_resources() But if I want to have multiple Mountpoints defined per host I need to supply an Array to the class and then iterate

[Puppet Users] Help on Hiera automate

2014-01-13 Thread alessandro mazzoli
Hi all, I'm trying to automate the set up of the machines staging,passing by an php application ServerName , ProjectType,DbCredentials etc..(all strings) and convert to yaml Here's my common.yaml: --- users: -sn: server.example.com -project : Symfony -dbname : test -dbuser : test -dbp

[Puppet Users] Re: Issues in setting up puppet agent and master configuratuon

2014-01-13 Thread Morris Jones
Anil, I ran into this problem as well. Here's the solution: puppetdb binds to learn.localdomain at startup for the https service, as you can see in /etc/puppetlabs/puppetdb/conf.d/jetty.ini. The problem you have is probably the same as the one I had. I edited /etc/hosts to move learn.localdomai

Re: [Puppet Users] Upgrading a .msi package through Puppet

2014-01-13 Thread Mike Gaboury
I am trying to update Puppet itself and the new version is not installing. It appears that the UpgradeCode between Puppet 3.2.3 and 3.4.2 are identical {2AD3D11C-61B3-4710-B106-B4FDEC5FA358}. Is this expected or an oversight? If it is expected, how is the best way to upgrade Puppet with Puppe

[Puppet Users] Re: Puppet User Administration, set password only at creating of user-accounts

2014-01-13 Thread house_mann
Ygor, thanks to the scripting. I'll try this later, looks good. And thanks to those other hints and opinions... ako Am Montag, 13. Januar 2014 18:35:20 UTC+1 schrieb house_mann: > > HI their, > > i'm very new to puppet and can't find an solutions to get this up and > running... > User creation

[Puppet Users] Re: Passing a yaml throws errors on only some parameters

2014-01-13 Thread jcbollinger
On Monday, January 13, 2014 3:36:25 PM UTC-6, Karolis Pabijanskas wrote: > > > > Hi list, > > I have a define type with parameters like this: > > define user ( $username=$title, > $comment='', > $uid='', > $gid=$uid, > $groups=[ 'u

Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread jcbollinger
On Monday, January 13, 2014 10:22:36 AM UTC-6, Ramin K wrote: > > > Stages should be treated as black boxes where you assume everything that > was suppose to happen in an earlier stage has already happened. That's a good description. > You can > not notify to any resources from a resourc

[Puppet Users] Re: Nagios_contact in multiple contactgroups

2014-01-13 Thread jcbollinger
On Monday, January 13, 2014 5:38:39 AM UTC-6, Jonathan Gazeley wrote: > > Hi all, > > I'm using hiera with puppet to create Nagios contacts. However, it seems > that Nagios contacts do not get put into multiple contact groups. No > errors are thrown, but I think this is wrong. > > After runni

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-13 Thread jcbollinger
On Monday, January 13, 2014 2:45:11 PM UTC-6, Rob Reynolds wrote: > > Paul, > We've patched that here > https://github.com/puppetlabs/puppet-win32-ruby/pull/17 which should be > included in puppet 3.4.0 forward. We are updating to the current ruby > version (484). > > We are now using JIRA

Re: [Puppet Users] Passing a yaml throws errors on only some parameters

2014-01-13 Thread Karolis Pabijanskas
Thanks for this, however this is unlikely. This error is there even when the sudo and sudo_nopasswd variables are strings. Even if I pass something like: user: uid: 500 comment: Test user password: PW HASH shell: /bin/bash sudo: Whatever I get the same error. The sudo_nopasswd might g

[Puppet Users] hiera calling_class files fail with yaml provider on Windows

2014-01-13 Thread Ben Hines
Howdy, My organization has a pre-existing hiera configuration which uses {calling_class}.yaml configuration files, like: classes/base::openldap.yaml Which get pulled into hiera via this path in the hierarchy. :hierarchy: ... - "%{environment}/classes/%{calling_class}" This does not work on

Re: [Puppet Users] Passing a yaml throws errors on only some parameters

2014-01-13 Thread Ramin K
On 1/13/2014 1:36 PM, Karolis Pabijanskas wrote: Hi list, I have a define type with parameters like this: define user ( $username=$title, $comment='', $uid='', $gid=$uid, $groups=[ 'users',], $pass

[Puppet Users] Passing a yaml throws errors on only some parameters

2014-01-13 Thread Karolis Pabijanskas
Hi list, I have a define type with parameters like this: define user ( $username=$title, $comment='', $uid='', $gid=$uid, $groups=[ 'users',], $password='', $shell="/bin/false", $su

Re: [Puppet Users] Puppet User Administration, set password only at creating of user-accounts

2014-01-13 Thread Darin Perusich
I filed a feature request for this about a year ago. https://tickets.puppetlabs.com/browse/PUP-1331 https://projects.puppetlabs.com/issues/15037 -- Later, Darin On Mon, Jan 13, 2014 at 2:56 PM, Jose Luis Ledesma wrote: > Would be nice to have something like 'initial_password' in the user resour

Re: [Puppet Users] Choo choo here comes the FOSDEM train

2014-01-13 Thread Johan De Wit
Original Message Subject: Re: [Belgian-Puppet-User-Group] FOSDEM - From the puppet-user mailing list Date: Mon, 13 Jan 2014 18:04:24 + From: Maarten Thibaut (mthibaut) To: Johan De Wit CC: belgian-puppet-user-group-annou...@meetup.com Hi Johan, I will

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-13 Thread Rob Reynolds
Paul, We've patched that here https://github.com/puppetlabs/puppet-win32-ruby/pull/17 which should be included in puppet 3.4.0 forward. We are updating to the current ruby version (484). We are now using JIRA for reporting issues, you would do that here: https://tickets.puppetlabs.com On Mon, J

Re: [Puppet Users] Puppet User Administration, set password only at creating of user-accounts

2014-01-13 Thread Jose Luis Ledesma
Would be nice to have something like 'initial_password' in the user resource. Perhaps a solution could be create a custom fact with all the users of the server, and set an 'if' statement before the user resource. Hth -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: overriding class parameters with 'undef'

2014-01-13 Thread Jeffrey Lewis
On Monday, January 13, 2014 6:27:17 AM UTC-8, jcbollinger wrote: > All class parameters must have values assigned, whether by explicit > declaration or by default value (or by automated data binding, but that > requires Puppet 3). Undef is not a value. In fact "not a value" is > practically i

[Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-13 Thread Paul Nickerson
I have an issue to report in the Puppet Community Package Repository, but I don't how to do so. The Puppet Labs issue tracker and project directory home page says "After choosing a project, use

Re: [Puppet Users] Puppet User Administration, set password only at creating of user-accounts

2014-01-13 Thread Dan White
This is a bash script I use on Red Hat 5 systems. #!/bin/bash # Looking for "!!" in the second field of the user's shadow information # This says that the password has never been set rc=`/bin/grep $1 /etc/shadow | awk -F":" '($2 == "!!")' | wc -l` if [ $rc -e

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-13 Thread Andrey Kozichev
Hello guys, I am working on similar task. Trying to find the way to define all NFS shares somewhere in the high level of hierarchy and then just add/remove them on the node level just by name. So I am using the class which accepts mountpoint names, then I want to do hiera lookup for each name to

[Puppet Users] Puppet User Administration, set password only at creating of user-accounts

2014-01-13 Thread house_mann
HI their, i'm very new to puppet and can't find an solutions to get this up and running... User creation works well. But when the user "devop" (or all others) change his password, it will overwrite after next 'puppet-run' to the hardcoded-one. Correctly, because there is no setup/config to prev

[Puppet Users] Re: logstash module to control service

2014-01-13 Thread Jose Luis Ledesma
It seems that the script when stops kills also himself -- 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 to puppet-users+unsubscr...@googlegroups.com. To view this di

Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread Ramin K
On 1/13/2014 5:51 AM, Denis Kot wrote: I have the following classes: class zabbix-agent { ... package {'zabbix-agent': ensure => installed } ... service { "zabbix-agent": ensure => running, start=> "/etc/init.d/zabbix-agent start", stop

[Puppet Users] Re: puppet catalog compilation job queue idea

2014-01-13 Thread jcbollinger
On Sunday, January 12, 2014 7:31:03 PM UTC-6, Patrick wrote: > > > > On Friday, January 10, 2014 3:57:03 PM UTC-5, jcbollinger wrote: >> >> >> The key idea here seems to be to improve the master's average response >> time for catalog requests by pre-compiling and caching catalogs, then >> servi

[Puppet Users] Re: using $environment yaml file with pre loaded modules

2014-01-13 Thread Simon
I found that puppet does not like - "%{environment}/%{environment}" if i set a variable ENV to the same and have - "%{environment}/%{ENV}" it works On Monday, January 13, 2014 2:24:59 PM UTC, Simon wrote: > > hi, > > I have a strange problem that I cant see a solution too - > > I have 2

[Puppet Users] using $environment yaml file with pre loaded modules

2014-01-13 Thread Simon
hi, I have a strange problem that I cant see a solution too - I have 2 modules i want to load before main so that network and yum are setup before the other modules load. i have the following in manifests/site.pp to do this stage { 'pre' : before => Stage['main'], } node default {

Re: [Puppet Users] Notify service in one class from other class

2014-01-13 Thread Joseph Swick
On 01/13/2014 08:51 AM, Denis Kot wrote: > I have the following classes: > > node 'prerun' { > ... >class {'zabbix-agent': stage => pre} > ... > } > > but that code produces error: > > err: Could not apply complete catalog: Found dependency cycles in the > following relationships: Servi

[Puppet Users] Re: logstash module to control service

2014-01-13 Thread jcbollinger
On Saturday, January 11, 2014 6:56:29 AM UTC-6, bluethundr wrote: > > Hey all, > > I've created a number of puppet modules that control services in the form > of init scripts on the hosts it controls. > > However I recently created a logstash init script and a puppet module to > control it. It

[Puppet Users] Re: overriding class parameters with 'undef'

2014-01-13 Thread jcbollinger
On Friday, January 10, 2014 5:04:50 PM UTC-6, Jeffrey Lewis wrote: > > Hello, > > I apologize in advance if this question is redundant. > > I'm using puppet version 2.7.11 (because that's what Ubuntu 12.04 LTS has > to offer) and I'd like to override a class default parameter with 'undef'. > F

[Puppet Users] Notify service in one class from other class

2014-01-13 Thread Denis Kot
I have the following classes: class zabbix-agent { ... package {'zabbix-agent': ensure => installed } ... service { "zabbix-agent": ensure => running, start=> "/etc/init.d/zabbix-agent start", stop=> "/etc/init.d/zabbix-agent stop", st

Re: [Puppet Users] Kill agent after timeout

2014-01-13 Thread Alex
I run Ruby 1.8 indeed. I ended up scheduling a script to check whether the agent hangs and restarts it. https://gist.github.com/aluetjen/8400615 On Monday, January 13, 2014 8:06:17 AM UTC+1, Toni Schmidbauer wrote: > > At Sun, 12 Jan 2014 08:33:10 -0800 (PST), > Alex wrote: > > * There are t

Re: [Puppet Users] managing puppet module dependencies

2014-01-13 Thread David Portabella
Hi Ryan, I do as follows: $ puppet module install puppetlabs-mysql $ puppet module list --tree └─┬ puppetlabs-mysql (v2.1.0) └── puppetlabs-stdlib (v4.1.0) edit /Users/david/.puppet/modules/mysql/Modulefile and change: dependency 'puppetlabs/stdlib', '>= 2.2.1' by: dependency 'puppetlab

Re: [Puppet Users] Kill agent after timeout

2014-01-13 Thread Toni Schmidbauer
At Sun, 12 Jan 2014 08:33:10 -0800 (PST), Alex wrote: > * There are two puppet processes. The agent and a child process > "Puppet: applying configuration" > * A lck file with the PID of the child process. > * The lock file is two days old > * There are no log entries in the agent's log file. we'v

[Puppet Users] Using hiera to separate code and data

2014-01-13 Thread CD
Dear users, I am quite new to Puppet and need some help in following scenario. This could be not possible or the way I think might be completely not in line with the Puppet. I believe experts can help me with a solution/suggestion. I am planning to use hiera to specify all variable values for a

[Puppet Users] puppet certificate confusion

2014-01-13 Thread Fabrice Bacchella
I'm very confused about puppet certificate and ca management. There is many puppet command to do the work : caLocal Puppet Certificate Authority management. cert Manage certificates and requests certificate Provide access to the CA for certificate manageme

[Puppet Users] Nagios_contact in multiple contactgroups

2014-01-13 Thread Jonathan Gazeley
Hi all, I'm using hiera with puppet to create Nagios contacts. However, it seems that Nagios contacts do not get put into multiple contact groups. No errors are thrown, but I think this is wrong. After running the below code the contact "jg4461" is only placed in the "resnet" contactgroup (s

Re: [Puppet Users] Re: ldap puppetVar not set.

2014-01-13 Thread Johan De Wit
Not with that little information. Just add a notify { "nagios contains $::nagios": } for a start, and see whats happening. You can also run puppet with --debug and post the relevant parts grts Jo On 01/13/2014 11:55 AM, Daniel Kupfer wrote: Johan, I use the puppetVar's for more then jus

[Puppet Users] Re: ldap puppetVar not set.

2014-01-13 Thread Daniel Kupfer
Johan, I use the puppetVar's for more then just including classes. Do you perhaps happen to know why the 'if' statement doesn't work? Kind regards, Daniel. On Monday, January 13, 2014 10:26:02 AM UTC+1, Daniel Kupfer wrote: > > Hi, > I'm migrating from puppet 2.x to 3.3.2, but i'm having troubl

Re: [Puppet Users] ldap puppetVar not set.

2014-01-13 Thread Daniel Kupfer
Johan, (dank) thanks for your reply, i will have a look at that. Regards, Daniel. On Monday, January 13, 2014 10:53:26 AM UTC+1, Johan De Wit wrote: > > Any raeson why not using puppetClass in ldap instead ? Then that class > will be included and is that kind of code not needed. > > I assume th

Re: [Puppet Users] ldap puppetVar not set.

2014-01-13 Thread Johan De Wit
Any raeson why not using puppetClass in ldap instead ? Then that class will be included and is that kind of code not needed. I assume the ldap configuration in yout puppet.conf is OK concerning the ldap part ? Grts Johan On 01/13/2014 10:26 AM, Daniel Kupfer wrote: Hi, I'm migrating from

[Puppet Users] ldap puppetVar not set.

2014-01-13 Thread Daniel Kupfer
Hi, I'm migrating from puppet 2.x to 3.3.2, but i'm having trouble with the puppetvar from ldap. In puppet 2 i could do: if $nagios { include nagios } But in puppet 3 this does not seem to work anymore. Now i didn't set up the former puppetmaster. Am i missing something? The ldap puppetnode

Re: [Puppet Users] Choo choo here comes the FOSDEM train

2014-01-13 Thread Martin Alfke
Hi, my name is Martin Alfke from Berlin/Germany. This year I will attend FODEM for the first time. I will also be at the booth and at the config room. Unluckily I can not attend CfgmgmtCamp. I will arrive from Berlin via plane on Friday afternoon. Looking forward seeing you at FOSDEM. On 13 J