Re: [Puppet Users] Re: How to escape exec command parameters?

2012-02-15 Thread Peter Valdemar Mørch
On Wed, Feb 15, 2012 at 6:49 PM, jcbollinger wrote: > $v = $::some_unsafe_value > $v_safe = inline_template("<% require 'shellwords' %><%= > shellwords.escape(v) %>") Cool. It *is* possible. Didn't think to consider using a template... > Overall, however, I suspect that you are probing a rather

[Puppet Users] uncaught exception of type NoMethodError: undefined method `<=>'

2012-02-15 Thread Andreas Roth
Hi, i've upgraded many of my client machines to version 2.7.10 lately and since on some clients (server is running 2.7.10) i get the following error (running puppetd -tvd --noop --trace): /usr/lib/ruby/1.8/puppet/simple_graph.rb:181:in `<=>' /usr/lib/ruby/1.8/puppet/simple_graph.rb:181:in `sort' /

[Puppet Users] Announce: Puppet Dashboard 1.2.6rc1 Available

2012-02-15 Thread Matthaus Litteken
This is a maintenance release candidate of Puppet Dashboard. It includes contributions from Adrien Thebo, Chad Metcalf, Chris W, Daniel Pittman, Daniel Sauble, Devon Harless, Michael Stahnke, Moses Mendoza, Randall Hansen, Josh Lifton, and Nick Fagerlund. This release is available for download at:

[Puppet Users] About puppet report

2012-02-15 Thread Dmitry
Hello! I am using puppet-2.7.6 under FreeBSD. Here is my config file: [agent] server = some.server.tld splay = true [master] reportfrom = s...@email.tld reports = store, tagmail ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY If client is unable to

[Puppet Users] How to configure PE 2.0 compliance ?

