Re: [Puppet Users] Re: puppet-dashboard - rake API not working

2012-11-21 Thread Stefan Heijmans
And when you provide the RAILS_ENV you are using? For example; sudo -u puppet-dashboard rake -f /usr/share/puppet-dashboard/Rakefile RAILS_ENV=production 'node:list' Op woensdag 21 november 2012 08:12:48 UTC+1 schreef Jacob het volgende: > I don't get the expected output... (a list of my

Re: [Puppet Users] Re: puppet-dashboard - rake API not working

2012-11-21 Thread Jacob
:-) Thank you - that did it! Il giorno mercoledì 21 novembre 2012 09:04:29 UTC+1, Stefan Heijmans ha scritto: > > And when you provide the RAILS_ENV you are using? For example; > > sudo -u puppet-dashboard rake -f /usr/share/puppet-dashboard/Rakefile > RAILS_ENV=production 'node:list' >

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-21 Thread Alex Stanhope
Hi Jakov, On 21 November 2012 02:03, Jakov Sosic wrote: > > exec{'first': > command => 'cd /tmp && wget mykey', > creates => '/tmp/mykey', > } > > exec{'second': > command => 'echo "" > /tmp/mykey | tee -a /tmp/mykey2', > creates => '/tmp/mykey2', > } > ...a really beautiful ugly hack. I

Re: [Puppet Users] managing java with puppet (RH)

2012-11-21 Thread Arnau Bria
On Tue, 20 Nov 2012 14:13:01 +0100 Johan De Wit wrote: > Hi, Hi, > I' ve attached my java module. thanks! > We needed to install multiple java versions on the same hosts, so, i > repackaged them to make that possible. That's why i use the > alternatives to set a default system wide java version

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-21 Thread David Schmitt
On 21.11.2012 03:03, Jakov Sosic wrote: On 11/16/2012 06:17 PM, Alex Stanhope wrote: On Friday, November 16, 2012 5:11:22 PM UTC, Ellison Marks wrote: Could you give some more info on what you're trying to accomplish with this? That way we might offer some ideas to help. Of course. I

Re: [Puppet Users] Re: Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-11-21 Thread Matthew Burgess
On Tue, Nov 20, 2012 at 9:37 PM, Jakov Sosic wrote: > On 11/20/2012 03:12 PM, Matthew Burgess wrote: >> This can be mitigated, of >> >> course, by using 'ensure=>installed', but then that means upgrades are >> painful. > > Why? You can always use cexec or mcollective with some kind of custom plugi

[Puppet Users] Problem with puppet Solaris agent..

2012-11-21 Thread Rajeev Iyer
Below is the debug trace..Can someone please help??? *puppet agent --test --debug --trace* /opt/puppet/lib/ruby/site_ruby/1.8/puppet/defaults.rb:72: warning: Insecure world writable dir /opt/perf in PATH, mode 040777 debug: Failed to load library 'shadow' for feature 'libshadow' debug: Puppet::Typ

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-21 Thread Jakov Sosic
On 11/21/2012 11:09 AM, David Schmitt wrote: > This will put the passphrase onto the node every time puppet runs. I do > not see how that will make it any more secure. I do not think it will. Exec will run only if /tmp/mykey does not exist, and in my case it does exist all the time until you dele

Re: [Puppet Users] Can I create virtual resources with create_resources function

2012-11-21 Thread Jakov Sosic
On 11/15/2012 11:04 PM, Rajul Vora wrote: > > I am trying to add ability to add virtual users to > the git://github.com/erwbgy/puppet-system.git module as I really want I've run into same exact problem yesterday, and found patch that Nan Liu mentions.. What I am interested in is when can we exp

[Puppet Users] hiera forward & reverse lookup webservice

2012-11-21 Thread Erik Dalén
I've just created a small web service for doing hiera lookups. It can be installed on your puppet master for example and will fetch facts from PuppetDB and look up the desired key in hiera. That way you don't need to set up hiera and have access to the data anywhere else to be able to lookup

[Puppet Users] Re: Array from custom function gets flattened

2012-11-21 Thread KomodoDave
Thank you very much for this jcbollinger - the way you've described it makes perfect sense. Dave On Tuesday, November 20, 2012 8:36:46 PM UTC, jcbollinger wrote: > > > > On Tuesday, November 20, 2012 8:42:02 AM UTC-6, KomodoDave wrote: >> >> I'm trying to use my first custom function *prefixPat

[Puppet Users] Re: Array from custom function gets flattened

2012-11-21 Thread KomodoDave
..or should I say - *John*! On Tuesday, November 20, 2012 2:42:02 PM UTC, KomodoDave wrote: > > I'm trying to use my first custom function *prefixPaths*. > > The function is defined in: > > my_module/lib/puppet/parser/functions/prefixPaths.rb > > > Listing: > > module Puppet::Parser::Functions >

