Re: [Puppet Users] puppet user context

2014-01-16 Thread Robert Turk
Am 16.01.14 13:50, schrieb Andrey Kozichev: Do you need to run this only for logged in users? No not really... You suggest I could do something like checking which users exist on the machine and then run it for these users ignoring if they are logged in or not? You can use facter fact to retu

[Puppet Users] Puppet failed run: How to find?

2014-01-16 Thread kaustubh chaudhari
Hi All, How can i find all the failed puppet run in last 30 days! In dash board i can see if the agent run is failing, but if it has recovered it will be green again. Practically it not possible to see the Daily run status and look for a red mark if i have 3000 servers. Is there a way i can s

Re: [Puppet Users] exec only if condition is true

2014-01-16 Thread kaustubh chaudhari
Hey GS, Thanks a lot! it work as expected. I also explored about other options that i can use with exec. Cheerzzz! -Kaustubh On Friday, January 17, 2014 2:19:20 AM UTC-5, Gonzalo wrote: > > Add "refreshonly => true" to the exec definition. > > GS > On 17/01/2014 6:17 pm, "kaustubh chaudhari" >

Re: [Puppet Users] exec only if condition is true

2014-01-16 Thread Gonzalo Servat
Add "refreshonly => true" to the exec definition. GS On 17/01/2014 6:17 pm, "kaustubh chaudhari" wrote: > Hi All, > > I am not a programer or from the same background, trying to explore! > Please excuse if you find this question silly. > > I was to exec a .bat file of if there are any changes to

[Puppet Users] exec only if condition is true

2014-01-16 Thread kaustubh chaudhari
Hi All, I am not a programer or from the same background, trying to explore! Please excuse if you find this question silly. I was to exec a .bat file of if there are any changes to the files. Eg: i am trying to activate windows with the valid keys, however this action is required only once. My

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-16 Thread Andrey Kozichev
another option to use create_resources('hostinclude',$netentry) On 16 Jan 2014 23:47, "Nick Cammorato" wrote: > Your augeas resource is always called hosts_include which is why it's > doing that. Try including the entry[name] in that resource name. > On Jan 16, 2014 4:15 PM, "Reinaldo Lima" wro

Re: [Puppet Users] 400 Error on nodes when trying to receive catalog from master

2014-01-16 Thread Andrey Kozichev
looks like your apache redirect doesn't work. Or puppet master stopped.(if you are using mongrel) check htttpd.conf Andrey On 16 Jan 2014 19:20, "Jordan Piel" wrote: > I've dabbled with puppet, but this is my first time setting it up. I'm > running RHEL 6.5 on PE 3.1.1 on both my master and my a

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-16 Thread Nick Cammorato
Your augeas resource is always called hosts_include which is why it's doing that. Try including the entry[name] in that resource name. On Jan 16, 2014 4:15 PM, "Reinaldo Lima" wrote: > Hi Everyone, > > I'm trying to write a class that put some entries in "/etc/hosts" file as > follow below: > >

Re: [Puppet Users] Rspec-puppet and testing for expected failures...

2014-01-16 Thread fatmcgav
Quick update... Many thanks to @superseb for working up a PR[1] that fixes the expect errors. Trick was to use 'subject' within the expect, rather than a resource title... @superseb also highlighted an old Puppet bug[2] which I've migrated across to Jira[3] for review/decision. However as per the

[Puppet Users] Augeas: Duplicate declaration

2014-01-16 Thread Reinaldo Lima
Hi Everyone, I'm trying to write a class that put some entries in "/etc/hosts" file as follow below: *class hosts {* *$netentry = {* *host01 => { iphost => '192.168.10.1', hostName => host01 },* *host02 => { iphost => '192.168.10.2', hostName => host02

Re: [Puppet Users] Three level hashes in ERB

