Re: [Puppet Users] puppetdb question !!!

2014-03-12 Thread Rakesh Kathpal
https://tickets.puppetlabs.com/browse/PDB-508 On Tue, Mar 11, 2014 at 10:28 PM, Ken Barber wrote: > > Just a suggestion .. it will really good if you can add field "date > added" > > to the certname table just reporting purposes. > > Feel free to raise that as a feature request here Rakesh: > h

[Puppet Users] Re: scheduling defined resources

2014-03-12 Thread jcbollinger
On Tuesday, March 11, 2014 7:08:45 AM UTC-5, Mark deJong wrote: > > > I'm having the issue with the passwd::user accepting the schedule > metaparameter. I have tried it both with and without define the variable > 'schedule.' > > The thing that jumps out at me right away is that you are declar

Re: [Puppet Users] scheduling defined resources

2014-03-12 Thread Felix Frank
To answer the original point - no, I disbelieve you can tell puppet to automagically pass certain metaparameters on to all contained resources. That would be a useful feature I think. Note that there is at least one pertinent bug report at https://projects.puppetlabs.com/issues/12653 ...but I be

[Puppet Users] Re: Pushing git repo to Windows agent

2014-03-12 Thread jcbollinger
On Tuesday, March 11, 2014 3:10:25 PM UTC-5, Nick Miller wrote: > > Steps to reproduce: > > 1) Create a new git repository (I'm using Bitbucket) > > 2) Create a file called 'test1.txt', and push it to the repo. > > 3) Create a class to pull the repo. I'm using ssh cert authentication, > but I'm

[Puppet Users] Managing iptables with puppet

2014-03-12 Thread Sandro von Matterhorn
Hello Community, we are managing 40 Linux Servers with Puppet and it is really a great tool. But now we want to configure our firewall settings via Puppet and I am searching for an elegant way to do this. The settings are configured manually, yet. We have some Servers which are using Webserv

[Puppet Users] Re: Puppet dashborad ENC script output blank

2014-03-12 Thread Stefan Heijmans
Hi, Have you defined any classes *in* Puppet Dashbaord and assigned them node1.example.com? Stefan -- 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-us

[Puppet Users] versioncmp.rb example

2014-03-12 Thread samra40390
I looked at versioncmp example available out of box. It is like strcmp. I have a need to write a manifest to check for the existence of java version. If it is 1.5.0.3 or less, upgrade to 1.7.1. This should be done on 10 nodes. Appreciate any example to accomplish this task. thanks -- You rec

Re: [Puppet Users] Managing iptables with puppet

2014-03-12 Thread David Schmitt
Have a look at the example iptables module: https://github.com/example42/puppet-iptables Regards, David On 2014-03-12 11:13, Sandro von Matterhorn wrote: Hello Community, we are managing 40 Linux Servers with Puppet and it is really a great tool. But now we want to configure our firewall se

Re: [Puppet Users] Managing iptables with puppet

2014-03-12 Thread Joseph Swick
On 03/12/2014 06:13 AM, Sandro von Matterhorn wrote: > > > Hello Community, > > we are managing 40 Linux Servers with Puppet and it is really a great tool. > > But now we want to configure our firewall settings via Puppet and I am > searching for an elegant way to do this. > > > But this is

[Puppet Users] augeas, ntp.conf and iburst

2014-03-12 Thread Kenton Brede
I want to add a server on top of the stack in ntp.conf like: server time.example.com iburst server 0.rhel.pool.ntp.org iburst ... I came up with this: augeas { 'ntp.conf': context => '/files/etc/ntp.conf', changes => [ 'ins server before server[1]', 'set server[1] time.exam

[Puppet Users] [JOB] System Engineer - Columbus OH

2014-03-12 Thread Throwe, Jesse
All, My team is looking to expand, and were looking for an experienced systems admin/engineer with a puppet/ruby background. This role has some traditional administration elements, but also has a heavy and rapidly growing devops role to it. It also does require physical locality to the central O

[Puppet Users] Re: my puppets clients are unreachable

2014-03-12 Thread puppetstan
Hi Thanks for your answer but its not a DNS problem because i not join my puppet client. After to change a network device beetween my puppetmaster and my puppets clients, all my puppet client have this problem --> #/etc/init.d/puppet status puppetd is dead but pid file exist My puppet client

[Puppet Users] Replicating += with hiera

2014-03-12 Thread Kenton Brede
I'm in the process of moving to Puppet 3 and hiera. With my old setup I placed users that were on all servers in basenode. Then did a += for any additional users in the node definition. node basenode { users = ['user1', 'user2'] } node server.example.com inherits basenode { users += ['user3'

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Jonathan Proulx
see http://docs.puppetlabs.com/hiera/1/puppet.html "If you need to merge arrays or merge hashes from multiple hierarchy levels, you will have to use the hiera_array or hiera_hash functions in the body of your classes." There's not really a good example in that page, but essentially where 'hiera'

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Felix Frank
Hi, On 03/12/2014 05:11 PM, Kenton Brede wrote: > $users_hosts = hiera("${::hostname}_users") > > Works great until there are no users for "${::hostname}_users." > > How can I make this work when "${::hostname}_users" is empty? I don't fully understand you problem, but I believe you want to p

[Puppet Users] append registry array (REG_MULTI_SZ) with puppet

2014-03-12 Thread Helen Paterson
Hi, When add values to a key using the below puppet code it clears the current values on the server. Is there away to simply append a reg key value ? *class winregistry { registry_value { 'hklm\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\BackConnectionHostNames': ensure =>

[Puppet Users] exclusion/exception in server.pp file

2014-03-12 Thread puppetstan
Hello I have define in my server.pp file diferent zone and I defined my dns servers (resolv_servers). for my /etc/resolv.conf for this zone #Zone 1 if $::ipaddress =~ /^172.17.3./ { $ntp_heure = "ntp.domain.fr" $fusioninventory_proxy = "http://proxy.domain.fr:8080";

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread José Luis Ledesma
El 12/03/2014 17:19, "Jonathan Proulx" escribió: > > see http://docs.puppetlabs.com/hiera/1/puppet.html > > "If you need to merge arrays or merge hashes from multiple hierarchy > levels, you will have to use the hiera_array or hiera_hash functions > in the body of your classes." > > There's not re

Re: [Puppet Users] Re: my puppets clients are unreachable

2014-03-12 Thread José Luis Ledesma
If the puppet agent is dead, you have to bring them up. Really not sure what happened ( I have the agents always stopped) I would recommend some kind of orchestration/automation tool to avoid having to do this kind of things manually.( like mcollective if you want open source) Regards El 12/03/20

Re: [Puppet Users] exclusion/exception in server.pp file

2014-03-12 Thread Peter Bukowinski
On Mar 12, 2014, at 12:40 PM, puppetstan wrote: > Hello > > I have define in my server.pp file diferent zone and I defined my dns servers > (resolv_servers). for my /etc/resolv.conf for this zone > > > #Zone 1 > if $::ipaddress =~ /^172.17.3./ { > $ntp_heure = "ntp.domain.f

Re: [Puppet Users] exclusion/exception in server.pp file

2014-03-12 Thread José Luis Ledesma
Hi, This kind of code is screaming for hiera! But if you want to continue this way, just set another if if $::ipaddress =~ /^172.17.3.4/ { Data here } elsif $::ipaddress =~ /^172.17.3./ { Another data here } El 12/03/2014 17:40, "puppetstan" e

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Kenton Brede
Thanks for the help all. Maybe I'm approaching this in the wrong way but the example puts all users on each box. I'm trying to do something like: users_common = admin1, admin2 server1 = users_common + user1 server2 = users_common server3 = users_common + user1, user3 The goal is to not have to

[Puppet Users] Re: scheduling defined resources

2014-03-12 Thread Mark deJong
On Wednesday, March 12, 2014 9:27:24 AM UTC-4, jcbollinger wrote: > > > > On Tuesday, March 11, 2014 7:08:45 AM UTC-5, Mark deJong wrote: >> >> >> I'm having the issue with the passwd::user accepting the schedule >> metaparameter. I have tried it both with and without define the variable >> 's

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Jonathan Proulx
To sort of meta example the pseudo code :) On Wed, Mar 12, 2014 at 12:11 PM, Kenton Brede wrote: > With the new setup I've got a common.yaml that contains a hash of users with > access to all boxes. Then I thought I'd place additional users for > "server1" in server1.yaml. > > common.yaml > use

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread José Luis Ledesma
Try my code, its just what you want. El 12/03/2014 19:14, "Kenton Brede" escribió: > Thanks for the help all. Maybe I'm approaching this in the wrong way but > the example puts all users on each box. I'm trying to do something like: > > users_common = admin1, admin2 > server1 = users_common + u

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Kenton Brede
Thanks all! Hiera is smarter than I knew. This is great. :) Kent On Wed, Mar 12, 2014 at 1:42 PM, José Luis Ledesma < joseluis.lede...@gmail.com> wrote: > Try my code, its just what you want. > El 12/03/2014 19:14, "Kenton Brede" escribió: > >> Thanks for the help all. Maybe I'm approaching

Re: [Puppet Users] Cleaning up temp files with puppet

2014-03-12 Thread Kenton Brede
How about ending your script with a command that removes itself? /bin/rm path_to_script or /bin/rm $0 Kent On Tue, Mar 11, 2014 at 5:09 PM, nfwlpw wrote: > So I have a puppet module, that gets a script from files/, runs that > script, and after it's done, I'd like to remove it. > > Unfortunat

Re: [Puppet Users] scheduling defined resources

2014-03-12 Thread jcbollinger
On Wednesday, March 12, 2014 8:39:45 AM UTC-5, Felix.Frank wrote: > > To answer the original point - no, I disbelieve you can tell puppet to > automagically pass certain metaparameters on to all contained resources. > > Well, you can't *tell it* to do so, but see http://docs.puppetlabs.com/pup

[Puppet Users] Problems in Ch. 8 and 9 of Pro Puppet 2nd Edition

2014-03-12 Thread Jon Forrest
Here are the issues I found in Chapters 8 and 9. Jon Forrest M = mistake U = unclear T = typo E = text change C = comment (T) Pg. 191 "like librarian puppet" -> "like librarian-puppet" (T) Pg. 191 "rspec-puppet, rspec-system and integrating" -> "rspec-puppet, rspec-system, and integrating" (U)

[Puppet Users] Announce: Facter 2.0.1-rc2 Now Available.

2014-03-12 Thread Ryan McKern
*Facter 2.0.1-rc2* *Pre-release *RC2: March 12, 2014. *Facter 2.0.1-rc2 Downloads* Source: https://downloads.puppetlabs.com/facter/facter-2.0.1-rc2.tar.gz Available in native package format in the pre-release repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com For info

[Puppet Users] Facter facts and sudo

2014-03-12 Thread Jared Curtis
Hi everyone, I currently have a custom fact that pulls some config settings from our postgres servers. It seems that these facts work fine when I run facter or puppet manually; but when the puppet daemon itself does a run the facts are not created. I'm doing two things differently in this fact

Re: [Puppet Users] Facter facts and sudo

2014-03-12 Thread José Luis Ledesma
Hi, Have you reviewed the system logs? Perhaps you have the "requiretty" option in the sudoers. Anyway, why do you use sudo? Agent runs as root, so you can use just su. Regards, El 13/03/2014 01:42, "Jared Curtis" escribió: > Hi everyone, > > I currently have a custom fact that pulls some c