[Puppet Users] Re: Service[](provider=smf): Could not get status on service

2010-11-22 Thread Rudy Gevaert
Hi Stefan, On Nov 19, 9:49 pm, Stefan Schulte wrote: > So you want to remove a package and make sure that the service is > stopped before that. I can think of a few options: > > - remove the service resource: When you remove a package there should be >   a pre_exec or something that stops your s

[Puppet Users] Something wrong after upgraded to puppet-dashboard 1.04

2010-11-22 Thread daniel
After upgraded to puppet-dashboard 1.04, when I click links to check information of nodes or groups , such as http://localhost:3001/nodes/22, it return a "We're sorry, but something went wrong." to me. Checking the log, i got something as follows: ActionView::TemplateError (undefined method `

[Puppet Users] puppetd:err: Could not retrieve catalog from remote server: hostname was not match with the server certificate

2010-11-22 Thread aleksey_k
Hi. Puppetmaster server: #hostname -f puppet.config.site.ru # puppetmasterd --version 2.6.1 Puppetd server: #hostname -f serv1.kzn.site.ru # puppetd --version 2.6.1 I try send request for registration from puppetd server: puppetd --verbose --no-daemonize --server puppet.config.site.ru -- waitforc

[Puppet Users] problem with relative path

2010-11-22 Thread sanjiv.singh
hi all , priorly , i deployed puppet as.. /etc/puppet/ --/puppet.conf --/modules (all modules here) --/manifests i want to use environment option to select module according to environment given. now to use environment option , changerd puppet.c

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

2010-11-22 Thread Peter Meier
> I just wonder if those work ? (syntax below) no. ~pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr..

[Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Nick
Hi, So I was quietly cursing the Puppet DSL for making otherwise simple things difficult, such as merging two arrays [1], and I was even starting to wonder if I should look at alternatives like Chef more closely. But then I had an idea - maybe someone has written a Ruby DSL like Chef's which plug

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Peter Meier
> Although reading the release notes page [4], it looks like I can't rely on > cross-version interoperability at all, so it's starting to look like I'm going > to have to deploy from source to get the same version everywhere :( Or you might want to build your own packages and deploy them. Which is

[Puppet Users] how to use absolute path

2010-11-22 Thread sanjiv.singh
hi , i want to use absolute path as a source of file like file { "/var/lib/conf/Request.xsd": owner => 'root', source => '/etc/buildmodules/build1/modules/tomcat/files/ Request.xsd' , } but it give following error ... err: //tomcat/File[/var/lib/conf/Request.xsd]: Failed to retrieve

[Puppet Users] Re: Service[](provider=smf): Could not get status on service

2010-11-22 Thread jcbollinger
On Nov 19, 12:25 pm, Rudy Gevaert wrote: > I'm trying to get around the following issue.  I want to make sure if > a service is stopped.  I'm trying to do this is solaris but I don't > think this is OS specific. [...] > when the software is not installed it can not check: > info: Service[sendm

[Puppet Users] Hudson, manitest and the hostname fact

2010-11-22 Thread Ramon van Alteren
Hi All, We're trying to get a hudson build working for our puppet modules by using manitest. So far we've had good progress but right now we're stumped. We have a set of manifest/template combinations where the manifest code uses the hostname fact to pick a specific template tied to a particular

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Nigel Kersten
On Mon, Nov 22, 2010 at 3:15 AM, Nick wrote: > Hi, > > So I was quietly cursing the Puppet DSL for making otherwise simple things > difficult, such as merging two arrays [1], and I was even starting to wonder > if > I should look at alternatives like Chef more closely. > > But then I had an idea

Re: [Puppet Users] how to use absolute path

2010-11-22 Thread Nigel Kersten
On Mon, Nov 22, 2010 at 5:12 AM, sanjiv.singh wrote: > hi , > i want to use absolute path as a source of file > > like > > file { "/var/lib/conf/Request.xsd": >    owner => 'root', >    source => '/etc/buildmodules/build1/modules/tomcat/files/ > Request.xsd' , >  } > > but it give  following error

[Puppet Users] Re: preferred directory structure for multiple environments

2010-11-22 Thread jcbollinger
On Nov 19, 11:33 am, James Louis wrote: > That's good to know. I originally installed on OpenSuse and it set up the > sysconfig file automagically. Now I'm working on CentOS and what I'm hearing > is I don't need to set up a sysconfig file (which I already have). Some RHEL/CentOS packages also

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Todd Zullinger
Nick wrote: > RHEL/CentOS 5 has nothing at all in base, and only v22.4 in RPMForge You want to use EPEL for puppet in RHEL/CentOS, as the RPMForge packages are way out of date. That said, we've stuck with 0.25.5 for now in EPEL. But I have 2.6.x builds in my own repository to aid in testing on R

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Nick
On 22/11/10 15:22, Nigel Kersten wrote: > Are those your three target platforms? Debian Lenny, Ubuntu Lucid and > RHEL/CentOS 5 ? Approximately. I'm evaluating Puppet personally, using my own machines, which are either Debian or Ubuntu. I have a Debian Etch machine I want to replace with a Debia

Re: [Puppet Users] facter fact catalog?

2010-11-22 Thread Nan Liu
On Sun, Nov 21, 2010 at 7:55 AM, Nick wrote: > 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 $operatingsy

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread James Turnbull
Nick wrote: > - is there any more info anywhere, or anything in the pipeline? > - will it work with older clients? There isn't really a huge amount more information - it's a pretty new feature. We'd love to see some modules, examples, more feedback. It should work fine with older clients. >

[Puppet Users] Re: what are the constraints on the contents of 'imported ' files

2010-11-22 Thread jcbollinger
On Nov 20, 1:53 pm, "russell.fulton" wrote: > one question can you have more than one instance of a parameterised > module?  I am guessing the answer is no.  I could not find an explicit > answer in the docs. I think you're asking about parameterized *classes*, as the Puppet terminology goes. T

[Puppet Users] Re: facter fact catalog?

2010-11-22 Thread jcbollinger
On Nov 22, 12:18 pm, Nan Liu wrote: > On Sun, Nov 21, 2010 at 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. [...] > It is

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Patrick
On Nov 22, 2010, at 10:21 AM, James Turnbull wrote: >> Although reading the release notes page [4], it looks like I can't rely on >> cross-version interoperability at all, so it's starting to look like I'm >> going >> to have to deploy from source to get the same version everywhere :( > > This

[Puppet Users] gem install puppet-2.6.3 problem

2010-11-22 Thread rjl
All, Trying to install puppet-2.6.3 on CentOS 5.4 and I get the following. [r...@stsdev-pri ~]# gem install puppet-2.6.3 ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Error installing puppet-2.6.3: puppet requires facter (>= 1.5.1, runtime) Facter is installed: [

[Puppet Users] Re: gem install puppet-2.6.3 problem

2010-11-22 Thread tchong
I thought there were issues with ruby versions > than 1.8.6 on centos. On Nov 22, 1:11 pm, rjl wrote: > All, > Trying to install puppet-2.6.3 on CentOS 5.4 and I get the following. > > [r...@stsdev-pri ~]# gem install puppet-2.6.3 > ERROR:  http://rubygems.org/does not appear to be a repository >

Re: [Puppet Users] gem install puppet-2.6.3 problem

2010-11-22 Thread James Turnbull
rjl wrote: > Ruby is installed: > [r...@stsdev-pri ~]# ruby --version > ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] > Puppet is not yet compatible with Ruby 1.9.x. Regards James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received this message bec

[Puppet Users] back to basics :)