[Puppet Users] puppetlabs-lvm and --guess-fstype

2012-11-21 Thread C R Ritson
I'm testing a fedora 17 deployment and am using puppet 2.7.x and puppetlabs-lvm-0.1.1. I have a problem in that a filesystem in a logical volume is continually trying to get itself created even though it already exists and is mounted. It looks as if this might be because there is no longer a "-

[Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-21 Thread r0k5t4r
Hi, I just started using puppet agent on windows 32Bit and my manfiests are working good so far. Now when using the same manifests on a 64Bit Windows machine I get trouble about the very special Program Files path. :( Is there a way of using a variable in puppet manifests and the puppet agent

[Puppet Users] Re: Array from custom function gets flattened

2012-11-21 Thread KomodoDave
In fact I've since realised that the documents state the 'path' parameter is the *namevar* for a file resource type. So what you've said is spot on. Thank you again. On Wednesday, November 21, 2012 3:43:01 PM UTC, KomodoDave wrote: > > ..or should I say - *John*! > > > On Tuesday, November 20,

[Puppet Users] Re: Array from custom function gets flattened

2012-11-21 Thread KomodoDave
Actually this is interesting: the 'path' parameter has a default value of the title. So if you don't specify the path yet specify an array for the title, I wonder what the internal logic is? Intriguing... On Wednesday, November 21, 2012 4:40:38 PM UTC, KomodoDave wrote: > > In fact I've since

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2012-11-21 Thread Jakov Sosic
On 11/13/2012 08:19 PM, Gavin Williams wrote: > After a quick google, came up with: > > #!/usr/bin/env ruby > > grades = { "Bob" => 82, >"Jim" => 94, >"Billy" => 58 > } > > grades.each do|name,grade| > puts "#{name}: #{grade}" >

[Puppet Users] Puppet IPA client setup

2012-11-21 Thread Johnathan Phan
Hi everyone, I have already started documented and building this privately. However I refuse to believe that there is not a module for setting up a FreeIPA client server on RHEL to authenticate against an existing IPA authentication server. Has anyone actually already done this? If not I will

[Puppet Users] Best Practices on node declaration

2012-11-21 Thread AnOnJoe
Hello, I would like to know what are the best pratices in node declaration. I tried to play with inheritance with failures : Here my* puppet/manifest/site.pp* node basenode { > class { 'ssh': } > class { 'ntp': } > class { 'users': } > class { 'sudo': } > } > > n

[Puppet Users] Weird scoping problem

2012-11-21 Thread Hugh Cole-Baker
Using puppet 3.0.1 I ran into an odd scoping problem - I've got a class called 'lettuce' in a module named testtools, like this: class testtools::lettuce { require pip Package { provider => pip, } package { "lettuce": ensure => installed; "let

Re: [Puppet Users] Best Practices on node declaration

2012-11-21 Thread Jakov Sosic
On 11/21/2012 06:46 PM, AnOnJoe wrote: > Hello, > > I would like to know what are the best pratices in node declaration. > > I tried to play with inheritance with failures : > Here my*puppet/manifest/site.pp* > > node basenode { > class { 'ssh': } > class { 'ntp': } >

Re: [Puppet Users] Best Practices on node declaration

2012-11-21 Thread Ellison Marks
Seconding this. When I first started using puppet, I thought that node inheritance would be a wonderful way to achieve a hierarchy. This was before I knew about hiera. Long story short, node inheritance doesn't work that way, and if you try and force it to, things get really unpredictable. Hier

[Puppet Users] bad network causing puppet runs to hang

2012-11-21 Thread Ellison Marks
Thought I'd ask around here before I go file a bug report. Basically, I have a few machines administered by puppet which have an unreliable internet connection. They talk to my puppetmaster on an internal network and have NAT through a router to the internet. The NAT doesn't always work. When i

[Puppet Users] yum repo on same machine as Puppet Master?

2012-11-21 Thread Thomas
I'm a relative newbie using Puppet Enterprise 2.5.3 (I know there are new versions) I currently have my Yum repo served via HTTP on a different machine from my Puppet Master and I'm considering moving my Yum repo to the same machine that runs the Puppet Master. Is that a good, bad or indiff

[Puppet Users] Re: Nginx + passenger + puppetmaster

2012-11-21 Thread Greg Thompson
On Monday, 22 October 2012 11:03:06 UTC+1, Geert Booster wrote: > > Hello, > > Op donderdag 7 juni 2012 08:44:54 UTC+2 schreef vulzscht het volgende: >> >> i will dig into it a bit more and provide my results here in case of >> success >> >> > Did you found any solution? I am looking at the sam

[Puppet Users] Re: hiera values issue

2012-11-21 Thread Félix Barbeira
Thanks Felipe but that wasn´t the problem, it works without the quotes. I had to declare the variable stament as a paremeter of the class, otherwise it doesn´t work. Besides that the value in the yaml file must follow this pattern: :: Everything is explained here: http://docs.puppetlabs.com/p

Re: [Puppet Users] access exported resources in template

2012-11-21 Thread Bart Swedrowski
On Friday, September 7, 2012 2:01:13 PM UTC+1, ctrlc-root wrote: > > Well, 3 years old or not, this is still in the first page of google > results haha. I'm running puppet version 2.7.9 and the result of that > template is a blank comment line for every instance of the Firewall::Rule > type. I

[Puppet Users] Re: Fileserver in standalone mode.

2012-11-21 Thread Scott Smerchek
I'm having this same problem. Is there a solution? On Thursday, May 24, 2012 11:37:12 AM UTC-5, btimby wrote: > > I am using puppet in standalone mode (puppet apply) to test manifests that > I also use in a client/server configuration. > > I have everything working as far as files included in mod

Re: [Puppet Users] yum repo on same machine as Puppet Master?

2012-11-21 Thread Thomas Linkin
Thomas, By design, PE will not interfere with the vendor httpd package. With a small setup like that, I do not see keeping your repo there as being something you shouldn't do. Just be mindful of the non-puppet services you wish to host from the master. If there is any insecurity or vulnerabili

Re: [Puppet Users] Puppet IPA client setup

2012-11-21 Thread Peter Brown
Hi Johnathan. I have just started using FreeIPA but I haven't gotten around to setting it up with Puppet yet. If you would like some help with testing or extra functionality let me know. I have CentOS and Fedora servers. I did find the docs on how to set it up manually so I was going to use those

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-11-21 Thread Ashley Gould
Hello Niels, I found this thread and I am installing puppet-3.0.1-2.1.x86_64.rpm from http://download.opensuse.org/repositories/systemsmanagement:/puppet/SLE_11_SP2/ The init script /etc/init.d/puppet in this rpm has an error and will not run on puppet 3.0, because the script sets the puppet bin

[Puppet Users] Announce: Facter 1.6.15-rc1 Available

2012-11-21 Thread Matthaus Owens
Facter 1.6.15-rc1 is a maintenance release candidate in the 1.6.x branch with bug fixes. Downloads are available at: * Source: https://downloads.puppetlabs.com/facter/facter-1.6.15-rc1.tar.gz RPMs are available at https://yum.puppetlabs.com/el or /fedora Rubygem available at http://rubygems.org

Re: [Puppet Users] Re: ssh key collection in puppetdb slow queries/blocking nodes

2012-11-21 Thread Jakov Sosic
On 11/15/2012 09:26 PM, Deepak Giridharagopal wrote: > We (grim_radical, nlew, and cprice) have continued working with Matt > (sjoeboo) on the #puppet IRC channel over the last few days. Apologies > for not updating this thread accordingly! > jcbollinger asked about documentation of the schema of

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-11-21 Thread Darin Perusich
Ashley, One of the nice things about OBS is you can "branch" the package, update it, and "submit" your changes back and if/once accepted they'll be built, packed and available in the repo for general consumption. -- Later, Darin On Wed, Nov 21, 2012 at 3:59 PM, Ashley Gould wrote: > Hello Niel

Re: [Puppet Users] Your number of resources and time of your catalog runs

2012-11-21 Thread Jakov Sosic
On 10/22/2012 11:49 PM, Ramin K wrote: > On 10/22/2012 2:11 PM, Jakov Sosic wrote: >> >> But as a side note, I'm wondering at what number of nodes one must >> replace puppetmaster with Apache+Passanger? Just a rough estimate, let's >> say master runs on 2 socket quadcore. >> >> Is it 50 agents? 100

Re: [Puppet Users] Re: ssh key collection in puppetdb slow queries/blocking nodes

2012-11-21 Thread Deepak Giridharagopal
On Wed, Nov 21, 2012 at 5:43 PM, Jakov Sosic wrote: > On 11/15/2012 09:26 PM, Deepak Giridharagopal wrote: > > We (grim_radical, nlew, and cprice) have continued working with Matt > > (sjoeboo) on the #puppet IRC channel over the last few days. Apologies > > for not updating this thread according

Re: [Puppet Users] Re: ssh key collection in puppetdb slow queries/blocking nodes

2012-11-21 Thread Jakov Sosic
On 11/22/2012 02:20 AM, Deepak Giridharagopal wrote: From my earlier reply: Ah, sorry, my mistake. I didn't saw that because the first part of your answer was top-posted so I didn't even bother to scroll further down... Thank you nevertheless :) -- Jakov Sosic www.srce.unizg.hr -- You r