[Puppet Users] multiple resources dependencies

2012-04-05 Thread Pablo Fernandez
Dear all, I have a class where I declare one file and many execs with create_resources: class module::yeah { file {"myfile"} $hash = parseyaml(inline_template('hereigeneratemynicehash.to_yaml')) create_resources ('exec', $hash) } And I need to create a dependency of the kind inside that

[Puppet Users] Re: 2 package resources for the same package installation in two differents modules caused errors

2012-04-05 Thread Christophe L
Hello, Thanks for your answer. I understand the restriction about resource name uniqueness, but I don't understand the practical usage of it on the package resources. Let's say there is two modules totally different, written by two different developpers, but both depending on the same debian pac

[Puppet Users] Why latest stable Debian Squeeze package is 2.6.2-5+squeeze4 please ?

2012-04-05 Thread Christophe L
Hello, I have installed puppet on debian-squeeze using aptitude / apt-get but I got the version 2.6.2 of Puppet. After some research, I have found that the last stable debian package version is puppet (2.6.2-5+squeeze4) [security] http://packages.debian.org/squeeze/puppet and that 2.7.12-3 is co

Re: [Puppet Users] Why latest stable Debian Squeeze package is 2.6.2-5+squeeze4 please ?

2012-04-05 Thread Peter Berghold
Latest stable means two different things between the maintainers of Debian and puppet. On Apr 5, 2012 7:19 AM, "Christophe L" wrote: Hello, I have installed puppet on debian-squeeze using aptitude / apt-get but I got the version 2.6.2 of Puppet. After some research, I have found that the last

[Puppet Users] Re: 2 package resources for the same package installation in two differents modules caused errors

2012-04-05 Thread Andrew Stangl
Hi, The best way to overcome the problem you're experiencing, is to use virtual resources http://docs.puppetlabs.com/guides/virtual_resources.html So, for example, you would have a class that declares the resources: class php_v_packages { @package { [ "php5", "php5-cli", "php5-gd", "php5

[Puppet Users] Somehow puppet is not able to start ossec service

2012-04-05 Thread ankush grover
Hi Friends, I have configured Puppet 2.7.12-1 on Centos 6 as server and various clients running on Redhat/Centos/Ubuntu etc.. The issue I am facing is that somehow Puppet is not able to start the ossec service on the client. If the service is stopped on the client then puppet is not able to s

[Puppet Users] Re: 2 package resources for the same package installation in two differents modules caused errors

2012-04-05 Thread jcbollinger
On Apr 5, 6:11 am, Christophe L wrote: > Hello, > > Thanks for your answer. > > I understand the restriction about resource name uniqueness, but I > don't understand the practical usage of it on the package resources. > > Let's say there is two modules totally different, written by two > differe

Re: [Puppet Users] Why latest stable Debian Squeeze package is 2.6.2-5+squeeze4 please ?

2012-04-05 Thread Ashley Penney
You can try the Debian packages at http://apt.puppetlabs.com/ to see if the Squeeze ones are more up to date (they will be, I think!) On Thu, Apr 5, 2012 at 7:19 AM, Christophe L wrote: > Hello, > > I have installed puppet on debian-squeeze using aptitude / apt-get but > I got the version 2.6.2

[Puppet Users] Re: multiple resources dependencies

2012-04-05 Thread jcbollinger
On Apr 5, 4:47 am, Pablo Fernandez wrote: > Dear all, > > I have a class where I declare one file and many execs with > create_resources: > > class module::yeah { >    file {"myfile"} >    $hash = parseyaml(inline_template('hereigeneratemynicehash.to_yaml')) >    create_resources ('exec', $hash)

Re: [Puppet Users] Re: multiple resources dependencies

2012-04-05 Thread Pablo Fernandez
Hi John, I like option 2) very much, but 1) opens new doors too :) A small extract from the manual, just for clarification: " Defaults are not global — they only affect the current scope and scopes below the current one. If you want a default setting to affect your entire configuration, your o

[Puppet Users] Re: Customizing a hostname facts

