[Puppet Users] puppet random notification confusion

2014-02-10 Thread Muhammad Yousuf Khan
i am being through a exercise on docs.puppetlabs.com and i am confuse with the notification output. as it shows last message first and first message at last. i just need to know why the output notifications are random here is my .pp file. @puppet:/etc/puppetlabs/puppet# cat text.pp file {'/tmp/

[Puppet Users] Complex search on StoreConfigs resources is not supported

2014-02-10 Thread Peter Romfeld
HI, I got the Error: Error 400 on SERVER: Complex search on StoreConfigs resources is not supported I cant find any information on this and dont know what could cause it. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

[Puppet Users] Ordering in each_pair

2014-02-10 Thread Simon
Hi, I have read about the known "feature" of ruby 1.8.7 not using the entered order for each_pair and using some random order instead, has anyone managed a work around for this that does not mean having to upgrade to 1.9.3 I have hiera data that looks something like this my::variables: "

Re: [Puppet Users] puppet random notification confusion

2014-02-10 Thread Denmat
Hi, Puppet doesn't run in any specific order unless you tell it to. Look at http://docs.puppetlabs.com/learning/ordering.html for the learning series. Basically you can use 'require' declarations to get order: file {'/tmp/thing': require => File['/tmp/that'] ... } This says, the 'thing' fi

Re: [Puppet Users] can puppet manage puppet agents or puppetmasters?

2014-02-10 Thread Jason Antman
There are some issues with Puppet restarting (or stopping) itself. Beyond that, yes, I use puppet modules to manage the configuration of all of my masters and agents. There's a puppetlabs-puppet module, but it's horribly out of date. At the moment, I'm using a fork (https://github.com/jbouse/p

Re: [Puppet Users] can puppet manage puppet agents or puppetmasters?

2014-02-10 Thread Thomas Noonan II
I, too, have a puppet module that configures puppet. In my experience it isn't really any different than puppet managing any other daemon, with one glaring exception. That exception is that if you push out a bad puppet conf with puppet, then you're gonna have to go in and fix all your nodes witho

[Puppet Users] check file after exec

2014-02-10 Thread Mikael Lindqvist
Hi, Thanks for a great program! I have one request though, and also wonder if there is some other way to do this... when I have an exec task, such as: exec { "task": command => "/bin/some/command", creates => "/some/file/somewhere" } It would be really nice if puppet could check for t

[Puppet Users] Re: puppetboard and ssl

2014-02-10 Thread Daniele Sluijters
Hey, It should work, Puppetboard is supposed to just pass in the settings to pypuppetdb so unless we really screwed up somewhere that shouldn't be the issue. Can you show me your settings.py file? -- Daniele Sluijters On Saturday, 8 February 2014 23:35:43 UTC+1, Johan De Wit wrote: > > Hi,

Re: [Puppet Users] File resource fails on Windows 7 x64 (other resources with different file works)

2014-02-10 Thread Laurent Lepinay
I have a similar issue here, i'm sourcing files from a directory recursively: some files get copied but some throw the same error as yours. I'm on windows too. Le vendredi 7 février 2014 18:35:32 UTC+1, Rob Reynolds a écrit : > > First question - what version of puppet? > > Second question - can

[Puppet Users] Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Rafael Cristaldo
Hi All! Has anybody already needed to manage HOMES on desktops computers with puppet ? I have create a class to manage the /etc/skel directory...so the problem is that after thet the user loggin ... the home has been created em copied all /etc/skel files.. But NOW i need to put another LINK f

[Puppet Users] Re: Ordering in each_pair

2014-02-10 Thread jcbollinger
On Monday, February 10, 2014 2:59:41 AM UTC-6, Simon wrote: > > Hi, > > I have read about the known "feature" of ruby 1.8.7 not using the entered > order for each_pair and using some random order instead, > This is an utterly routine characteristic of such data structures. If you want access

Re: [Puppet Users] Re: puppetboard and ssl

