Re: [Puppet Users] Re: Getting an error when trying to apply manifest locally on windows

2014-03-27 Thread Sam
I searched online for logstash module and ran the puppet module install elasticsearch-logstash command and since it installed the module without any issue, I thought that it should have been supported.I don't remember seeing the supported OS information. your question led me to do more

Re: [Puppet Users] puppet agent doesn't start service on initial run

2014-03-27 Thread Bogdan Mania
Yes it does. But java gets installed first when executing the catalog for the first time. In the Puppet dashboard it shows for the service ensure changed 'stopped' to 'running'. But the service is not running. If I trigger a second puppet run it shows again the On Wednesday, March 26, 2014

Re: [Puppet Users] Re: Books and resources for Test Driven Development for Puppet?

2014-03-27 Thread Johan De Wit
On 26/03/14 19:30, Alex Scoble wrote: It's kind of annoying that there's a TDD for Chef book from O'Reilly, but not one for Puppet. There's definitely a need for it, in my opinion. unfortunatly, my rspec is not good enough yet ... and indeed, i think this is a gap that needs to be filled.

Re: [Puppet Users] UTF8 package names on windows (invalid byte sequence)

2014-03-27 Thread mailnoxx
Hi Rob, thanks for your answer. I tried chocolatey as it seems to be the easiest solution and very useful for other packages on windows, too. Chocolatey worked, but I hadn't time so far to take a look into how it handle this specific case. Thanks for the tip. Kind regards. On Tuesday, March

Re: [Puppet Users] puppet agent doesn't start service on initial run

2014-03-27 Thread José Luis Ledesma
I think you should declare the require Jdk7::Install7['jdk1.7.0_51'] in the service. If it doesn't work, I would comment out the service and would try to run it manually. It doesn't seem a puppet problem. El 27/03/2014 09:09, Bogdan Mania bogdan.ma...@peoplepost.com escribió: Yes it does. But

Re: [Puppet Users] Books and resources for Test Driven Development for Puppet?

2014-03-27 Thread Garrett Honeycutt
On 3/24/14, 6:24 PM, Alex Scoble wrote: Hi All, Was wondering if anyone knew of any good books or resources for learning Test Driven Development of Puppet including puppet-rspec, beaker and Jenkins. Yes, I know that beaker is more for acceptance testing than unit testing, but I still see it

Re: [Puppet Users] puppet class dependencies