2012-04-05 Thread jcbollinger
On Apr 5, 1:39 am, mac01 wrote: > Hi, > > I am trying to override a hostname.rp from path: * > /usr/lib/ruby/site_ruby/1.8/facter* as, > > Facter.add(:hostname) do >   confine :hostname => "serialnumber" >   setcode do >     Facter::Util::Resolution.exec('cat /sys/power/states') >   end > end >

[Puppet Users] Re: change host file depending on location

2012-04-05 Thread jcbollinger
On Apr 4, 8:30 pm, Len Rugen wrote: > We run Foreman, so I never think of parameterized classes :-) My esteem for Foreman has just gone up a notch. :) John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email

[Puppet Users] Re: using content in file as input variables to a class/def?

2012-04-05 Thread jcbollinger
On Apr 4, 10:51 am, Jaakan Shorter wrote: > Here is the setup > Clients are all under /usr/home/ftp/$client > Internal Production is /usr/home/$internaluser > > I need to make slinks for every client folder under every Internal > Production ie: ln -s /usr/home/ftp/$client /usr/home/$internaluser

[Puppet Users] Update

2012-04-05 Thread Michael Glatz
I now have it listed in the console but I am now getting new errors err Could not retrieve catalog; skipping runPuppet 2012-04-05 10:22 EDT err Could not retrieve catalog from remote server: Error 400 on SERVER: No matching value for selector param 'undef' at /op

[Puppet Users] Re: HP-UX Puppet Agent

2012-04-05 Thread Michael Glatz
I now have it communicate regularly between master and client but I am now getting some reporting issues. err Could not retrieve catalog; skipping run Puppet 2012-04-05 10:22 EDT err Could not retrieve catalog from remote server: Error 400 on SERVER: No matching value for selector param '

Re: [Puppet Users] Re: HP-UX Puppet Agent

2012-04-05 Thread Nan Liu
On Thu, Apr 5, 2012 at 2:33 PM, Michael Glatz wrote: > I now have it communicate regularly between master and client but I am > now getting some reporting issues. > > err     Could not retrieve catalog; skipping run Puppet 2012-04-05 10:22 > EDT > > err     Could not retrieve catalog from remote s

[Puppet Users] Re: HP-UX Puppet Agent

2012-04-05 Thread Michael Glatz
Removing the default group worked for the most part but I am still running into some issues It cataloged correctly and even ran the test class I created notice: Starting Puppet client version 2.7.12 debug: Finishing transaction 545631632 debug: Loaded state in 0.00 seconds processor - invalid maj

Re: [Puppet Users] Re: HP-UX Puppet Agent

2012-04-05 Thread Nan Liu
On Thu, Apr 5, 2012 at 2:57 PM, Michael Glatz wrote: > Removing the default group worked for the most part but I am still > running into some issues > > It cataloged correctly and even ran the test class I created > > notice: Starting Puppet client version 2.7.12 > debug: Finishing transaction 545

Re: [Puppet Users] Re: HP-UX Puppet Agent

2012-04-05 Thread Justin Stoller
On Thu, Apr 5, 2012 at 8:22 AM, Nan Liu wrote: > On Thu, Apr 5, 2012 at 2:57 PM, Michael Glatz wrote: > > Removing the default group worked for the most part but I am still > > running into some issues > > > > It cataloged correctly and even ran the test class I created > > > > notice: Starting

Re: [Puppet Users] openstack-puppet mailing list

2012-04-05 Thread Henrik Lindberg
Will you get the google group listed on news.gmane.org to enable reading via news/nntp ? Regards - henrik On 2012-05-04 6:23, Dan Bode wrote: Hi all, I have been working to create a community around a set of modules for configuring and deploying OpenStack. For folks who are interested in our

Re: [Puppet Users] Why latest stable Debian Squeeze package is 2.6.2-5+squeeze4 please ?

2012-04-05 Thread Gabriel Filion
On 12-04-05 07:19 AM, Christophe L wrote: > After some research, I have found that the last stable debian package > version is > puppet (2.6.2-5+squeeze4) [security] > http://packages.debian.org/squeeze/puppet > > and that 2.7.12-3 is considered as unstable > http://packages.qa.debian.org/p/puppet

[Puppet Users] newly added ruby function executes on the server instead of the node

