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

2012-02-17 Thread Tony C
http://www.craigdunn.org/2011/10/puppet-configuration-variables-and-hiera/ Hiera it is! Exactly what I needed. i just need a bit more explaining. On Feb 11, 5:48 pm, Eric Shamow wrote: > I would avoid this approach - global variables aren't a good idea. > > Hiera would be a better approach: > >

Re: [Puppet Users] Installing Puppet/Facter without sudo/root access

2012-02-17 Thread Jeff McCune
On Feb 17, 2012, at 3:10 PM, Michael Stahnke wrote: > On Fri, Feb 17, 2012 at 1:43 PM, Jeff Sussna wrote: >> I want to use Puppet and Facter on a machine where I don't have sudo >> or root access privileges. I won't be using Puppet for anything that >> requires that level of access, so I should

Re: [Puppet Users] Installing Puppet/Facter without sudo/root access

2012-02-17 Thread Michael Stahnke
On Fri, Feb 17, 2012 at 1:43 PM, Jeff Sussna wrote: > I want to use Puppet and Facter on a machine where I don't have sudo > or root access privileges. I won't be using Puppet for anything that > requires that level of access, so I should be OK if I can get it on > the box. Any advice on how to pr

[Puppet Users] Re: Puppet unless behaviour with a dependency

2012-02-17 Thread jcbollinger
On Feb 17, 9:19 am, "R.I.Pienaar" wrote: > - Original Message - > > From: "jimbob palmer" > > To: puppet-users@googlegroups.com > > Sent: Friday, February 17, 2012 3:12:46 PM > > Subject: [Puppet Users] Puppet unless behaviour with a dependency > > > Is this really expected behaviour? S

[Puppet Users] Installing Puppet/Facter without sudo/root access

2012-02-17 Thread Jeff Sussna
I want to use Puppet and Facter on a machine where I don't have sudo or root access privileges. I won't be using Puppet for anything that requires that level of access, so I should be OK if I can get it on the box. Any advice on how to proceed? Currently the Facter installer complains that it doesn

[Puppet Users] Re: Puppet, Facter and Mcollective

2012-02-17 Thread Tony C
I just read another article in the mcollective-users group and re-read what you put, and see how I have this wrong. Puppet can do everything I need as far as > role = tomcat > tomcat_installed = no > env=dev > designated_app = MyApp1 > then install Tomcat and the apply the config files. Mcollec

[Puppet Users] Re: Puppet, Facter and Mcollective

2012-02-17 Thread Tony C
Hey Gary, Thanks for that, I read the link, as well as this article written by you http://puppetlabs.com/blog/the-problem-with-separating-data-from-puppet-code/ I think I have 2 use cases here. I need mcollective to do ad-hoc triggering of jobs and some orchestration based on some criteria, like

[Puppet Users] Re: puppet agent test showing error.

2012-02-17 Thread jcbollinger
On Feb 17, 1:03 am, sam wrote: > On Fri, Feb 17, 2012 at 12:08 PM, krish wrote: > > On Fri, Feb 17, 2012 at 11:50 AM, sam wrote: > >> Is there anyone who can help me ? > > > 1. Why not use maverick repo. Why source? > > Installing from source is the best method I guess and I've to do it on > p

[Puppet Users] Re: inherits from parametrized class

2012-02-17 Thread jcbollinger
On Feb 17, 3:48 am, ruslan usifov wrote: > 2012/2/15 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

Re: [Puppet Users] Re: Puppet, Facter and Mcollective

2012-02-17 Thread Gary Larizza
Tony, You might want to look at Hiera and doing this INSIDE Puppet instead of MC. MC is awesome for orchestration and ad-hoc triggering of jobs, but it sounds like what YOU want to do is ensure a final state of a machine based on its role, environment, and site. Hiera allows you to specify a hie

[Puppet Users] Re: Puppet, Facter and Mcollective

2012-02-17 Thread Tony C
Gary and Greg, wow, thanks a whole lot. I've been reading the same things you typed, in different posts, but for some reason after reading your posts, the light bulb went off and almost everything came together for me. How do I use facts.d? I understand what it does, but how can I leverage puppet a

Re: [Puppet Users] Puppet syntax check for Komodo Edit