2012-02-15 Thread bikash kumar
Hi , I want to use PE 2.0 compliance feature , however i am not seeing any data on puppet-dashboard on compliance tab , it says no baseline set , reviewed NA etc. I have written audit manifests class foo { file {'/etc/resolv.conf': audit => all, } file {'/etc/s

[Puppet Users] Re: puppet on solaris 11

2012-02-15 Thread deet
Tim. From your example I don't think "puppet file /etc/hosts" is a valid puppet command. I'm guessing you wanted to query the /etc/hosts file resource with the resource command like the following. See if that works for you. $puppet resource file /etc/hosts file { '/etc/hosts': ensure => '

Re: [Puppet Users] puppet on solaris 11

2012-02-15 Thread heriyanto
Maybe you can check this log installation for solaris 11 http://log.unixhat.com/2012/02/setup-instalasi-solaris-sebagai-puppet.html On 02/16/2012 10:53 AM, Tim Dunphy wrote: Hello Darin, Thanks for your input. Well I've tried the repo that you suggested however the result appears to be the sam

Re: [Puppet Users] puppet on solaris 11

2012-02-15 Thread Tim Dunphy
Hello Darin, Thanks for your input. Well I've tried the repo that you suggested however the result appears to be the same: root@sol5:~# puppet file /etc/hosts /opt/csw/lib/ruby/site_ruby/1.8/puppet/application.rb:219:in `find': undefined method `join' for Puppet::Application::File:Class (NoMetho

Re: [Puppet Users] Cache for the local system while offline

2012-02-15 Thread Khoury Brazil
On Wed, Feb 15, 2012 at 5:51 PM, Daniel Pittman wrote: > On Wed, Feb 15, 2012 at 17:26, Khoury Brazil wrote: >> On Thu, Feb 9, 2012 at 1:09 PM, Daniel Pittman wrote: >>> >>> On Thu, Feb 9, 2012 at 06:12, mukulm wrote: >>> > >>> > I want to cache the updates for the users system received from th

Re: [Puppet Users] Cache for the local system while offline

2012-02-15 Thread Daniel Pittman
On Wed, Feb 15, 2012 at 17:26, Khoury Brazil wrote: > On Thu, Feb 9, 2012 at 1:09 PM, Daniel Pittman wrote: >> >> On Thu, Feb 9, 2012 at 06:12, mukulm wrote: >> > >> > I want to cache the updates for the users system received from the >> > server so that the users can get the updates >> > from t

Re: [Puppet Users] Cache for the local system while offline

2012-02-15 Thread Khoury Brazil
On Thu, Feb 9, 2012 at 1:09 PM, Daniel Pittman wrote: > > On Thu, Feb 9, 2012 at 06:12, mukulm wrote: > > > > I want to cache the updates for the users system received from the > > server so that the users can get the updates > > from the local system cache while offline. > > > > Any idea how can

[Puppet Users] Re: 1 week until Feb RCs are cut

2012-02-15 Thread Michael Stahnke
On Wed, Feb 8, 2012 at 1:33 PM, Michael Stahnke wrote: > We have 1 week until we cut RCs for Puppet, Dashboard and Facter.  If > you have tickets you've been working on, please try to get pull > requests in and merged as soon as reasonably possible for this > release. We're not going to be able

Re: [Puppet Users] Re: vmware provisioning

2012-02-15 Thread Eric Shamow
Indeed, at $(job - 1) we implemented something to do this pretty quickly, although not with the flexibility of cloud provisioner. In theory it should be easy to write something through the cloud provisioning framework that takes even less time and is more flexible than our tools, but it's a fai

Re: [Puppet Users] Re: vmware provisioning

2012-02-15 Thread Brian Gupta
Foreman has support for this. (Tied into Foreman provisioning workflow). I am unaware of any other support for VMware provisioning in the open source Puppet world, but in theory it shouldn't be too hard to write. -Brian On Wed, Feb 15, 2012 at 3:55 PM, Luke wrote: > Just to clarify, > > We curr

Re: [Puppet Users] Yaml server facts, weird message: "id00"

2012-02-15 Thread Marek Dohojda
Pulling inventory of servers stored in yaml. that way I have real live data that is constantly up to date. Sent from my ASUS Eee Pad Ken Barber wrote: >What are you actually trying to do with the YAML file today Marek >whereby the links are causing such problems? This is a semi-loaded >questio

Re: [Puppet Users] Yaml server facts, weird message: "id00"

2012-02-15 Thread Ken Barber
What are you actually trying to do with the YAML file today Marek whereby the links are causing such problems? This is a semi-loaded question ... call me curious :-). On Wed, Feb 15, 2012 at 9:55 PM, Marek Dohojda wrote: > :: sigh ::: > > Back to the ol' drawing board.  LOL. > > Well I guess that

Re: [Puppet Users] Yaml server facts, weird message: "id00"

2012-02-15 Thread Daniel Pittman
On Wed, Feb 15, 2012 at 13:55, Marek Dohojda wrote: > :: sigh ::: Back to the ol' drawing board.  LOL. Sorry. > Well I guess that's what I get  by assuming that it will remain text, and > not use macros.  Silly me. YAML isn't my preferred tool for this sort of problem, because of exactly this.

Re: [Puppet Users] puppet on solaris 11

2012-02-15 Thread Darin Perusich
Puppet package for solaris are available from OpenCSW.org and are kept up to date by the maintainer. You may find this easier and cleaner then mucking around with source and gem installs. -- Later, Darin On Wed, Feb 15, 2012 at 4:40 PM, Tim Dunphy wrote: > hello, > >  I've been asked to instal

Re: [Puppet Users] Yaml server facts, weird message: "id00"

2012-02-15 Thread Marek Dohojda
:: sigh ::: Back to the ol' drawing board. LOL. Well I guess that's what I get by assuming that it will remain text, and not use macros. Silly me. Thank you so much for your help! On Wed, Feb 15, 2012 at 11:58 AM, Daniel Pittman wrote: > Hey. So, to answer your questions in reverse order:

[Puppet Users] String matching and case-insensitivity

2012-02-15 Thread Mohamed Lrhazi
When I run a puppet apply against this: notice("operatingsystem: $operatingsystem") case $operatingsystem { redhat: { notice("Matched redhat in switch") } default: { notice("Did not match redhat in switch") } } if ($operatingsystem == "redhat") { notice("Matched redhat in if") } else {

[Puppet Users] puppet on solaris 11

2012-02-15 Thread Tim Dunphy
hello, I've been asked to install puppet client onto a solaris 11 machine. I found some instructions that referenced a website called 'codenursary.com' however that website does not appear to be online anymore. http://projects.puppetlabs.com/projects/1/wiki/Puppet_Solaris codenursery.com H

Re: [Puppet Users] Re: Removing the ability to serve symlinks as symlinks from the master...

2012-02-15 Thread Daniel Pittman
On Tue, Feb 14, 2012 at 06:54, jcbollinger wrote: > On Feb 13, 4:58 pm, Daniel Pittman wrote: >> >> We recently found some issues with the `links => follow` setting in >> recursive file copying; the designed behaviour is that it should allow >> you to determine if the master serves a symlink in a

[Puppet Users] Re: Question about reusing classes/modules

2012-02-15 Thread Tony C
My own problem is that once I setup a variable, I can't reassign the variable again in the same module. Based on what I saw in the in dashboard, there is a conflict. I think I over engineered this piece of my project. I am better off manually creating 40 properties values, treating all of the valu

[Puppet Users] Re: vmware provisioning

2012-02-15 Thread Luke
Just to clarify, We currently have centos templates in ESX that we manually clone to VM and configure (add HD network etc) then kick off puppet. We would like to automate these initial steps. On Feb 15, 4:30 pm, Luke wrote: > Does anyone know of a module that will spin up and configure a centos

[Puppet Users] Announce: Facter 1.6.6rc1 available

2012-02-15 Thread Matthaus Litteken
Facter 1.6.6rc1 is a maintenance release candidate with fixes, refactoring and packaging improvements. It includes contributions from the following people: Daniel Pittman, Jeremy Katz, Josh Cooper, Moses Mendoza This release is available for download at: http://downloads.puppetlabs.com/facter/fa

[Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-02-15 Thread Christian McHugh
I've got slightly more info. In trying to figure this out I ran across http://projects.puppetlabs.com/issues/10665 where it was suggested that the persist-firewall bits (already shown in the previous message) get placed into site.pp. This almost worked perfectly. I've placed the following inside a

[Puppet Users] vmware provisioning

2012-02-15 Thread Luke
Does anyone know of a module that will spin up and configure a centos vmware template? I see options with PE any with the open source version? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@goog

Re: [Puppet Users] Yaml server facts, weird message: "id00"

2012-02-15 Thread Daniel Pittman
Hey. So, to answer your questions in reverse order: There is almost certainly no way to get the "old behaviour" back without running the older software. This isn't something we are deliberately doing, it is a property of the YAML encoder, which is working absolutely as designed. You should read

Re: [Puppet Users] Undocumented feature: puppet --noop

2012-02-15 Thread Daniel Pittman
On Tue, Feb 14, 2012 at 10:32, Peter Valdemar Mørch wrote: G'day Peter. > http://docs.puppetlabs.com/man/apply.html does not mention a --noop > parameter, but it works: > > capmon@peter:~> puppet apply --noop -e 'file { "/tmp/foo": ensure => present > }' > notice: /Stage[main]//File[/tmp/foo]/e

[Puppet Users] puppetlabs-firewall stages and persistence

2012-02-15 Thread Christian McHugh
Hi all, I'm attempting to use the puppetlabs-firewall module. In testing, rules are enabled in a random order, so it seems necessary to utilize puppet stages to guarantee proper ordering. I created a module to organize my firewalling. It consists of localfw::pre to open the INPUT chain for establ

Re: [Puppet Users] Re: Can't sign certificate

2012-02-15 Thread Dan White
Make sure the clocks are in sync “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Kkweit wrote: > Not in my case. I do have the puppetmaster service started. > > > On Fe

[Puppet Users] Re: How to escape exec command parameters?

2012-02-15 Thread jcbollinger
On Feb 15, 9:14 am, Peter Valdemar Mørch wrote: > Thanks, John, for your reply also on this matter! > > On Feb 15, 3:16 pm, jcbollinger wrote: > > > It seems like this should do the trick: > > puppet -e '$v="xyz" exec { f: command => "/bin/echo v is \'$v\'", > > logoutput => true }' > > :-) Yea

[Puppet Users] Re: Can't sign certificate

2012-02-15 Thread Cody Lane
What version of puppet are you running? What OS and what version of ruby? Also, if you are having cert issues you might want to check the time on your puppet master vs the client. The problem occurs because of SSL uses the time to create the certs. If the time is different on both master and cl

[Puppet Users] Re: Can't sign certificate

2012-02-15 Thread Kkweit
Not in my case. I do have the puppetmaster service started. On Feb 15, 5:31 pm, Eric Lake wrote: > I had the same kind of thing happening to me today I think. Turns out > in my case that the puppetmaster service was not started on my puppet > server. > > On Feb 15, 11:04 am, Kkweit wrote: > > >

[Puppet Users] Re: Can't sign certificate

2012-02-15 Thread Eric Lake
I had the same kind of thing happening to me today I think. Turns out in my case that the puppetmaster service was not started on my puppet server. On Feb 15, 11:04 am, Kkweit wrote: > Hi, > > I'm new with using Puppet. Both my clients and the master are under > debian lenny. > I have to add a cl

[Puppet Users] Can't sign certificate

2012-02-15 Thread Kkweit
Hi, I'm new with using Puppet. Both my clients and the master are under debian lenny. I have to add a client on a Puppet master which is already running. I did put for my new client the same config than the others client running have. On Puppet client when i run: "puppetd --server puppet --waitfor

Re: [Puppet Users] Yaml server facts, weird message: "id00"

2012-02-15 Thread Marek Dohojda
PS... is there any way to revert it back to the old behavior? (I am not seeing this on RHEL5 with older Ruby). -Original Message- From: Marek Dohojda Sent: Tuesday, February 14, 2012 10:11 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Yaml server facts, weird message

[Puppet Users] Re: How to escape exec command parameters?

2012-02-15 Thread Peter Valdemar Mørch
Thanks, John, for your reply also on this matter! On Feb 15, 3:16 pm, jcbollinger wrote: > It seems like this should do the trick: > puppet -e '$v="xyz" exec { f: command => "/bin/echo v is \'$v\'", > logoutput => true }' :-) Yeah, that would take care of these particular instances. Now imagine

[Puppet Users] Re: SSL certificates issues with some of the nodes

2012-02-15 Thread jcbollinger
On Feb 14, 8:49 am, mukulm wrote: > Thanks for the valuable info but my scenario is option (A) but my > question is if once SSL certificates are signed for a node then how & > due to what reason > the SSL private key changes & what does preserving SSL private keys > means  ? If you can be cert

[Puppet Users] Re: How to escape exec command parameters?

2012-02-15 Thread jcbollinger
On Feb 14, 9:10 am, Peter Valdemar Mørch wrote: > If I have a "simple" variable value, this works fine: > > capmon@peter:~> puppet -e '$v="xyz" exec { f: command => "/bin/echo v > is $v", logoutput => true }' > notice: /Stage[main]//Exec[f]/returns: v is xyz > notice: /Stage[main]//Exec[f]/retur

[Puppet Users] Re: inherits from parametrized class

2012-02-15 Thread jcbollinger
On Feb 14, 10:41 am, Nan Liu wrote: > On Tue, Feb 14, 2012 at 6:49 AM, ruslan usifov > wrote: > > Hello > > > In is possible inherits from parametrized class?? Is class inheritance really would you should be using? If your intention is for the child class to override properties of resources

[Puppet Users] Re: strange service behaviour in kickstart chroot

2012-02-15 Thread jcbollinger
On Feb 14, 8:41 am, hai wu wrote: > There are no single or double quotes. That is the exact file I manually run > inside chroot environment during kickstart phase. I am kickstarting RHEL6U2 > server, and in kickstart ssh access is turned on, so I could ssh into > chroot environment, and do "chro

RE: [Puppet Users] Augeas question a

2012-02-15 Thread Steve Shipway
This is only a guess, but is Augeas doing a STRING comparison of the values instead of a NUMERICAL one? String-wise, "7000" < "80" but numerically it's the other way around. Can you try setting the current value to '1' and see if Augeas wants to change it to 784009728. If it does, then that'