Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-28 Thread Amos Shapira
Thanks for the tip, Justin and everyone else who replied. I'll try your suggestion. Cheers, --Amos On 27 June 2013 14:28, Justin Stoller wrote: > It's been a while since I jumped into this code and it's late, forgive me > if I say something naive inline. > > > On Wed, Jun 26, 2013 at 8:14 PM,

Re: [Puppet Users] Using Puppet for downgrading Varnish (circular dependency)

2013-06-28 Thread Wolf Noble
Hi Stefan, I've run into similar issues beforeā€¦ I don't have module code handy, but what I ended up doing was creating an exec which performed something similar to: exec{'nuke_pesky_pkg': command => 'rpm -e $package; touch /etc/package.removed', creates => '/etc/package.removed' } which

Re: [Puppet Users] passing an environment variable to a command in a provider

2013-06-28 Thread Nan Liu
On Fri, Jun 28, 2013 at 2:03 PM, Tim Mooney wrote: > We have some custom types & providers related to mysql (mysql_user, > mysql_grant, mysql_db) written by an admin that's no longer here. The > provider just uses the mysql command to run various commands, e.g: > > Puppet::Type.type(:mysql_user)

[Puppet Users] passing an environment variable to a command in a provider

2013-06-28 Thread Tim Mooney
All- We have some custom types & providers related to mysql (mysql_user, mysql_grant, mysql_db) written by an admin that's no longer here. The provider just uses the mysql command to run various commands, e.g: Puppet::Type.type(:mysql_user).provide(:mysql) do desc "Provider for a mysql use

[Puppet Users] Announce: Facter 1.7.2-rc1 Available

2013-06-28 Thread Matthaus Owens
Facter 1.7.2-rc1 is a bugfix release candidate in the 1.7 series. To see a list of the issues addressed by this release, check out the 1.7.2 version in our issue tracker at: https://projects.puppetlabs.com/versions/403 Downloads are available at: * Source: https://downloads.puppetlabs.com/facter

[Puppet Users] Ubuntu 11.10 leaving apt.puppetlabs.com

2013-06-28 Thread Moses Mendoza
Ubuntu 11.10 Oneiric Ocelot reached end of life on 2013-05-09 [1], so we are no longer building new packages for it and it will be removed from our apt repository on Friday, July 9. [1] https://lists.ubuntu.com/archives/ubuntu-announce/2013-May/000174.html -- Moses Mendoza Puppet Labs Join us a

Re: [Puppet Users] Puppet user running Apache-Passenger ?

2013-06-28 Thread Dan White
I understand that, but the apache/httpd processes are also owned by puppet because the User/Group parameters in httpd.conf were changed to "puppet". If I did it manually, I would hope I would have remembered doing it and/or made notes to remind me. I do not remember, and I find no notes, so I

Re: [Puppet Users] Puppet user running Apache-Passenger ?

2013-06-28 Thread Ramin K
On 6/28/2013 7:41 AM, Dan White wrote: Is there anything in the Puppet/Passenger setup process that edits httpd.conf and sets the User/Group running apache to "puppet" ? A master I set up several months ago is configured that way. I do not recall doing it. But then the high voltage electroshock

Re: [Puppet Users] Variable parsing and resolving order...

2013-06-28 Thread Jakov Sosic
On 01/08/2013 10:07 PM, mmcbr...@spryinc.com wrote: I know this isn't traditionally how puppet works, but I was curious as to any trick that may accomplish something like this. I'm afraid you answered your own question in the first part of the sentence. It's not possible AFAIK. And why woul

[Puppet Users] Scope variable name is a NilClass

2013-06-28 Thread Mario van der Linde
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I try to cleanup my config due to some deprecation warnings but with "inline_template" i run into some trouble. This is my class: > 1 class test { 2 $var1 = 'foo' 3 $var2 = 'bar' 4 $vars = > ["var1","var2"] 5 notice($var1) 6 notice($var2

Re: [Puppet Users] Nagios & Puppet

2013-06-28 Thread Jakov Sosic
On 06/28/2013 04:57 PM, Stephen Jahl wrote: In my experience, exporting nagios_command resources doesn't work so well. What I've found works best, is to define nagios_command{}'s directly on the server, rather than exporting and collecting them there later. In my setup, the only resource that ex

[Puppet Users] stdlib file_line type

2013-06-28 Thread mohammad kashif
Hi I am just testing file_line type in puppetlabs stdlib library. It is a very simple line file_line { 'testing file_line' : ensure => present, line => 'This is a test' path => '/etc/puppet/puppet-test' } It works but when I look at client lo

Re: [Puppet Users] Nagios & Puppet

2013-06-28 Thread Stephen Jahl
In my experience, exporting nagios_command resources doesn't work so well. What I've found works best, is to define nagios_command{}'s directly on the server, rather than exporting and collecting them there later. In my setup, the only resource that export is the nagios_host. I define commands and

[Puppet Users] Puppet user running Apache-Passenger ?

2013-06-28 Thread Dan White
Is there anything in the Puppet/Passenger setup process that edits httpd.conf and sets the User/Group running apache to "puppet" ? A master I set up several months ago is configured that way. I do not recall doing it. But then the high voltage electroshock therapy does have its side effects :)

[Puppet Users] Using Puppet for downgrading Varnish (circular dependency)

2013-06-28 Thread Stefan Pommerening
Hi all, I am trying to use puppet (2.7.18) for downgrading varnish cache on Centos Linux (6.3). Unfortunately there are two varnish RPMs (which seem to have circular dependencies): varnish-3.0.4-1.el6.x86_64 varnish-libs-3.0.4-1.el6.x86_64 When using "ensure" for downgrading I get a bunch of

[Puppet Users] Re: Raziel - a partial encrypted Hiera backend

2013-06-28 Thread Martijn
Good idea, and much needed IMHO. Thanks! Martijn Op maandag 24 juni 2013 15:26:50 UTC+2 schreef Jens Braeuer het volgende: > > So I would like to make you aware of one of my side-projects called > Raziel. > https://github.com/jbraeuer/raziel/ > http://bit.ly/raziel-slides > -- You received

R: [Puppet Users] Random Yum errors during provisioning

2013-06-28 Thread pinto.e...@gmail.com
Not puppet related, no. Every rpm deep. Solver as yum, zipper etc put a lock for protecting the rpm db from concurrent access. So if you are using puppet be sure to not having long running yum daemons, but if you also use some patch management system - spacewalk, red hat satellite - this could b

[Puppet Users] Random Yum errors during provisioning

2013-06-28 Thread Glenn Poston
Running Amazon Linux (which is essentially Centos5.5). Anyone seen random yum errors like this one? I don't think it's necessarily related to Puppet, but it randomly fails my puppet runs and I don't know how to fix it. Jun 28 08:41:34 ip-10-159-65-145 run_puppet: [Notice: /Stage[main]/Zookeep

[Puppet Users] Re: Copying files from Windows host to CentOS guest

2013-06-28 Thread jcbollinger
On Thursday, June 27, 2013 5:38:07 AM UTC-5, Nicholas Shanks wrote: > > I have a Vagrant-controlled VM and I am trying to copy in files and > directories when the VM gets provisioned. I have tried file:///, drive name > with slashes and drive name with backwards slashes. Cannot get any of those

[Puppet Users] Re: access exported resources in template

2013-06-28 Thread jcbollinger
On Thursday, June 27, 2013 1:30:42 PM UTC-5, Vasiliy Boulytchev wrote: > > Sir, have you been able to find a solution? > The approach the OP proposed is not supported by Puppet. Among the alternatives are: - Use the Concat module. This allows each contributing node to export one or m