2012-02-17 Thread Spirit
I was tried to find syntax highlighting for komodo and did not found it. But i found gepetto that based on eclipse. Try it. On 17.02.2012 21:44, Alexander Fortin wrote: Hi folks, Recently I've been using a MacBook Pro (Lion) as a workstation, I'm feeling good even if still missing some tool (c

Re: [Puppet Users] Re: Puppet on Windows

2012-02-17 Thread Josh Cooper
Hi Jay, On Thu, Feb 16, 2012 at 10:32 PM, Jay Ze wrote: > Thanks for your quick answer. What does "soon" mean? 1-2 weeks or > within the next months? > I have a fix in my topic branch: https://github.com/joshcooper/puppet/tree/ticket/2.7.x/11408-remote-recursionCan you try it out and update the

Re: [Puppet Users] Re: Puppet on Windows

2012-02-17 Thread Jeff McCune
On Thu, Feb 16, 2012 at 10:54 PM, Jay Ze wrote: > Sorry. Wanted to know what shortly means.. not soon ;-) > Shortly means by the end of March with that caveat there is a small chance it will not make it into the March release. Hope this helps, -Jeff -- You received this message because you are

[Puppet Users] Puppet syntax check for Komodo Edit

2012-02-17 Thread Alexander Fortin
Hi folks, Recently I've been using a MacBook Pro (Lion) as a workstation, I'm feeling good even if still missing some tool (coming from Ubuntu environment). I'd like to have a cross platform IDE with basic Puppet syntax highlight, so far the one that seems to better fit my needs is Komodo Edit v7

[Puppet Users] Puppet Labs Monthly Newsletter - February 2012

2012-02-17 Thread Michelle Carroll
* PUPPET LABS MONTHLY NEWSLETTER - FEBRUARY 2012 ** Getting Started With Puppet **Weekly Webinar: Ask Your Puppet Enterprise Questions. Get a Live Management demo, a

Re: [Puppet Users] How run a first command

2012-02-17 Thread Jair Gaxiola
My final class: class etc { package { ["build-essential", "python-psycopg2"]: ensure => installed, require => Exec[ 'apt-get_update'] } exec { 'apt-get_update': command => '/usr/bin/apt-get -y update' } } Thanks a lot On Fri, Feb

Re: [Puppet Users] Re: Could not set present on ensure: Read-only file system

2012-02-17 Thread Jair Gaxiola
Is work with run apt-get update first. Thanks a lot. On Fri, Feb 17, 2012 at 7:55 AM, jcbollinger wrote: > > > On Feb 16, 2:14 pm, Jair Gaxiola wrote: >> On Thu, Feb 16, 2012 at 1:28 PM, Denmat wrote: >> > Hi, >> >> > Is it a read only file system? >> >> > change from >> > purged to present fa

[Puppet Users] Mac OS X group resource bug?

