Re: [Puppet Users] puppet dashboard

2011-06-16 Thread Patrick
On Jun 14, 2011, at 11:56 AM, Craig White wrote: > I am using Ubuntu 10.04 and ruby-enterprise (not ubuntu ruby) and installed > puppet via gem. > > How can I install puppet-dashboard if I don't see a gem available and if I > use the ubuntu package, i get the whole slop of ruby packages sucked

Re: [Puppet Users] Re: Custom type sample?

2011-06-16 Thread James Turnbull
Chetan wrote: On Jun 15, 10:42 pm, Nigel Kersten wrote: Did you find this document? http://projects.puppetlabs.com/projects/1/wiki/Development_Practical_... Thanks! I hadn't found that link earlier, however there are still quite a few bits missing to actually getting things to work in a real

Re: [Puppet Users] dashboard ENC and parameterized classes

2011-06-16 Thread Ashley Gould
On Wed, Jun 15, 2011 at 07:48:50PM -0700, Ashley Gould wrote: > > On Wed, Jun 15, 2011 at 06:13:52PM +0100, Ken Barber wrote: > > Certainly works for me in a simplified example ... can you simplify > > your example so it just does a notify? > > > > class firewall_extras ( > >    $services   = und

[Puppet Users] Re: Custom type sample?

2011-06-16 Thread Chetan
On Jun 15, 10:42 pm, Nigel Kersten wrote: > Did you find this document? > > http://projects.puppetlabs.com/projects/1/wiki/Development_Practical_... Thanks! I hadn't found that link earlier, however there are still quite a few bits missing to actually getting things to work in a real environment.

RE: [Puppet Users] puppet CA expired

2011-06-16 Thread Jennings, Jared L CTR USAF AFMC 46 SK/CCI
> [master] > ca_ttl = 20y Neat trick. By the time it expires you'll be gone! :P -- 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 from this group, send email to p

Re: [Puppet Users] sshd service enable on Ubuntu

2011-06-16 Thread Denmat
Hi, You're probably hitting this bug or similar: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573551 Cheers, Den On 17/06/2011, at 4:52, "Cashdollar, Matthew" wrote: > Hello, > > Could someone tell me how to use 'enable' on Ubuntu? I am not too > familiar with this OS, as I usually use

Re: [Puppet Users] functions and environments

2011-06-16 Thread Gabriel Filion
On 11-06-16 03:47 PM, Nathan Clemons wrote: > Or what you might want to do is to create a specific common directory > for code that should be shared, and per-environment directories which > contain code that should not be shared. If you find that something > should no longer be common, you then mov

[Puppet Users] ANNOUNCE: Facter 1.6.0rc1 -- License Change Included

2011-06-16 Thread Michael Stahnke
Facter 1.6.0rc1 is a feature release containing fixes, updates and refactoring. This release is available for download at: http://puppetlabs.com/downloads/facter/facter-1.6.0rc1.tar.gz See the Verifying Puppet Download section at: http://projects.puppetlabs.com/projects/puppet/wiki/Downloading

Re: [Puppet Users] Problem with usage of arrays

2011-06-16 Thread Ken Barber
What version of puppet are you using? kbarber:~ ken$ puppet --version 2.6.8 kbarber:~ ken$ puppet -e '$callapidata = [ 'wert1','wert2'] notice $callapidata[1]' notice: Scope(Class[main]): wert2 notice: Finished catalog run in 0.01 seconds kbarber:~ ken$ ken. On Thu, Jun 16, 2011 at 10:36 AM, Rob

Re: [Puppet Users] functions and environments

2011-06-16 Thread Nathan Clemons
Or what you might want to do is to create a specific common directory for code that should be shared, and per-environment directories which contain code that should not be shared. If you find that something should no longer be common, you then move it into the per-env directories as appropriate. -

Re: [Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-16 Thread Peter Bukowinski
It sounds like you haven't set up the puppet fileserver yet. Choose a directory that will hold files you want to copy to clients. I use /opt/files, so that's what is in my example. Create fileserver.conf in the same directory as puppet.conf and add these lines: [files] path /opt/files allow *

Re: [Puppet Users] functions and environments

2011-06-16 Thread Aaron Grewell
If you want your environments to never be able to affect one another then your module paths should not contain any common directories. On Thu, Jun 16, 2011 at 12:33 PM, Gabriel Filion wrote: > I got further into the problem thanks to your help.. but there's > something else now. > > On 11-06-15

Re: [Puppet Users] functions and environments

2011-06-16 Thread Gabriel Filion
I got further into the problem thanks to your help.. but there's something else now. On 11-06-15 12:36 PM, Nigel Kersten wrote: > > Functions get executed master side, so even though they get > delivered to > > the node, they need to be accessible on the master. > > oh, ok.. so I'

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
Indeed, i was using the supplied RPMs. The ones I built seem to be doing something, tho I need to get RabbitMQ running first before I can test it. This error came up in the RPM build: lib/mcollective/log.rb:83:79: Skipping require of dynamic string: "mcollective/logger/#{logger_type.downcase}_l

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
I verified that this is not getting confused with /usr/bin/ruby, which I removed also as a part of that test and removed/reinstalled mcollective. A "gem" would fit within the ruby paradigm. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread R.I.Pienaar
- Original Message - > Alright, so when I install it this way, I still get errors, which > indicates the installation may not be correct. Here's a log: are these RPMs you built like I said you should build them yesterday? I dont think so. > signature: NOKEY, key ID 4bd6ec30 -- You

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
Alright, so when I install it this way, I still get errors, which indicates the installation may not be correct. Here's a log: # rpm -ihv --nodeps *.rpm warning: mcollective-1.2.0-5.el5.noarch.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 4bd6ec30 Preparing... ##

[Puppet Users] Puppet recipe to copy and execute a shell file

2011-06-16 Thread annierana
Hi all, I am new to puppet. I need a sample recipe to write/copy a shell file on puppet client. The shell file exists on puppet server. Once the file is written, I also want to execute it. I have tried using file resource with ensure command to copy at /etc but permission was denied and moreover wi

[Puppet Users] sshd service enable on Ubuntu

2011-06-16 Thread Cashdollar, Matthew
Hello, Could someone tell me how to use 'enable' on Ubuntu? I am not too familiar with this OS, as I usually use CentOS. I am using Puppet 2.6.8. The problem is that every time I try to use enable it causes the node to appear as "yellow" on the puppet-dashboard: notice enable changed 'false' t

Re: [Puppet Users] puppet CA expired

2011-06-16 Thread Jeff McCune
On Thu, Jun 16, 2011 at 11:12 AM, Nathan Clemons wrote: > Thanks. I think having to go out across the board once every 5 years is > quite acceptable, although advance warning from the master that it's going > to happen would definitely be a good thing. > > Jean: Kudos to running Puppet for 5 years

Re: [Puppet Users] puppet CA expired

2011-06-16 Thread Nathan Clemons
Thanks. I think having to go out across the board once every 5 years is quite acceptable, although advance warning from the master that it's going to happen would definitely be a good thing. Jean: Kudos to running Puppet for 5 years! :) -- Nathan Clemons http://www.livemocha.com The worlds larges

Re: [Puppet Users] puppet CA expired

2011-06-16 Thread Jacob Helwig
5 years, IIRC. -- Jacob Helwig On Thu, 16 Jun 2011 11:03:49 -0700, Nathan Clemons wrote: > > What's the length of time on the CA cert? > > On Thu, Jun 16, 2011 at 10:40 AM, Jacob Helwig wrote: > > > On Tue, 14 Jun 2011 17:01:20 +0200, j...@squirk.org wrote: > > > > > > hi, > > > > > > my p

Re: [Puppet Users] puppet CA expired

2011-06-16 Thread Nathan Clemons
What's the length of time on the CA cert? -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Thu, Jun 16, 2011 at 10:40 AM, Jacob Helwig wrote: > On Tue, 14 Jun 2011 17:01:20 +0200, j...@squirk.org wrote: > > > > hi, > > > > my puppet CA expi

Re: [Puppet Users] Problem with usage of arrays

2011-06-16 Thread Gabriel Filion
Talking a bit through my hat here.. but: On 11-06-16 05:36 AM, Roband wrote: > i can't use array in puppet. Here is my codesnipplet: > > $callapidata = [ 'wert1','wert2'] > notice $callapidata[1] try something like the following instead of the second line: notice { $callapidata[1]: } -- Gabri

Re: [Puppet Users] puppet CA expired

2011-06-16 Thread Jacob Helwig
On Tue, 14 Jun 2011 17:01:20 +0200, j...@squirk.org wrote: > > hi, > > my puppet CA expired. Anyone knows how to solve the problem and extend > the validity of the CA ? I mean without recreating one and going on each > node to change the certs (that is what puppet is made to prevent, going > to

Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread R.I.Pienaar
- Original Message - > Here's the output from the mcollective rpm install: > > # rpm -ihv --nodeps *.rpm > > Preparing... > ### [100%] >1:mcollective-common > ### [ 33%] >2:mcollective >

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
Here's the output from the mcollective rpm install: # rpm -ihv --nodeps *.rpm Preparing... ### [100%] 1:mcollective-common ### [ 33%] 2:mcollective ### [ 67%] 3:mcollec

Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread R.I.Pienaar
- Original Message - > Point taken. > > Back to the RPM issue. For those of us that do not use a standard > system-provided ruby installation, such as Enterprise Ruby, how can > we > mitigate the installation so that it works? > > As I mentioned earlier, I tried this with --nodeps and

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
Point taken. Back to the RPM issue. For those of us that do not use a standard system-provided ruby installation, such as Enterprise Ruby, how can we mitigate the installation so that it works? As I mentioned earlier, I tried this with --nodeps and the ruby script could not "require" the mcolle

Re: [Puppet Users] is ruby code allowed in puppet manifest?

2011-06-16 Thread Aaron Grewell
You have the choice of either a Puppet DSL manifest or a Ruby DSL manifest. You cannot mix the two within a single file. On Thu, Jun 16, 2011 at 8:56 AM, Guy Matz wrote: > Hi, > I'm trying to get the following to work: > > class cluster { > > $cluster_name = hostname.slice(0..-2) > . > . > } #

Re: [Puppet Users] is ruby code allowed in puppet manifest?

2011-06-16 Thread Jacob Helwig
On Thu, 16 Jun 2011 11:56:59 -0400, Guy Matz wrote: > > Hi, > I'm trying to get the following to work: > > class cluster { > > $cluster_name = hostname.slice(0..-2) > . > . > } # class > > hoping that if I have a server called appfarmserver1 (obtained from facter, > can I use a fact like this

[Puppet Users] is ruby code allowed in puppet manifest?

2011-06-16 Thread Guy Matz
Hi, I'm trying to get the following to work: class cluster { $cluster_name = hostname.slice(0..-2) . . } # class hoping that if I have a server called appfarmserver1 (obtained from facter, can I use a fact like this!?), cluster_name will get set to appfarmserver . . . puppet --parseonly init.

[Puppet Users] special handling for template file with XML?

2011-06-16 Thread Guy Matz
hi, i get the following error when trying to use a template with XML in it: Could not parse for environment production: Syntax error at '<' So I tried using the HTML & "codes" for special chars but now get: "Could not parse for environment production: Could not match

[Puppet Users] Re: Problems with puppetlabs yum repo

2011-06-16 Thread grip
Hi, I've a similar problem when I try to make a local copy of the repository with mrepo from Dag Wiers. My conf file for mrepo use the name vmware41 for the repository and that's the content of the file : [vmware41] name = VMWare Tools $release release = 41 arch = i686 x86_64 vmware = http://packa

Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread R.I.Pienaar
- Original Message - > I think I presumed /usr/bin/env returned something. It turns out, it > just executes the ruby binary. So that part is working. > > I now need to sort out the installation issue, mentioned above. > Would it be feasible to have an install.rb that you could pass fla

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
I think I presumed /usr/bin/env returned something. It turns out, it just executes the ruby binary. So that part is working. I now need to sort out the installation issue, mentioned above. Would it be feasible to have an install.rb that you could pass flags to for: * common * server * client *

Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread R.I.Pienaar
- Original Message - > My PATH is set with the /opt/ruby/bin pointer in the front. When I > run /usr/bin/env on *any* of the many RHEL5 systems I have, it just > hangs. Some of these I didn't set up, some are just stock RHEL > installs. So I don't know whether this is a configuration

[Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread Forrie
My PATH is set with the /opt/ruby/bin pointer in the front. When I run /usr/bin/env on *any* of the many RHEL5 systems I have, it just hangs. Some of these I didn't set up, some are just stock RHEL installs. So I don't know whether this is a configuration problem or not. By install script, I m

[Puppet Users] OpenBSD default packages

2011-06-16 Thread Sidarta
Hello all, I'm new to this great tool. In our enviroment, we use different linux/unix flavors (CentOS/Ubuntu/ OpenBSD). Everything works fine, but in OpenBSD we have some issues. Some packages that are installed by the default installation on OpenBSD, like snmpd and ntpd, also need to be installed

[Puppet Users] Problems with puppetlabs yum repo

2011-06-16 Thread Pheran
Hi folks, I'm having a couple of problem with the puppetlabs base repo: First problem - puppet dashboard 1.1.1 is missing from the repo (latest there is 1.1.0). This is pretty straightforward. My second problem is weirder. I use the reposync utility (from the yum-utils RPM) to locally mirror yu

Re: [Puppet Users] puppet repository from puppetlabs

2011-06-16 Thread Craig White
I installed using gem instead of Lucid packages - not exactly for that reason (we are using ruby-enterprise and not Lucid ruby packages). Craig On Jun 15, 2011, at 8:56 PM, Asif Iqbal wrote: > Hi All, > > Is there a ubuntu repository managed by puppetlabs? I am using lucid > and latest puppet

[Puppet Users] Passing an array to a chained provider

2011-06-16 Thread Edward Savage
Afternoon all, I am looking to do the following using Puppet to simplify relationships for our AD class. I've stripped it down to the basic relation I'd like to work. $kerberos_packages = ["winbind", "krb5-config", "libpam-krb5", "portmap", "krb5-user", "samba-common"] $kerberos_dependencies = [

[Puppet Users] Problem with usage of arrays

2011-06-16 Thread Roband
Hi there, i can't use array in puppet. Here is my codesnipplet: $callapidata = [ 'wert1','wert2'] notice $callapidata[1] A puppetrun results in: Could not retrieve catalog from remote server: Error 400 on SERVER: can't convert String into Integer at /etc/puppet/myenv/modules/ uc4client/manifest

Re: [Puppet Users] Concat Module posted to Onyx Point Github.

2011-06-16 Thread Dan Carley
On 12 June 2011 20:21, Markus Falb wrote: > I also tried with 0.25.5 and noticed that your module does not work. > All autorequire stuff does not work. It seems like things like > > if catalog.resources.find_all { ... }.empty? > > is always true. I have no clue why. It's because "catalog.resour

Re: [Puppet Users] puppetd by cron using cached config , does it expire ?

2011-06-16 Thread Ohad Levy
On Thu, Jun 16, 2011 at 1:02 PM, j...@squirk.org wrote: > ** > hi, > > since my puppet CA expired the nodes cannot connect to the server because > of ssl issue. > 5 years? nice! :) Ohad > I have recreated a CA and removed/resigned all the certs i could find for > the node. However i just saw

[Puppet Users] Re: puppet dashboard performance issue

2011-06-16 Thread Vincent
no other solution ? Where this query is used in the code ? Can we disable the query ? On Apr 18, 12:49 am, Andrew Forgue wrote: > I also tried to look at this; since it was causing me issues as well.  I had > 800,000 rows or so in the reports table but I accidentally corrupted it > (kill -9) so

[Puppet Users] puppetd by cron using cached config , does it expire ?

2011-06-16 Thread j...@squirk.org
hi, since my puppet CA expired the nodes cannot connect to the server because of ssl issue. I have recreated a CA and removed/resigned all the certs i could find for the node. However i just saw that the node not having ssl connexion right are still running puppet using cached configuration. Ju

Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby

2011-06-16 Thread R.I.Pienaar
- Original Message - > > > not sure if there's a way to tell rpmbuild to do that, but you can > > just comment them out in the spec file. or when you install you can > > do rpm -ivh --nodeps to skip them. > > > > There's a ticket open to make this kind of thing easier - being > > able >