2014-02-10 Thread Johan De Wit
Hoi Daniele, /var/www/puppetboard/settings.py PUPPETDB_HOST = 'puppet.koewacht.net' PUPPETDB_PORT = 8080 #PUPPETDB_SSL_VERIFY = True #PUPPETDB_KEY = '/etc/puppetboard/pb_priv.pem' #PUPPETDB_CERT ='/etc/pupeptboard/pb_pub.pem' PUPPETDB_TIMEOUT = 20 DEV_LISTEN_HOST = '127.0.0.1' DEV_LISTEN_PORT =

[Puppet Users] Re: Exec script from puppet file server

2014-02-10 Thread jcbollinger
On Friday, February 7, 2014 5:16:57 AM UTC-6, zerozer...@gmail.com wrote: > > Hi, > I need to use an exec resource to execute a shell script, and I'd like to > keep the script on the puppet master. > > Is there a way to make the exec resource execute the script directly from > puppet's built-in

Re: [Puppet Users] Re: puppetboard and ssl

2014-02-10 Thread Johan De Wit
Daniele, I should create an alias pupept=puppet :) I will test this further this evening, but seems logic the typo did it (well broke it) On 02/10/2014 03:48 PM, Johan De Wit wrote: Hoi Daniele, /var/www/puppetboard/settings.py PUPPETDB_HOST = 'puppet.koewacht.net' PUPPETDB_PORT = 8080 #PUP

[Puppet Users] Problem configuring inventory search in puppet-dashboard

2014-02-10 Thread Jesus Roncero
Hi all, I have a problem trying to configure puppet-dashboard when using the inventory search, and I'm running out of ideas. I have configured puppet-dashboard to run under apache passenger and following the instructions on http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html I have

Re: [Puppet Users] Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Joseph Swick
On 02/10/2014 09:15 AM, Rafael Cristaldo wrote: > Hi All! > > Has anybody already needed to manage HOMES on desktops computers with > puppet ? > > I have create a class to manage the /etc/skel directory...so the problem is > that after thet the user loggin ... the home has been created em copie

[Puppet Users] Re: Ordering in each_pair

2014-02-10 Thread Simon
Hi John, thanks for the reply! sorry for confusing things, that will teach me to cut and paste without reading, the template i pasted was from yesterday when i was testing with 1.9.3 the method i use at the moment is <% @vars.each_pair do |varname, hash | -%> <%= hash['comment'] %> <%= varn

[Puppet Users] Re: Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Rafael Cristaldo
Hi Joseph Swick ! Thanks for the answer ! This really can help me! .. but thereis some questions about your manifest. Did you build custom factes for ${username} and ${homedir_real} ? Or you propose to edit it and change this values to the real Username and Homdir ? This is really a very valid

Re: [Puppet Users] Complex search on StoreConfigs resources is not supported

2014-02-10 Thread Deepak Giridharagopal
On Mon, Feb 10, 2014 at 1:49 AM, Peter Romfeld wrote: > HI, > > I got the Error: > Error 400 on SERVER: Complex search on StoreConfigs resources is not > supported > > I cant find any information on this and dont know what could cause it. > The error occurs when you try and do and/or operations i

[Puppet Users] Re: non existing classes cause puppet 2.7 client to error out

2014-02-10 Thread Kyle Flavin
Thanks for the response John, I was afraid that would be the case. Back to the drawing board. On Friday, February 7, 2014 6:09:23 AM UTC-8, jcbollinger wrote: > > > > On Thursday, February 6, 2014 2:17:00 PM UTC-6, Kyle Flavin wrote: >> >> I put this up on the Puppet Ask forum as well. Hopefull

Re: [Puppet Users] Unable to start puppetmaster on Mac OSX Mavericks

2014-02-10 Thread Moses Mendoza
Hi Ryan, Can you start the puppetmaster manually, e.g. from terminal, with `puppet master --no-daemonize --verbose --debug`? What's the output? On Sun, Feb 9, 2014 at 5:18 PM, Ryan Nideffer wrote: > I've followed the installation guide for Mac OSX and I get this in > puppetmaster.err upon start