2014-03-27 Thread David Portabella
My colleague Guillaume showed me a possible implementation of the anchor pattern: class { c2: } - class { c3: } class c1 { notice +++ anchor {'before_c1':} - file {'/tmp/c1.txt': ensure = present } - anchor {'after_c1':} } class c2 { include c1 notice +++ anchor

[Puppet Users] Re: Error when checking out repo with svn+ssh

2014-03-27 Thread Alexander Fortin
On Wednesday, March 26, 2014 8:06:02 PM UTC+1, rupsmaths wrote: When i try running puppet agent -t --server master i get the following error: *Error: Execution of '/usr/bin/svn --non-interactive checkout svn+ssh://repo' returned 1: svn: To better debug SSH connection problems, remove the

[Puppet Users] Re: i require a defined type which contains a file resource, but the file resource does not retain the relatioship

2014-03-27 Thread David Portabella
I've open a bug ticket: puppet --graph misses some dependencies https://tickets.puppetlabs.com/browse/PUP-2075 d1 {'test': } - d2 {'test': } define d1 { exec { exec1: command = '/bin/echo exec1; exit 1' } } define d2 { exec { exec2: command = '/bin/echo exec2; exit 1' } } --- $ puppet

[Puppet Users] Re: i require a defined type which contains a file resource, but the file resource does not retain the relatioship

2014-03-27 Thread David Portabella
d2 {'test': } - d3 {'test': } define d1 { exec { exec1: command = '/bin/echo exec1; exit 1' } } define d2 { d1 {$name: } - exec { exec2: command = '/bin/echo exec2; exit 1' } } define d3 { exec { exec3: command = '/bin/echo exec3; exit 1' } } and this also works as expected, even

Re: [Puppet Users] puppet agent doesn't start service on initial run

2014-03-27 Thread Bogdan Mania
Ok, I sorted it out... I used your suggestion too, but the problem was that on the first run puppet created the log folder after initiating the service start. And having nowhere to write the log, the application failed to launch. So I added require File[/var/log/java/java-app] to the service

Re: [Puppet Users] puppet class dependencies

2014-03-27 Thread David Portabella
it seems there is a bug in puppet --graph, that misses some dependencies. https://tickets.puppetlabs.com/browse/PUP-2075 so, this code actually works as expected: class { c3: } class c1 { exec { exec1: command = '/bin/echo exec1; exit 1' } } class c2 { * # include c1* * contain c1* exec

[Puppet Users] Re: i require a defined type which contains a file resource, but the file resource does not retain the relatioship

2014-03-27 Thread David Portabella
simpler example, showing the transivity in resource dependencies. (as opposed to no transivity in class dependencieshttps://groups.google.com/d/msg/puppet-users/EyLfxkZHx5U/vcCQw8NA68sJ by default) d3 {'test': } define d1 { exec { exec1: command = '/bin/echo exec1; exit 1' } } define d2 {

[Puppet Users] error in puppet certificate signing

2014-03-27 Thread Ankita kumari
Hi, I am new to puppet. I have installed puppet agent and puppet master on two different centos. For starting communication between client and server I am sending request from client. This certificate is signed my master. But on client it is giving this error Info: Caching certificate for

[Puppet Users] Re: How to handle multiple modules requiring the same packages

2014-03-27 Thread och ach
same problem here. just find that razor module has static def of package curl. what is the best practice? for now i have deleted the definition from module and included my virtual packages definitions but would love to solve it not dirty fix it On Saturday, 21 January 2012 15:02:27 UTC+1, bel

[Puppet Users] Foreman + katello to manage puppet

2014-03-27 Thread Unix SA
Hello Guys, anyone is using foreman + katello to manage puppet modules ?? .. if yes, can you help me with Design, we want to setup multimaster puppet env.. i know we can create multiple foreman-proxy and acheiv it but not sure how i will assign multiple puppet master and manage module and puppet

Re: [Puppet Users] error in puppet certificate signing

2014-03-27 Thread David Schmitt
On 2014-03-27 11:08, Ankita kumari wrote: Hi, I am new to puppet. I have installed puppet agent and puppet master on two different centos. For starting communication between client and server I am sending request from client. This certificate is signed my master. But on client it is giving

[Puppet Users] tagging nodes in site.pp (tagmail)

2014-03-27 Thread cko
hi, i want to be able to send reports via email for certain hosts. for example: *site.pp* node 'node1.localdomain' { tag 'webshop' } node 'node2.localdomain' { tag 'webshop' } node 'node3.localdomain' { tag 'foo'' } *tagmail.conf* webshop*:* developers@company.domain So only the

Re: [Puppet Users] tagging nodes in site.pp (tagmail)

2014-03-27 Thread Martin Alfke
Hi On 27 Mar 2014, at 16:00, cko dert...@gmail.com wrote: hi, i want to be able to send reports via email for certain hosts. for example: site.pp node 'node1.localdomain' { tag 'webshop' } node 'node2.localdomain' { tag 'webshop' } node 'node3.localdomain' { tag 'foo''

Re: [Puppet Users] Final Comments on Pro Puppet 2nd Edition

2014-03-27 Thread Kurt Wall
I'll make the observation that it *is* possible to produce an error-free printed product, but the cost to do so would easily double or triple the cost of the title. The cost of proofing, plus the smaller and captive market, is why quality textbooks are so ridiculously expensive. And why mass

[Puppet Users] Re: external facts are not updated

2014-03-27 Thread yannig rousseau
Hello, I couldn't find any traces explaining this behaviour. What could be the difference between the process run manually and the one run by service ?? Regards On Tuesday, March 25, 2014 5:41:12 PM UTC+1, yannig rousseau wrote: Hi all, I use external facts to collect data to our

[Puppet Users] 403 You don't have permission to access /production/... after switching from puppemaster to passenger

2014-03-27 Thread bjoern pohl
Hi, since puppet should be used for more clients here, I moved from the puppetmaster daemon to a passenger setup (as described on various websites) Problem is that I am facing the following errors while accessing the REST API: (possibly this will hit me with normal clients, too..) 403 You don't

[Puppet Users] PuppetDB 1.6.3 final now available

2014-03-27 Thread Ken Barber
PuppetDB 1.6.3 final - March 27th, 2014. PuppetDB 1.6.3 Downloads Available in native package format in the release repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com For information on how to enable the Puppet Labs repos, see:

[Puppet Users] [SOLVED] Re: Error: Could not send report: Error 400 on SERVER: Could not intern from pson: undefined method `intern' for nil:NilClass

2014-03-27 Thread Race Boyer
I have found the issue, its with the stdlib module both version 3.2.1 and 4.x with puppet 2.6.18 and facter 1.5.2.1 on SLES 11.x. I tried both versions and removed them both and got normal function back to puppet 3.4.3 after they were removed. Only took 3 days of troubleshooting but the

[Puppet Users] Re: Final Comments on Pro Puppet 2nd Edition

2014-03-27 Thread Daniele Sluijters
Hi, I'm going to be slightly blunt here. The authors of the book have, repeatedly, ask you to connect with them through different channels and contribute your fixes to the Github repository that was set up. Though I appreciate your review of the book, the way you've handled the situation is

[Puppet Users] Re: Final Comments on Pro Puppet 2nd Edition

2014-03-27 Thread Jon Forrest
On Thu, Mar 27, 2014 at 3:02 PM, Daniele Sluijters daniele.sluijt...@gmail.com wrote: Hi, I'm going to be slightly blunt here. That's fair. The authors of the book have, repeatedly, ask you to connect with them through different channels and contribute your fixes to the Github repository

Re: [Puppet Users] Re: Final Comments on Pro Puppet 2nd Edition

2014-03-27 Thread Spencer Krum
Hi, I am one of the authors of Pro Puppet. I have asked the Apress administrators to link to https://github.com/pro-puppet/pro-puppet-erratafrom the Apress errata section. I'm sure that will appear eventually. I invite all community members to contribute directly to this project or to email us

[Puppet Users] Help with dependancy cycle

2014-03-27 Thread Adam Clark
Hi all, I am writing a module to manage MySQL/MariaDB with Galera extensions and have run into a problem I don't seem to be able to figure out. Error: Could not apply complete catalog: Found 1 dependency cycle: (File[/etc/mysql/conf.d/wsrep.cnf] = Service[mysqld] = Class[Mysql::Server] =

[Puppet Users] Re: Roles/profiles and hiera

2014-03-27 Thread Mike Lehner
I can't begin to describe how helpful it is to read this. I also started down the same path using a profile::base. A slightly different setup where all other profiles inherited from ::profile::base. Luckily, shortly after going down this path I ran into a major roadblock (better now than 9

Re: [Puppet Users] Help with dependancy cycle

2014-03-27 Thread Xav Paice
On 28/03/14 15:31, Adam Clark wrote: Hi all, I am writing a module to manage MySQL/MariaDB with Galera extensions and have run into a problem I don't seem to be able to figure out. Error: Could not apply complete catalog: Found 1 dependency cycle: (File[/etc/mysql/conf.d/wsrep.cnf] =

Re: [Puppet Users] Help with dependancy cycle

2014-03-27 Thread Adam Clark
I am trying to use this with the modules from forgestack, which only have mysql providers. Might be easier to just use the puppet-mariadb module and write a new provider into all the various openstack modules. Regardless, would be great to get an answer for when this stuff happens in the future.

[Puppet Users] Trigger re-reading of facts?

2014-03-27 Thread Jason Price
Problem: Puppet pushes two files, and two services. One service (redis) reads one of the files (a lua script), and spits out a sha1sum. However, it somehow transforms the file before it produces the sha1sum, so there's no way to know what the sum will be, before the reading. File two (read by

Re: [Puppet Users] Re: Roles/profiles and hiera

2014-03-27 Thread Ramin K
Thanks and I'm glad it helped point you in the right direction. Here are two more (from me at least) to add to your collection on role/profile and Hiera. And yes I feel your oversimplified example pain. It's very unhelpful though Puppet is better than most projects.