2010-11-22 Thread russell.fulton
Firstly thank you Daniel for your response on the scope stuff in templates -- I had read that doc and missed it. I am still struggling with this and I suspect that there may well be a better way of doing what I need so as the subject says I am going back to basics. In this post I will try and abst

Re: [Puppet Users] gem install puppet-2.6.3 problem

2010-11-22 Thread Rick
Hmmm. I haven't tried puppet yet but I did finally get it installed. In uninstalled the facter rpm and then installed the facter 1.8 gem and then the puppet 2.6.3 gem without any issues. -Original Message- From: James Turnbull Organization: Puppet Labs Reply-To: Date: Mon, 22 Nov 2010 1

[Puppet Users] best way to test snippets of puppet config

2010-11-22 Thread russell.fulton
Over the last few weeks I have several times felt the need to test out some small snippets of puppet code without having to have them in my live system. At the moment I am doing all my testing by fiddling with file on the puppet master and then invoking puppet on one of the clients. There must be

Re: [Puppet Users] 2.6.x Ruby DSL

2010-11-22 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Just a quick warning, I've found that 2.6.0 is too buggy to be useful, but > anything higher worked well for me. you should always use the latest minor version of a major version. ~pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Li

Re: [Puppet Users] best way to test snippets of puppet config

2010-11-22 Thread R.I.Pienaar
hello, - Original Message - > Over the last few weeks I have several times felt the need to test out > some small snippets of puppet code without having to have them in my > live system. I've blogged a number of techniques at http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_

Re: [Puppet Users] best way to test snippets of puppet config

2010-11-22 Thread Craig Miskell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 russell.fulton wrote: > Over the last few weeks I have several times felt the need to test out > some small snippets of puppet code without having to have them in my > live system. > > At the moment I am doing all my testing by fiddling with file on t

Re: [Puppet Users] back to basics :)

2010-11-22 Thread Daniel Pittman
"russell.fulton" writes: > Firstly thank you Daniel for your response on the scope stuff in templates > -- I had read that doc and missed it. No worries - happy to help. As an incidental aside, if you actually continue the same thread by replying to a previous message my mail client highlights

[Puppet Users] Re: back to basics :)

2010-11-22 Thread russell.fulton
> } > > define sensor () { >   $rules = generate("/usr/local/sbin/get-rules-for ${fqdn} ${name}") >   # ...and that emits a single string with the right data. > It looks as if one can not pass variables into generators to protect us from ourselves "Generators can only contain alphanumerics,

Re: [Puppet Users] Re: back to basics :)

2010-11-22 Thread Daniel Pittman
"russell.fulton" writes: >> } >> >> define sensor () { >>   $rules = generate("/usr/local/sbin/get-rules-for ${fqdn} ${name}") >>   # ...and that emits a single string with the right data. >> > > It looks as if one can not pass variables into generators to protect > us from ourselves > > "Gen