Re: [Puppet Users] puppet random notification confusion

2014-02-10 Thread Jason Antman
I seem to be pointing someone to this every week. You may want to refer to John Bollinger's 2014-01-03 reply to the "wondering if I want to[sic] much now" thread, which gives some excellent descriptions on 'how not to Puppet': https://groups.google.com/d/msg/puppet-users/IGqjPpVCrKA/VcUKiV3xfPk

Re: [Puppet Users] Re: Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Joseph Swick
On 02/10/2014 12:09 PM, Rafael Cristaldo wrote: > Hi Joseph Swick ! > > Thanks for the answer ! > > This really can help me! .. but thereis some questions about your manifest. > > Did you build custom factes for ${username} and ${homedir_real} ? Or you > propose to edit it and change this value

[Puppet Users] puppet post install launchd osx

2014-02-10 Thread Rudy McComb
I'm having a an issue with running puppet as launchd. I'm using this http://docs.puppetlabs.com/guides/files/com.puppetlabs.puppet.plist and on some macs it will run and start at reboot and on others it doesnt. According to the logs puppet is exiting with a code of 1. What can i due to ensure

Re: [Puppet Users] Roles / profile pattern , inquire on how you handle some specific situations

2014-02-10 Thread Ramin K
On 2/9/2014 11:37 PM, JuanBrein wrote: THanks and great post by the way! I think we are pretty much on the same thinking behind. You don't add the "package" resource directly but using create_resources from hiera is almost the same thing. THe only difference is that your way is more flexible as

Re: [Puppet Users] Re: puppetboard and ssl

2014-02-10 Thread Johan De Wit
Daniele, It was not the typo. But it seems the ssl_verify=True did the bad thing. >>> db = connect(host='puppet.koewacht.net',port='8081',ssl_key='/etc/puppetboard/pb_priv.pem',ssl_cert='/etc/puppetboard/pb_pub.pem',api_version=3,ssl_verify=True,timeout=20) >>> nodes = db.nodes() >>> for nod

[Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-10 Thread Melissa Stone
We are pleased to let you know we are currently working on creating RHEL 7 packages. We want to do a thorough testing of these packages, so we are taking our time with this platform. However, we still want to get the packages we do have into your hands. As such, we're going to be slowly populating

Re: [Puppet Users] puppet post install launchd osx

2014-02-10 Thread Moses Mendoza
On Mon, Feb 10, 2014 at 10:55 AM, Rudy McComb wrote: > I'm having a an issue with running puppet as launchd. I'm using this > http://docs.puppetlabs.com/guides/files/com.puppetlabs.puppet.plist and on > some macs it will run and start at reboot and on others it doesnt. > > According to the logs pu

[Puppet Users] Announce: Facter 1.7.5 Now Available

2014-02-10 Thread Melissa Stone
Facter 1.7.5 --- - RC1: January 21, 2014. - RC2: February 3, 2014 - Final: February 10, 2014 Facter 1.7.5 Downloads -- Source: https://downloads.puppetlabs.com/facter/facter-1.7.5.tar.gz Available in native packag

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-10 Thread Johan De Wit
On 02/10/2014 08:46 PM, Melissa Stone wrote: We are pleased to let you know we are currently working on creating RHEL 7 packages. We want to do a thorough testing of these packages, so we are taking our time with this platform. However, we still want to get the packages we do have into your han

Re: [Puppet Users] puppet post install launchd osx

2014-02-10 Thread Rudy McComb
Hi Moses, I'm on Puppet 3.4.2, Facter 1.7.4, Mavericks 10.9.1 and installed with the dmg. I also keep puppet updated using gem update puppet. ill install puppet and facter with the dmg and then gem install puppet so that it creates the nec users groups etc for puppet. I have updated the plis

[Puppet Users] Re: Puppet manage HOMES on Desktop Computers

2014-02-10 Thread Rafael Cristaldo
Well, for now I still can not manage HOMES users, as I would like, but I could manage the user who is logged tty7. With this I can apply a class inthe User's Node and manipulate your home/Desktop, /home/Documents etc. I created a custom fact to identify which user is logged in at the time and

[Puppet Users] puppet 3.4: N00b has Trouble with regexes in a if-else structure manifest config.pp

2014-02-10 Thread notify . sina
Hi I'm probably doing something horribly wrong. I can sense it, but it hasn't properly kicked in yet... I'm trying to create a module for iptables. This is to make servers that have similar purpose, have the same flrewall configuration. I created the modules/iptables/{manifests,files,templates}

[Puppet Users] Re: puppet 3.4: N00b has Trouble with regexes in a if-else structure manifest config.pp

2014-02-10 Thread Rafael Cristaldo
Em segunda-feira, 10 de fevereiro de 2014 18h36min05s UTC-2, notif...@gmail.com escreveu: > > Hi > > I'm probably doing something horribly wrong. I can sense it, but it hasn't > properly kicked in yet... > > I'm trying to create a module for iptables. This is to make servers that > have simi

[Puppet Users] Re: puppet 3.4: N00b has Trouble with regexes in a if-else structure manifest config.pp

2014-02-10 Thread notify . sina
Hi, This is what I have there: #ls ../modules/iptables/manifests/ config.pp init.pp install.pp service.pp # cat ../modules/iptables/manifests/init.pp class iptables { include iptables::install, iptables::config, iptables::service } On Monday, February 10, 2014 9:57:39 PM UTC+1, Raf

Re: [Puppet Users] puppet 3.4: N00b has Trouble with regexes in a if-else structure manifest config.pp

2014-02-10 Thread Joseph Swick
On 02/10/2014 03:36 PM, notify.s...@gmail.com wrote: > Hi > > I'm probably doing something horribly wrong. I can sense it, but it hasn't > properly kicked in yet... > > I'm trying to create a module for iptables. This is to make servers that > have similar purpose, have the same flrewall config

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-10 Thread Johan De Wit
FYI Facter 1.7.5 installs and seems to work. Mcollective rpms, we have to wait till the dependencies repo is build. rubygem-stomp is needed. On 02/10/2014 08:46 PM, Melissa Stone wrote: We are pleased to let you know we are currently working on creating RHEL 7 packages. We want to do a thor

Re: [Puppet Users] RHEL 7 Repository up on yum.puppetlabs.com

2014-02-10 Thread Matthaus Owens
Johan, Thanks for the quick feedback. We've been working on the dependencies repo for rhel 7 and it should be getting updated today and tomorrow. On Mon, Feb 10, 2014 at 1:16 PM, Johan De Wit wrote: > FYI > > Facter 1.7.5 installs and seems to work. > > Mcollective rpms, we have to wait till t

[Puppet Users] Re: check file after exec

2014-02-10 Thread jcbollinger
On Monday, February 10, 2014 6:26:56 AM UTC-6, Mikael Lindqvist wrote: > > Hi, > > Thanks for a great program! > > I have one request though, and also wonder if there is some other way to > do this... > > when I have an exec task, such as: > > exec { "task": > command => "/bin/some/command",

[Puppet Users] Include class if package exists

2014-02-10 Thread Pascal Robert
Hi, I'm using Puppet for the first time, and for my tests, I'm recreating our Nagios setup into a Puppet modules. It works at 95%, but I do have a problem: my module include files but I also need to modify a couple of Nagios configuration files that comes with the Nagios RPM package. Example:

Re: [Puppet Users] Re: puppetboard and ssl

2014-02-10 Thread Daniele Sluijters
Hey Johan, SSL_VERIFY trips up a few people, I need better docs on that. When you connect to PuppetDB as a client you need to present two things, a private key and a public key signed by the Certificate Authority that also signed the server certificate of PuppetDB. This in all likeliness is you

[Puppet Users] Re: Include class if package exists

2014-02-10 Thread Daniele Sluijters
Hi, What you're actually running into is that you want the nagios::commandes class to be executed after the nagios package has been installed. In that case, use the before metaparameter: package { 'nagios': ensure => present, before => Class['nagios::commandes'], } This should fix your