2012-02-17 Thread Brian Warsing
Hi, I think I may have found a bug in how Mac OS X in handling group resources (I'm still new at this). Using Puppet 2.7.10 and Mac OS X I can create and modify groups without error. I provision... group { 'com.apple.access_ssh': members => ['thisadmin', 'thatadmin'], gid => '509', en

[Puppet Users] Re: Puppet unless behaviour with a dependency

2012-02-17 Thread jimbob palmer
On Feb 17, 5:12 pm, Adam Heinz wrote: > Something like this? > > exec { "second command": >    refreshonly => true, >    subscribe => Exec["first command"], > > > > > > > > } Gah! I'm five minutes behind you. It works - THANKS. -- You received this message because you are subscribed to the Goog

Re: [Puppet Users] Re: Puppet unless behaviour with a dependency

2012-02-17 Thread Adam Heinz
Something like this? exec { "second command": refreshonly => true, subscribe => Exec["first command"], } -- 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@googlegroups.com. To unsubscribe fr

[Puppet Users] Re: Puppet unless behaviour with a dependency

2012-02-17 Thread jimbob palmer
On Feb 17, 4:41 pm, jimbob palmer wrote: > On Feb 17, 4:19 pm, "R.I.Pienaar" wrote: > > > > > > > > > > > - Original Message - > > > From: "jimbob palmer" > > > To: puppet-users@googlegroups.com > > > Sent: Friday, February 17, 2012 3:12:46 PM > > > Subject: [Puppet Users] Puppet unless

[Puppet Users] Re: Puppet unless behaviour with a dependency

2012-02-17 Thread jimbob palmer
On Feb 17, 4:19 pm, "R.I.Pienaar" wrote: > - Original Message - > > From: "jimbob palmer" > > To: puppet-users@googlegroups.com > > Sent: Friday, February 17, 2012 3:12:46 PM > > Subject: [Puppet Users] Puppet unless behaviour with a dependency > > > Is this really expected behaviour? Sho

[Puppet Users] Re: glassfish application deployment fails

2012-02-17 Thread george pitich
turned out to be an invalid glassfish domain.xml file. please ignore. On Thu, Feb 16, 2012 at 11:54 PM, george pitich wrote: > i'm trying to install and deploy glassfish application using puppet in > a master agent mode. i'm able to download files from the master and > unzip them, configure etc .

Re: [Puppet Users] Puppet unless behaviour with a dependency

2012-02-17 Thread R.I.Pienaar
- Original Message - > From: "jimbob palmer" > To: puppet-users@googlegroups.com > Sent: Friday, February 17, 2012 3:12:46 PM > Subject: [Puppet Users] Puppet unless behaviour with a dependency > > Is this really expected behaviour? Should the second Exec succeed > even if the first nev

[Puppet Users] Re: Puppet unless behaviour with a dependency

2012-02-17 Thread jimbob palmer
Sorry: exec { "one": command => "/bin/true", unless => '/bin/true' } exec { "two": command => "/bin/true", require => Exec["one"], } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.go

[Puppet Users] Puppet unless behaviour with a dependency

2012-02-17 Thread jimbob palmer
Is this really expected behaviour? Should the second Exec succeed even if the first never runs? exec { "one": command => "/bin/true", unless => '/bin/false' } exec { "two": command => "/bin/true", require => Exec["one"], } -- You received this message because you are subscribed to the Googl

[Puppet Users] Re: About puppet report

2012-02-17 Thread Andreas Paul
I don't know if there is a warning tag in puppet by default, but I would try using the specific error tag in your tagmail.conf err: m...@email.tld You could also try setting all: m...@email.tld to test if your puppetmaster can send report emails at all. P.S. I had to restart my puppetmaster (ap

Re: [Puppet Users] Augeas question a

2012-02-17 Thread Dominic Cleal
On 15/02/12 08:10, Steve Shipway wrote: > 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

[Puppet Users] Re: Could not set present on ensure: Read-only file system

2012-02-17 Thread jcbollinger
On Feb 16, 2:14 pm, Jair Gaxiola wrote: > On Thu, Feb 16, 2012 at 1:28 PM, Denmat wrote: > > Hi, > > > Is it a read only file system? > > > change from > > purged to present failed: Could not set 'present on ensure: Read-only > > file system - /tmp/puppet20120216-1063-18q7lsz-0 at > > /tmp/vagr

[Puppet Users] New Node displays on Dashboard ..just not on live management screen

2012-02-17 Thread Mark B
I am a newbie..so forgive if this is easy question... I have a new node installed and it shows up and gets reports... but will not show up on live management screen in the mcollective.log on that machine I see the following error: INFO -- : stomp.rb:79:in `on_connectfail' Connction to stomp://m

Re: [Puppet Users] How run a first command

2012-02-17 Thread ruslan usifov
2012/2/17 Jair Gaxiola > Hi, > > I try exec my first command apt-get update, after install other > packages but run first apt-get install and not apt-get update > > > Exec { >path => "/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", > } > > exec { 'apt-get -y update': > command => '/usr/bin/ap

Re: [Puppet Users] How run a first command

2012-02-17 Thread Denmat
Hi, There are at least two simple options for you: require => Or before => > package { "build-essential": ensure => "installed", require => Exec[ 'apt-get > -y update'] There are other ordering methods too. I suggest you start here for some good examples. http://docs.puppetlabs.com/learnin

Re: [Puppet Users] Re: inherits from parametrized class

2012-02-17 Thread ruslan usifov
2012/2/15 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

[Puppet Users] glassfish application deployment fails

2012-02-17 Thread george pitich
i'm trying to install and deploy glassfish application using puppet in a master agent mode. i'm able to download files from the master and unzip them, configure etc ... the last two steps are to start the glassfish service and deploy war file. i haven't been able to deploy the war file so far as p

[Puppet Users] How run a first command

2012-02-17 Thread Jair Gaxiola
Hi, I try exec my first command apt-get update, after install other packages but run first apt-get install and not apt-get update Exec { path => "/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", } exec { 'apt-get -y update': command => '/usr/bin/apt-get -y update', } package { "build-essen