Re: [Puppet Users] how to use fully qualified names in erb...

2010-11-21 Thread Daniel Pittman
"russell.fulton" writes: > I have a class in a file monitor/manifest/masters/dmzo: [...] > and I get the error: > "Could not find value for 'rule_categories' at /etc/puppet/modules/ > monitor/manifests/init.pp:62" > > I have tried qualifying the name by prefixing it with dmzo:: and dmzo. then

[Puppet Users] how to use fully qualified names in erb...

2010-11-21 Thread russell.fulton
I have a class in a file monitor/manifest/masters/dmzo: class dmzo { $rule_categories = [ scan,finger,ftp,telnet,rpc,rservices,ddos,dns,tftp,web- coldfusion,misc,web-php, ] } and probably other variables eventually... In my monitor/manifest/init.pp: module monitor { impor

[Puppet Users] Re: more than one instance of a service

2010-11-21 Thread russell.fulton
I have worked my way around this one: empirical evidence suggest that one can use variable in include but not import. This makes some sort of sense. So I now import "master/*.pp" include $master This leads to another problem but I'll post it to a thread of its own... Russell -- You received

[Puppet Users] a dummy question - Could I use regular expression in Package ?

2010-11-21 Thread 張旭
I'm a newbie in Puppet. I had googled for a while, I just wonder if those work ? (syntax below) packe { provider => "yum" allowcdrom => true "python*": ensure => installed; "mysql*": ensure => installed; } please help! thanks! -- You received this messa

Re: [Puppet Users] Re: facter (ruby) question

2010-11-21 Thread Jos Backus
On Sat, Nov 20, 2010 at 11:01 PM, Jay Adkisson wrote: > FWIW, it's probably better performance-wise to do the string manipulations > in Ruby rather than shelling out to bash. > > Facter.add "lokatie" do > setcode do > case Facter.value(:ipaddress).split('.')[1] > when '84': 'AAA' >

[Puppet Users] Re: facter fact catalog?

2010-11-21 Thread donavan
On Nov 21, 7:55 am, Nick wrote: > A problem I've run into during my first attempts at writing manifests, is > knowing what possible facts are available, and for a given fact, what values > my > manifest might encounter. I use 'default' matches liberally. For required values I throw an error or w

Re: [Puppet Users] bug with using exported resources?

2010-11-21 Thread Stefan Schulte
On Tue, Nov 16, 2010 at 01:49:41AM +0100, Stefan Schulte wrote: > You should file a bug about the sshkey type not raising an Error if you > define a resourcename with "," in it. > > -Stefan Just for the record: The issue has already been reported: http://projects.puppetlabs.com/issues/2495 pgpE

[Puppet Users] more than one instance of a service

2010-11-21 Thread russell.fulton
Still on my sensor management project ;) I have a parameterised define (sensor) within a class monitor: class monitor { import "masters/*.pp" # class for each sensor master define sensor( $master, .) # and I want to include a class whose name is give by $master. include $ma

Re: [Puppet Users] DEPRECATION WARNING

2010-11-21 Thread Adam Gibbins
On Sun, Nov 21, 2010 at 6:15 PM, Markus Falb wrote: > On 18.11.10 21:17, CraftyTech wrote: > > Hello All, > > > > Is there a way of suppressing DEPRECATION WARNINGS? Ever since I > > upgraded rails, I keep on getting deprecation warnings that I run > > puppetd. Is there any way of turning

Re: [Puppet Users] DEPRECATION WARNING

2010-11-21 Thread Markus Falb
On 18.11.10 21:17, CraftyTech wrote: > Hello All, > > Is there a way of suppressing DEPRECATION WARNINGS? Ever since I > upgraded rails, I keep on getting deprecation warnings that I run > puppetd. Is there any way of turning these off? i.e, > > ruby --version > ruby 1.8.6 (2007-09-24 pat

[Puppet Users] facter fact catalog?

2010-11-21 Thread Nick
Hi, A problem I've run into during my first attempts at writing manifests, is knowing what possible facts are available, and for a given fact, what values my manifest might encounter. A classic one is the possible values of $operatingsystem, but it applies to all sorts of facts. Of course, I kno