2012-04-05 Thread vicki
Hi, 1) I added this test function tom my /etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb : *module Puppet::Parser::Functions newfunction(:write_line_to_file) do |args| filename = args[0] str = args[1] File.open(args[0], 'a') {|fd| fd.puts str

Re: [Puppet Users] newly added ruby function executes on the server instead of the node

2012-04-05 Thread Nan Liu
On Thu, Apr 5, 2012 at 7:06 PM, vicki wrote: > Hi, > 1) I added this test function tom my > /etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb > : > > module Puppet::Parser::Functions newfunction(:write_line_to_file) do |args| >     filename = args[0] >     st

Re: [Puppet Users] newly added ruby function executes on the server instead of the node

2012-04-05 Thread Christopher Wood
On Thu, Apr 05, 2012 at 07:14:10PM +, Nan Liu wrote: > On Thu, Apr 5, 2012 at 7:06 PM, vicki wrote: > > Hi, > > 1) I added this test function tom my > > /etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb > > : > > > > module Puppet::Parser::Functions newfu

[Puppet Users] Re: newly added ruby function executes on the server instead of the node

2012-04-05 Thread vicki
Thank you for the quick reply! This explains the the behavior I see. On Thursday, April 5, 2012 12:06:00 PM UTC-7, vicki wrote: > > Hi, > 1) I added this test function tom my > /etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb > > : > > *module Puppet::Pa

[Puppet Users] Getting started

2012-04-05 Thread Brown, Rodrick
I really hate poor documentation. I'm following along in PDF documentation I downloaded from the official site and I'm stuck after I installed rack & passenger modules from rubygems. I ran the passenger build script and it compiled and installed into my local apache httpd server successfully. N

Re: [Puppet Users] Getting started

2012-04-05 Thread Jo Rhett
You've probably gone about this the hard way. It would be best to just get the server running without passenger and learn Puppet itself. You only need passenger when you exceed 50-100 systems. Anyway, to answer your questions the config.ru is available in share/puppet (exactly where dependin

Re: [Puppet Users] Getting started

2012-04-05 Thread Christopher Wood
In your position I would "apt-get install puppet" and then try out some manifests before running my own puppetmaster. Then I would "apt-get install puppetmaster" or something similar. Personally I have never installed from gems and I've been just fine. (Or pkg_add -r puppet or yum install puppe

Re: [Puppet Users] Getting started

2012-04-05 Thread Russell Van Tassell
It might also be helpful to include your O/S, here ... as there are many linuxes where installing puppet can largely be reduced to installing the right RPMs out of one repository or another (so you worry less about compiling and manufacturing basic configs than just learning how to make puppet go).

Re: [Puppet Users] Getting started

2012-04-05 Thread Eric Shamow
Jo, Very good advice - Rodrick, I'd try the Learning Puppet VM to start and get used to the tool first. There's an excellent Learning Puppet doc as well - http://docs.puppetlabs.com/learning/ That should get you started. -Eric -- Eric Shamow Professional Services http://puppetlabs.com/

Re: [Puppet Users] Getting started

2012-04-05 Thread Tom Barber
I have to say I find the online documentation very helpful indeed... along with github once you get working with the module. On Thu, Apr 5, 2012 at 10:26 PM, Eric Shamow wrote: > Jo, > > Very good advice - Rodrick, I'd try the Learning Puppet VM to start and > get used to the tool first. Ther

[Puppet Users] Re: Why latest stable Debian Squeeze package is 2.6.2-5+squeeze4 please ?

2012-04-05 Thread Christophe L
Thank you all for your answers ! As a suggestion for the documentation, that would be nice to have information about the http://apt.puppetlabs.com/ apt repository on the puppet installation page. Best regards, Christophe On 5 avr, 20:58, Gabriel Filion wrote: > On 12-04-05 07:19 AM, Christophe

[Puppet Users] define function problem

2012-04-05 Thread sam
Hi All, Hope you people are doing good. I have a manifest file : lass profile { # setup profile parms. We dont handle non Ubuntu OS yet if ("$operatingsystem" == "Ubuntu") { file { "/etc/profile.d": ensure => directory, purge => true,