2014-01-16 Thread Sebastiaan
On 01/16/2014 05:47 PM, paul.le...@complex.com wrote: I have been trying to create a three level hash to dump into a template, but the deepest layer of the hash seems to not work. My hash: $clusters = { 'Default' => { '127.0.0.1:11211' => { 'hostname' => '127.0.0.1',

[Puppet Users] Replacing file errors: getaddrinfo: No such host is known

2014-01-16 Thread pskovshurik
What's filebucket? Don't think I've been introduced to that yet Debug or verbose isn't giving anything useful :( -- 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

Re: [Puppet Users] Re: Passing hash as parameters to manifest

2014-01-16 Thread Reinaldo Lima
Nan Liu, this help me A LOT, thank you so much! On Thursday, August 11, 2011 11:11:31 PM UTC-3, Nan Liu wrote: > > On Thu, Aug 11, 2011 at 7:19 PM, treydock > > wrote: > > Looking up the use of create_resources which is mentioned in the bug > > you linked, looks like it's available only in 2.7.

[Puppet Users] 400 Error on nodes when trying to receive catalog from master

2014-01-16 Thread Jordan Piel
I've dabbled with puppet, but this is my first time setting it up. I'm running RHEL 6.5 on PE 3.1.1 on both my master and my agents. The issue I'm having is the agents throw an error during a normal puppet run. The error I'm seeing when I run 'puppet agent run --test' is... Error: Could not req

[Puppet Users] Replacing file errors: getaddrinfo: No such host is known

2014-01-16 Thread Jose Luis Ledesma
Could be something about filebucket? Perhaps launching the agent with debug gives some hint -- 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+unsubs

[Puppet Users] Replacing file errors: getaddrinfo: No such host is known

2014-01-16 Thread pskovshurik
Hi guys, I am new to Puppet and have a very strange error that I cannot seem to solve. I am using Puppet Master 3.4.1 with Apache/Passenger config in CentOS and my Puppet Agent in Windows. When I try to create a file that doesn't exist using Puppet, it works fine. In this case, I am simply cr

Re: [Puppet Users] Divide init.pp into components

2014-01-16 Thread Ramin K
On 1/16/2014 3:16 AM, David Jarosch wrote: ### INSTALL NRPE PLUGINS WITHOUT ADDITIONAL RECOMMENDED PACKAGES exec { 'nagios-nrpe-plugin': unless => '/usr/bin/dpkg -l |grep nagios-nrpe-plugin', require => Class['nrpe::package'], command => '/usr/bin/apt-get install

[Puppet Users] Rspec-puppet and testing for expected failures...

2014-01-16 Thread Gavin Williams
Afternoon all, I'm trying to add some rspec-puppet testing to my Glassfish module[1], in preparation for releasing it to the forge. I've got some stuff working fine, however I'm trying to test expected failure scenarios without much luck. Travis CI[2] highlights the issues I'm seeing. An e

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

2014-01-16 Thread Andrey Kozichev
Thank you guys, I have figured it out. I am defining all shares in one file and introducing 1 extra argument which tells if share enable/disabled.(all disabled by default) In my defined resource I am doing one more hiera lookup for this argument "hiera("nfs_mount::${name}")" and if true - use cr

[Puppet Users] Strange behavior from puppetforge firewall module

2014-01-16 Thread Chris W
We are using the puppetforge firewall module to lay down 2 sets of rules. The first are a default set laid down in our home grown ssh module's init.pp - firewall { '210 TCP - Accept SSH from X': state => ['NEW'], proto => 'tcp', dport => $ssh_port, iniface =>

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread jcbollinger
On Thursday, January 16, 2014 9:09:59 AM UTC-6, David Jarosch wrote: > > Sorry, > > but I'm a little bit pissed off. It seem's that this problem is caused by > my keyboard and some kind of keyboard char coding/interpreting or > something. This char ' was somehow interpreted different then in th

[Puppet Users] Dynamic lookup deprecation warning

2014-01-16 Thread Andrea Cappelli
Hi, I'm searching through the logs of my master for the warning in the subject, to move to Puppet3 Sometimes in the warning the manifest name isn't showed up, thereis a reason? Thu Jan 16 14:58:02 +0100 2014 Puppet (warning): Dynamic lookup of $mailaddr is deprecated. For more information,

[Puppet Users] Three level hashes in ERB

2014-01-16 Thread paul . lewis
I have been trying to create a three level hash to dump into a template, but the deepest layer of the hash seems to not work. My hash: $clusters = { 'Default' => { '127.0.0.1:11211' => { 'hostname' => '127.0.0.1', 'port' => '11211' }, }, } My ERB template

[Puppet Users] config.pp not working as expected

2014-01-16 Thread John
I've got the following code in my config.pp file on a FreeBSD 8.3 host: freebsd# more config.pp ; class ssh::config { include ssh::params $listenaddress = $ssh::params::listenaddress file { $ssh::params::sshd_config_file: ensure => present, owner => 'root', group => 'root',

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

2014-01-16 Thread Stephan
Hi Christopher, I've spent some time getting my head around Hiera now, and would appreciate some help with how to implement your suggestion: > > hiera hash with each environment and its associated mount point > hiera lookup on a non-management node grabs its environment > environment is used t

[Puppet Users] Re: issues in creating local user on ubuntu client, master on centos

2014-01-16 Thread John Julien
On Thursday, January 16, 2014 9:35:49 AM UTC-6, jyotir bhandari wrote: > > Hi John > > I just configured as you guided > > [root@server manifests]# tree > . > |-- account > | `-- account.pp > |-- packages > | |-- ec2.pp > | |-- elinks.pp > | `-- nmap.pp > `-- site.pp > > *accout.pp* > > c

[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-01-16 Thread jcbollinger
On Wednesday, January 15, 2014 9:57:41 PM UTC-6, CD wrote: > > Hi friends, > > I have an issue where that I receive error Error 400 on SERVER: Cannot > reassign variable name on node app1. When I run the agent on admin1 it > works fine, but when I run the agent on app1 it give me the error. > >

Re: [Puppet Users] ssh module dependency failure

2014-01-16 Thread Tim Dunphy
Hey guys, OK, thanks! So I solved the type-o with the one ':' in the file definition and separated the classes out into 4 different files: showing init.pp class ssh { include ssh::install, ssh::config, ssh::service } showing config.pp class ssh::config { file { "/etc/ssh/sshd_conf

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread David Jarosch
Sorry, but I'm a little bit pissed off. It seem's that this problem is caused by my keyboard and some kind of keyboard char coding/interpreting or something. This char ' was somehow interpreted different then in the Pro Puppet 2nd edition book which also look's exactly the same! I've copied th

Re: [Puppet Users] rspec-puppet: mocking included params class in defines

2014-01-16 Thread Vamsee Kanakala
On Jan 16 04:58, Gavin Williams wrote: > Vamsee > > Are you able to share how you went about mocking out the ::params class > include? > > As I've got the same pattern that I want to test using rspec-puppet... > Hi Gavin, I ended up adding all the params to the define explicity, instead of

Re: [Puppet Users] MSSQL Server 2012

2014-01-16 Thread Helen
Hi, I managed to get SQL server 2008 R2 install with puppet by using the puppet windows_package module https://forge.puppetlabs.com/reidmv/windows_package (now builtin to puppet 3.4.2 ) class windows_package { windows_package { 'Microsoft SQL Server 2008 R2 (64-bit)': ensu

Re: [Puppet Users] rspec-puppet: mocking included params class in defines

2014-01-16 Thread Gavin Williams
Vamsee Are you able to share how you went about mocking out the ::params class include? As I've got the same pattern that I want to test using rspec-puppet... Cheers Gavin On Friday, 27 December 2013 10:16:49 UTC, Vamsee Kanakala wrote: > > On Dec 26 10:56, Johan De Wit wrote: > > I use t

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread David Jarosch
Unfortunately this didn't solve the problem. Maybe it help's to see how I'm including the modules. I have an origin.pp file /etc/puppet/git/manifests/origin.pp which include modules, that are used by all of my servers: ### BASE DEFINITION WHICH ALL OTHER NODES INHERITS FROM ### node 'origin' {

Re: [Puppet Users] puppet user context

2014-01-16 Thread Andrey Kozichev
Do you need to run this only for logged in users? You can use facter fact to return logged in users and use it in your manifest. Andrey On 16 January 2014 07:12, Robert Turk wrote: > Good morning, > > I have a question concerning puppet and modifying user data. I am on Mac > OS X 10.8.5 with p

Re: [Puppet Users] getting error on puppet plugin download

2014-01-16 Thread Felix Frank
Hi, examine the logs on the puppetmaster, there will hopefully be more information on why the request was denied. Guessing blindly, you may have to scrutinize your auth.conf file. HTH, Felix On 01/07/2014 10:12 PM, Bhavin Shah wrote: > Hi, > I am getting the following error when i execute "pup

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread Gavin Williams
Ah, just spotted what might be another issue in your init.pp file: --- ### INSTALLS NRPE INCLUDING DEFINING SERVER AND SETTING UP PLUGINS ### class nrpe { class { '::nrpe::package': } -> class { '::nrpe::config': } -> class { '::nrpe::service': } -> Class['nrpe'] } --- Try dropping "Class[

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread David Jarosch
Hey Gavin, thanks for your reply. The modulepath on puppetmaster should be fine: */etc/puppet/puppet.conf* [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates manifestdir = /etc/puppet/g

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread David Jarosch
Hey Gavin, thanks for your reply. The modulepath on puppetmaster should be fine: */etc/puppet/puppet.conf* [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates manifestdir = /etc/puppet/g

[Puppet Users] Re: Divide init.pp into components

2014-01-16 Thread Gavin Williams
David Module layout looks ok from the above... It's probably worth checking what your puppet master modulepath is set to in puppet.conf, as notice you're using /etc/puppet/git/modules, rather than the normal /etc/puppet/modules. HTH Gavin On Thursday, 16 January 2014 11:16:02 UTC, David Ja

[Puppet Users] Puppetboard 0.0.3 / pypuppetdb 0.1.0

2014-01-16 Thread Daniele Sluijters
Hi everyone, It's taken longer than I would have liked but, it's that time of the season again. ## Releases pypuppetdb 0.1.0 is now available on PyPi[1] and updated docs have been posted to Read The Docs[2]. [1]: https://pypi.python.org/pypi/pypuppetdb [2]: http://pypuppetdb.readthedocs.org/en

Re: [Puppet Users] People transferring from Brussels to Ghent?

2014-01-16 Thread Johan De Wit
I passed the mail to the user groups members. But as usual, i think everything around the solbosch campus will be filled up to the roof :) Keep you posted ... On 01/16/2014 12:01 PM, Daniele Sluijters wrote: Hi everyone, Seems to be shaping up nicely, we've got 10 people registered for no

Re: [Puppet Users] ssh module dependency failure

2014-01-16 Thread Andrea Cappelli
Il 16/01/2014 06:25, Tim Dunphy ha scritto: Hi All, [] err: Failed to apply catalog: Could not find dependency Class[Ssh:install] for File[/etc/ssh/sshd_config] at /etc/puppet/modules/ssh/manifests/init.pp:16 [...] class ssh::config { file { "/etc/ssh/sshd_config": ensure => p

[Puppet Users] puppet user context

2014-01-16 Thread Robert Turk
Good morning, I have a question concerning puppet and modifying user data. I am on Mac OS X 10.8.5 with puppet 3.4.2. I would like to run a manifest with the following content: file { "/Users/${id}/Desktop/testfile": ensure => file, } file { "/usr/testfile": ensure => file, }

[Puppet Users] Divide init.pp into components

2014-01-16 Thread David Jarosch
Hey guys, I'm having some problems dividing my init.pp into components like package.pp, config.pp and service.pp. Unfortunately I'm getting several error's after running puppet-lint like: ERROR: nrpe::package not in autoload module layout on line 1 ERROR: nrpe::service not in autoload module la

[Puppet Users] Re: Dividing init.pp into components

2014-01-16 Thread David Jarosch
BTW: Puppet parser show's following error: puppet parser validate /etc/puppet/git/modules/nrpe/manifests/init.pp Error: Could not parse for environment production: Could not match '::nrpe::package': at /etc/puppet/git/modules/nrpe/manifests/init.pp:2 On client machine: Error: Could not retriev

[Puppet Users] Dividing init.pp into components

2014-01-16 Thread David Jarosch
Hey guys, I'm having some problems dividing my init.pp into components like package.pp, config.pp and service.pp. Unfortunately I'm getting several error's after running puppet-lint like: ERROR: nrpe::package not in autoload module layout on line 1 ERROR: nrpe::service not in autoload module la

Re: [Puppet Users] People transferring from Brussels to Ghent?

2014-01-16 Thread Daniele Sluijters
Hi everyone, Seems to be shaping up nicely, we've got 10 people registered for now. Would be nice if the group grows a bit more but it's a good start. Johan: Could you ask around a bit about a venue we could crash for food and drinks? It would be nice if it weren't too far from the Solbosch campu

Re: [Puppet Users] Optimizing the Puppet CA using Apache

2014-01-16 Thread Erik Dalén
In the simple testing I did I found that they were an order of magnitude faster. But in general these are requests Puppet only does on the first run for that host, so it won't be a big speedup of Puppet in general. More like cutting 0.5 seconds from the first run or so :) But in our case we wanted

[Puppet Users] Re: Using Virtual Resources and create_resource combination

2014-01-16 Thread Jose Luis Ledesma
I'm not sure, but I remember reading something like: create_resources(@user, $myusers) Although I don't really know if this is the best solution for you -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop rec

Re: [Puppet Users] ssh module dependency failure

2014-01-16 Thread Johan De Wit
Hi, If you have put you class in one big, you will get this error. Every class must have its own pp file modules/ssh/manisfests/init.pp (class ssh) install.pp (class ssh::init) config.pp (class ssh::config) and so on

[Puppet Users] ssh module dependency failure

2014-01-16 Thread Jose Luis Ledesma
I think the error is here: require => Class["ssh:install"] Should be ssh::install Regards -- 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+unsubs