[Puppet Users] Re: 0.25.0-rc1 on ubuntu hardy (activerecord versions?)

2009-08-05 Thread silviu
ove ticket (this one http://projects.reductivelabs.com/attachments/585/0001-fix-libdir-for-rails-in-ubuntu.patch , I'm guessing the solution is similar although the patch is for 24.8). I hope you have a little bit of programming skills :) Silviu On Wed, 05 Aug 2009 12:32:34 -0400, seph wro

Re: [Puppet Users] Re: Cannot make autosign works

2010-05-15 Thread Silviu Paragina
ster with sudo -u [puppet] -i puppetmasterd. Where [puppet] is the username under which the puppet master should run. Or sudo -i puppetmasterd (to allow puppet to change the user, and to make sure there isn't any environment variable that could confuse puppet) Silviu -- You receive

[Puppet Users] Documentation link error

2010-05-17 Thread Silviu Paragina
I have found some broken links on http://docs.puppetlabs.com/guides/more_language.html#functions . Where should I post and/or fix the error? Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email

Re: [Puppet Users] Re: External Nodes

2010-05-17 Thread Silviu Paragina
ssion. Silviu -- 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...@googlegroups.com. For more opti

Re: [Puppet Users] ssh::auth unable to get working

2010-05-17 Thread Silviu Paragina
lize File[/home/user1] then i get a error about being unable to realize virtual resource. I'm not really sure why calling realize on anything is required. This http://docs.reductivelabs.com/guides/virtual_resources.html should explain it. Also read the Language guide and the advanced language

Re: [Puppet Users] Re: External Nodes

2010-05-17 Thread Silviu Paragina
://docs.puppetlabs.com/guides/external_nodes.html - you may try a do it yourself script/application But you should try foreman, puppet dashboard or extlookup (I think there are other, but I don't know them). Each has a different setup process to long to explaing here. (do a few googles ;) ) Silviu -

Re: [Puppet Users] Documentation link error

2010-05-18 Thread Silviu Paragina
Will do it this evening. :) Silviu On 17.05.2010 17:15, James Turnbull wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Silviu Paragina wrote: I have found some broken links on http://docs.puppetlabs.com/guides/more_language.html#functions . Where should I post and/or fix the error

Re: [Puppet Users] client specific configuration not working

2010-05-18 Thread Silviu Paragina
ame' at /etc/puppet/manifests/clients.pp:1 So what am I doing wrong here? Silviu -- 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 thi

Re: [Puppet Users] client specific configuration not working

2010-05-18 Thread Silviu Paragina
Odd, should of worked. Try this (at this point I'm guessing) Try removing the import "servername", it's optional in the latest versions of puppet. And make sure you have something along the line in nodes.pp node basenode { include servername } Silviu On 18.05

Re: [Puppet Users] Re: client specific configuration not working

2010-05-18 Thread Silviu Paragina
On 18.05.2010 22:47, Ken wrote: Yes I think your correct Silviu. You want 'include' not 'import'. To explain: Import is more like the C #include directive - it effectively just pulls the contents of the external file into the current one. Because you didn't have a fil

Re: [Puppet Users] getting started with puppet: overriding roles

2010-05-24 Thread Silviu Paragina
his used to set up ntp, but I think it might be possible with the help of the concat module. Silviu -- 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 fr

[Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-16 Thread Silviu Paragina
cts to a single module. So are there any better ideeas? Opinions? Is this code absolutely awful? Should I try using a common naming between the facts instead of this collection class? Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users&quo

Re: [Puppet Users] augeas and sendmail aliases

2010-06-16 Thread Silviu Paragina
Search in the list history for a thread named "augeas type and /etc/services" Silviu On 16.06.2010 20:38, Sukh Khehra wrote: I am trying to add an entry to /etc/aliases using this but am unable to keep the entry from being added on every puppet run. I couldn't figure out the

Re: [Puppet Users] augeas and sendmail aliases

2010-06-16 Thread Silviu Paragina
= [list of e-mail address] But Pienaar is right you should use the mailalias type if you can. Silviu On 16.06.2010 22:02, Sukh Khehra wrote: Yes, I read that thread and thought I was ensuring path uniqueness by inserting the string "01" in there but its not working for me. I exa

Re: [Puppet Users] augeas and sendmail aliases

2010-06-16 Thread Silviu Paragina
would believe everything went ok. In augtool it simply fails. If this works for you could you please post your version and/or other tricks. Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send em

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-17 Thread Silviu Paragina
On 17.06.2010 10:53, David Schmitt wrote: On 6/16/2010 8:27 PM, Silviu Paragina wrote: This is somewhat related to an older thread. The topic was how to install some perquisite packages for puppet, like augeas, lsb-release, cron to name just a few. Puppet is required to reinstall this packages

Re: [Puppet Users] Could not find class, code-blind

2010-06-17 Thread Silviu Paragina
e/rhn/RHNS-CA-CERT"], } file { "/usr/share/rhn/RHNS-CA-CERT-VISMA": ensure => present, source => "puppet:///rhn/RHNS-CA-CERT", } } Why wont this work, I know it must be an small error, but right now im

Re: [Puppet Users] Re: Could not find class, code-blind

2010-06-17 Thread Silviu Paragina
es when developing puppet code restarts are required for the puppetmasterd. (or at least they were required, and it became a best practice for me :">) Silviu On 17.06.2010 14:28, Tore wrote: Hm, I thought that puppet would search for filname X in module Y manifestdir when you included a

Re: [Puppet Users] Composed custom facts, request for opinions and ideas (somewhat related to setting up puppet)

2010-06-18 Thread Silviu Paragina
On 17.06.2010 14:30, David Schmitt wrote: On 6/17/2010 1:02 PM, Silviu Paragina wrote: On 17.06.2010 10:53, David Schmitt wrote: On 6/16/2010 8:27 PM, Silviu Paragina wrote: This is somewhat related to an older thread. The topic was how to install some perquisite packages for puppet, like

Re: [Puppet Users] How to pass a array to define?

2010-06-20 Thread Silviu Paragina
,'adm'] 10} 11 } but it always failed as follows: err: //usermgr::project1/Usermgr::Add_user[tester]/User[flex1]/groups: change from tester to tester,rootadm failed: Could not set groups on user[tester]: Execution of '/usr/sbin/usermod -G tester,rootadm tester' retu

Re: [Puppet Users] bringing puppet into production

2010-06-20 Thread Silviu Paragina
sing you're using lenny, since squeeze and sid are somewhat up to date. Anyhow if your system is not using packages it is probably easier without packages, but you should think if it would not be easier to create a local repository for your packages and install them via packages. Good

Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread Silviu Paragina
dful of gems is fine, but then everything else, we install ourselves. Actually at this point we've also abandoned the interpreter in favor or Ruby enterprise, but that's another thread :) Thanks for the feedback. Regards, Chris Silviu -- You received this message because you are subsc

[Puppet Users] Vcsrepo module use git with certificate

2010-06-24 Thread Silviu Paragina
which calls ssh -i ... $@ Silviu -- 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...@googlegroups.com

Re: [Puppet Users] More Provider Development?

2010-06-24 Thread Silviu Paragina
now of any other documentation, maybe someone else knows :-?? Good luck, ;) Silviu -- 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 gro

Re: [Puppet Users] Passenger barfs.

2010-06-24 Thread Silviu Paragina
Also check the rack version, and the requirements for your version of passenger. It smells like an incompatibility between the passenger version and the rack version. Aka what Gary said should be perfectly valid. Silviu On 25.06.2010 02:50, Douglas Garstang wrote: I have a freshly

Re: [Puppet Users] Vcsrepo module use git with certificate

2010-06-25 Thread Silviu Paragina
On 25.06.2010 01:56, Silviu Paragina wrote: Has anyone tried using this puppet forge module with a certificate? (puppetlabs/vcsrepo) Any ideas on how to specify via command line to git what certificate to use? The only way that I know to tell git to use a specific certificate is to use the

[Puppet Users] Puppet modules - where can I suggest something and/or submit a patch

2010-06-25 Thread Silviu Paragina
thing I have been able to find was the github user, namely http://github.com/puppet-modules. But I'm not sure if this is the right place since the meta-data files are missing from the apache module. Silviu -- You received this message because you are subscribed to the Google Groups "Pu

Re: [Puppet Users] Puppet modules - where can I suggest something and/or submit a patch

2010-06-25 Thread Silviu Paragina
On 25.06.2010 17:44, James Turnbull wrote: Silviu You can log tickets and submit patches for our modules at: http://projects.puppetlabs.com/projects/modules/issues/new for the moment and I'll merge them in. Regards James Turnbull Super. Thanks for the info :) Silviu -

Re: [Puppet Users] Ability to deploy a "skeleton" directory

2010-06-25 Thread Silviu Paragina
t it shouldn't touch that folder on that computer. Other than that no ideas, but again post a more concrete usage scenario. Also maybe puppet isn't the right tool for you since it works by ensuring some specific settings, not allowing local changes. Maybe you need to generalize you mani

Re: [Puppet Users] Puppet modules - where can I suggest something and/or submit a patch

2010-06-25 Thread Silviu Paragina
?). Silviu -- 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...@googlegroups.com. For more options, visit

Re: [Puppet Users] To External Nodes, or not to External Nodes

2010-06-25 Thread Silviu Paragina
al result). It would be wise to try this with foreman or puppet dashboard. I'm not sure if I've hit your question right. If I've misunderstood it sorry my bad. :"> :) Silviu Am I the only person in the universe who thinks this? The only alternative I can see is the

[Puppet Users] Is http://projects.puppetlabs.com haveing problems?

2010-06-26 Thread Silviu Paragina
I'm trying to upload some files to a ticket on the projects site. But for some reasons it spits errors at me... (I tried uploading the init.pp on http://projects.puppetlabs.com/issues/4084 ) Is this happening only to me? Silviu -- You received this message because you are subscribed t

[Puppet Users] Puppetlabs Apache module - problem/solution/question

2010-06-28 Thread Silviu Paragina
cket to add this new file for the apache module? 3. This seems trivial. Why wasn't it done for augeas/cron? Should I open a ticket for those, possibly adding the code? Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] Chicken or the egg

2010-06-28 Thread Silviu Paragina
resources which are tagged with this string (note that define should have a virtual hostname parameter) :-) Just my 2 cents, Silviu On 28.06.2010 17:12, David Darville wrote: I am trying to use Puppet to handle our Linux Vserver based virtual servers, including the actual installation of the

Re: [Puppet Users] Puppetlabs Apache module - problem/solution/question

2010-06-28 Thread Silviu Paragina
Looking from a practical viewpoint augeas usually gets installed with puppet automatically, and cron is probably already there. But on a new system to have apache already installed is improbable. Silviu -- You received this message because you are subscribed to the Google Groups "Puppet U

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Silviu Paragina
y recommend using this in a module that only involves your packages, and for the rest of packages use the cron solution, which is way way more cleaner than this. Hope it helps, :) Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Silviu Paragina
On 06.09.2010 21:03, Nigel Kersten wrote: On Mon, Sep 6, 2010 at 10:56 AM, Silviu Paragina wrote: As it was said earlier if you have a ensure => latest you should probably have (also) a cron job for updates. I think it's much more difficult to manage multiple schedules, and to d

Re: [Puppet Users] Re: Setup 2.6 + apache, passenger

2010-09-08 Thread Silviu Paragina
rd all the way. The config.ru file should be taken from the source distribution of puppet with your specific version. (if I remember right it was somewhere under ext) If there are special instructions for 2.6, I don't know them, all this is based on setting up 0.25.4 with passe

Re: [Puppet Users] puppetmaster HA

2010-09-10 Thread Silviu Paragina
Also you might be interested in putting a vote on this ticket ;) (DNS SRV support for puppet) http://projects.reductivelabs.com/issues/3669 Silviu On 10.09.2010 19:09, Sukh Khehra wrote: I recently lost the only puppetmaster for a datacenter. I ended up having to build a new one and then

Re: [Puppet Users] Puppet trying to start service before package is installed

2010-09-13 Thread Silviu Paragina
t; $operatingsystem ? { freebsd => 'zabbix_agentd', #debian => [""], #default => [""], }, require => Package['zabbix-agent'], ensure => running, enable => true, } } Readabil

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Silviu Paragina
opy/paste should be refactored to call that common piece of code instead of the programmer/admin doing a copy paste of that code. Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet

Re: [Puppet Users] Strange exec issue with tar

2010-09-14 Thread Silviu Paragina
user. Silviu On 14.09.2010 21:35, jerry wrote: I do have a really strange issue with exec a tar command with puppet 2.6.0. If I run it with puppetmasterd I get the following error message: (//my.domain.net//Stage[main]/Workerzone/Build::Install[top]/ Exec[extract-top]/returns) change from notrun

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Silviu Paragina
uld be ideal to do it, I'm not sure, I'm waiting for comments too. :) Silviu On 14.09.2010 23:55, Marc Zampetti wrote: Basically, I'm trying to build modules that implement best practices (the app-apache module), and then admins that need to build specific apache instances just cr

Re: [Puppet Users] Specifying version for shared packages

2010-09-15 Thread Silviu Paragina
ust installing one app per host, or not caring what version of a package is installed? Marc Hmm. Understood, have you thought of using extlookup, that might be best for your case. Silviu -- You received this message because you are subscribed to the Google Groups "Pup

Re: [Puppet Users] Specifying version for shared packages

2010-09-15 Thread Silviu Paragina
On 15.09.2010 18:52, Silviu Paragina wrote: Hmm. Understood, have you thought of using extlookup, that might be best for your case. Silviu To clarify, this might just be a brainfart, I'm still thinking about an elegant solution. :"> Silviu -- You received this message be

Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Silviu Paragina
an waiting for a reply on the list anyway. Silviu On 24.09.2010 23:32, Luc Suryo wrote: Hello simple question ... if 2 or more EXEC subcribes to a file and that file is changed would then all the EXECs be run ? or does it depend whatever the FILE notifies the EXEC? please bare in mind.

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Silviu Paragina
them. Silviu On 06.10.2010 12:00, Angelos Oikonomopoulos wrote: On 10/05/2010 06:58 PM, Trevor Vaughan wrote: You might want to try running the client with --evaltrace for additional information. Thanks. This didn't help much, as it's only printing out the information after the resource

Re: [Puppet Users] Puppet 2.7.0rc1 (Statler) available!

2011-04-14 Thread Silviu Paragina
A lot of new options, congrats for the work. :) Silviu On 14.04.2011 06:53, Nigel Kersten wrote: We're very excited to announce the first release candidate of a new feature release, Puppet 2.7.0rc1, known up until know by the code name "Statler". There’s a lot here to

Re: [Puppet Users] Sending an email if an action happens

2011-05-12 Thread Silviu Paragina
} or something like that. You almost gave yourself the answer. :) Check the refreshonly parameter for the exec type ;) But this seems more of a hack to me, so take it as you wish. Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

[Puppet Users] Re: 0.25.0-rc1 on ubuntu hardy (activerecord versions?)

2009-08-06 Thread Silviu Paragina
figured out that there was an inclusion problem not a version problem (that was my first impression). PS I'm also using hardy ;) Silviu seph wrote: > I'm not sure it's related. That bug looks to be about detecting > whether or not rails is installed. I'm running into a

[Puppet Users] Re: Key signing problem.

2009-08-12 Thread Silviu Paragina
I get the same error when running without sudo (or init scripts), and thow I recreate the certificate nothing happens. Silviu On Wed, 12 Aug 2009 01:03:02 -0700, Robin Lee Powell wrote: > This is me trying to get my puppetmaster to work also as a client. > I used to work, then I cleane

[Puppet Users] Re: managing ip addresses

2009-08-21 Thread Silviu Paragina
her OS, then maybe that definition can > serve as inspiration to write your own for your situation. > > Hope this is of some help. > > If you are using an debian based distro you may want to have a look at augeas and augeas resources. Before creating the rule play around with a

[Puppet Users] Re: exported resource question

2009-08-21 Thread Silviu Paragina
is) the files will get recreated at the specified interval, and will have a log of the specified time. Hope this isn't one of my brainfarts. Silviu Moty wrote: > 10x .. > > I plan to create manifests for various client/server services and it > will be nice to add that

[Puppet Users] Re: Running puppet on manifest modificattion

2009-08-24 Thread Silviu Paragina
=> root, notify => Service[nginx] } } Also do some requires for the package (ie make sure the package is installed before copying the file or checking if the service is running) Silviu sameer wrote: > Hi All, > > I am new to Puppet and recently switched from Cfengine.

[Puppet Users] Re: installing different versions of packages (APT)

2009-09-01 Thread Silviu Paragina
You may use a syntax like this package { "resource-name-aka-in-puppet-name": name =>"debian-package-name", .. } Second check the naming of packages beacause your package probably has a different name than the debian one. Silviu ELTigre wrote: >

[Puppet Users] Re: troubleshooting puppet on Ubuntu

2009-09-14 Thread Silviu Paragina
7;. Long story short because of the '..' in the above file, it seems that the file gets included twice. The easy workardound is to replace the above with > require 'xmlsimple.rb' This made things right for me (Ubuntu 9.04), but I'm not sure if it can break other ruby s

[Puppet Users] Re: Puppet status reporting

2009-09-14 Thread Silviu Paragina
Is this the before called GNI? Silviu Ohad Levy wrote: > Hi, > > For future references, the primary website can be found at > http://theforeman.org > > Cheers, > Ohad > > On Mon, Sep 14, 2009 at 6:48 AM, James Turnbull > mailto:ja...@lovedthanlost.net>> wr

[Puppet Users] Re: What does puppetrun do?

2009-09-14 Thread Silviu Paragina
Never forget (this might be the case) that if the new manifests don't compile the old ones are sometimes sent. I always scratch my head because of that. Silviu grandpa wrote: > I think I might have misunderstood what puppetrun does. > > I've interpreted it as puppetrun tr

[Puppet Users] Re: snmpd v3 class help - need to stop service before copying file and then restart

2009-09-14 Thread Silviu Paragina
t, mode=> 0600, source => "puppet:///snmpd/net-snmpd.conf", require => [Package[net-snmp],File["/etc/snmp/snmpd.conf"]], notify => Service[snmpd], } service { snmpd: enable => true, hasrestart =>

[Puppet Users] Re: is it possible to pass a node variable to file source in a class?

2009-09-15 Thread Silviu Paragina
I thinks you are in the case explained here http://reductivelabs.com/trac/puppet/wiki/CommonMisconceptions Silviu Mark Christian wrote: > say I have a couple nodes: > > node 'uk-host' inherits basenode { > $site = "UK" > } > node 'ap-host' i

[Puppet Users] Re: Preventing concurrent puppetd updates

2009-09-15 Thread Silviu Paragina
The error message gives you the solution, check for the existence of /var/lib/puppet/state/puppetdlock. My solution would be invoke-rc.d puppet stop #or /etc/init.d/puppet or whatever while [ -f /var/lib/puppet/state/puppetdlock ] do sleep 1 done #do your stuff Silviu On Tue, 15 Sep 2009

[Puppet Users] Re: Preventing concurrent puppetd updates

2009-09-15 Thread Silviu Paragina
Now I realize that this is not so portable :-?? you could try creating a simple pp file and run it with puppet (not puppetd) which would essentially do the same thing. Silviu On Wed, 16 Sep 2009 00:02:07 +0300, Silviu Paragina wrote: > The error message gives you the solution, check for

[Puppet Users] Re: SLES 10 Install trouble

2009-09-19 Thread Silviu Paragina
should install ruby as a package or get the source package for ruby, modify it for your needs and build your own ruby package. Silviu Hariharan Gopalan wrote: > I am having a hard time installing puppet on an SLES 10 system. I > managed to install ruby, but the x86_64 rpm of puppe

[Puppet Users] Re: Puppetrun does not work with certificate error.

2009-09-25 Thread Silviu Paragina
> > Nobuchika Tanaka > > > Never encountered this error before. Try cleaning up the /var/puppet/ssl directory and make sure that the puppetmaster and puppet client have different names. No other ideas. Silviu --~--~-~--~~~---~--~~ You received t

[Puppet Users] Re: authentication issue with passenger

2009-09-25 Thread Silviu Paragina
t; there are a number of related errors all seemingly stemming from this >> authentication error. >> >> Any ideas? Any more info that could help? >> >> --- >> Thanks, >> >> Allan Marcus >> 505-667-5666 >> >> >> >> >>

[Puppet Users] Puppet with passenger and apache, upgrade to 0.25 problems/suggestions

2009-11-27 Thread Silviu Paragina
understood passenger 2.2.5 and above should work with or without this, why is it neccesary? Or it isn't and I misconfigured something else? Should the source code example be changed? Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users&quo

Re: [Puppet Users] Module Execution Order

2009-11-27 Thread Silviu Paragina
group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. &g

Re: [Puppet Users] Re: Firewall between master and client?

2009-11-27 Thread Silviu Paragina
oogle.com/group/puppet-users?hl=. Also take into account that the connection is already ssl encrypted (https protocol actually), and the connection is already pretty secure as it is (clients are authenticated by their certificate). You may consider changing the puppet default ports to 80 to bypass f

Re: [Puppet Users] Puppet custom functions and user permissions

2009-11-27 Thread Silviu Paragina
Try the dev group ;) You have far better chances getting an answer from there. Silviu On 25.11.2009 11:35, symfrog wrote: > Puppet custom functions and user permissions > > I am busy writing a custom function to automatically add OSSEC agents > to a OSSEC server after

Re: [Puppet Users] Re: Puppet 0.25 Client won't start "Retrieved certificate does not match private key"

2009-11-27 Thread Silviu Paragina
or this is the way a client retrieves its signed certificate from the server.. Silviu PS sorry for replying to such an old post, but since it's a bug I think it's excusable... On 14.10.2009 23:47, James Turnbull wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

Re: [Puppet Users] Re: how do i override/redefine a resource that is declared in another class?

2009-11-27 Thread Silviu Paragina
;> } >> >> class b inherits a { >>File['/tmp/b']{ensure => absent } >> >> } >> >> include a >> include b >> $ puppet foo.pp >> notice: //a/File[/tmp/a]/ensure: created >> $ >> >> you can include the inh

[Puppet Users] Array [int] accessors?

2009-12-02 Thread Silviu Paragina
Are there any such things? For example $ip_list_arr=split(ip_list,",") $ip_external=*$ip_list_arr[0]* Or the only way to do it, is via custom functions? I think I read something like this before, but can't remember where or if it was with a custom function or not. Silviu -

Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Silviu Paragina
On 02.12.2009 17:39, Thomas Bellman wrote: > Silviu Paragina wrote: > > >> Are there any such things? For example >> $ip_list_arr=split(ip_list,",") >> $ip_external=*$ip_list_arr[0]* >> >> Or the only way to do it, is via custom functions?

Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Silviu Paragina
seems a bit too complicated just for this. Cheers and thanks again for the support, :) Silviu > -- > > 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...@goo

Re: [Puppet Users] Array [int] accessors?

2009-12-03 Thread Silviu Paragina
On 03.12.2009 19:07, Scott Smith wrote: > Silviu Paragina wrote: > >> (ip_list is a custom fact that lists the machines ip addresses sorted, >> except 127.0.0.1) >> >> > Could you post more of the manifest? You might be able to use the > interfa

Re: [Puppet Users] Iterating over array to create users and files

2009-12-03 Thread Silviu Paragina
late. > > Are either of these possible? Can anyone suggest a better way? > > I know for the file I can iterate with the template and create one > large conf file, but I'd rather keep the conf files separate based on > user. > > Thanks > > Chris > > --

Re: [Puppet Users] cert problem

2009-12-04 Thread Silviu Paragina
Actually you only need to rm puppet/ssl/certs/client_name.pem It's a bug in the 25 client that caches the signed certificate received from the server, even if it doesn't match it's own key. Silviu On 04.12.2009 18:45, Allan Marcus wrote: > ug. I figured it out. > > Need

[Puppet Users] Foreman reports - no pretty pictures :D

2009-12-04 Thread Silviu Paragina
d? Or the screenshot is from trunk? Sidenote: I have also modified the metrics.rb to use the defualt rrd ruby bindings found in ubuntu 9.04. They seem to output the right stuff but :-?? this might be a cause :-?? Silviu -- You received this message because you are subscribed to the Google G

Re: [Puppet Users] Foreman reports - no pretty pictures :D

2009-12-04 Thread Silviu Paragina
On 04.12.2009 20:14, Silviu Paragina wrote: > I'm playing around with foreman for the moment. I can't seem to figure > out how to make the dashboard look like in this screenshot > http://theforeman.org/wiki/foreman/Screenshots#Dashboard > > In order for those statistics to

Re: [Puppet Users] removing packages with interdependencies

2009-12-04 Thread Silviu Paragina
Try purged instead of absent. :) Silviu On 04.12.2009 18:15, asparks wrote: > I'm trying to write a recipe that will remove ppp from systems. I've > tried this in various ways (listing only ppp, listing ppp and > dependent packages (like NetworkManager and NetworkManage

Re: [Puppet Users] Foreman reports - no pretty pictures :D

2009-12-05 Thread Silviu Paragina
figured every time I add a new host (or change the os/environment) I need to run rake puppet:migrate:populate_hosts RAILS_ENV=production is that right? Or I have misconfigured something. Thanks for the answer :) Silviu > > cheers, > Ohad > > > On Sat, Dec 5, 2009 at 2:

Re: [Puppet Users] How to add Ubuntu PPA repository (with signing key)?

2009-12-07 Thread Silviu Paragina
le{ "${repokey}": ..} exec { "apt-key add ${repokey}": require=> File[$repokey], unless=> "apt-key list | grep $repokeyid" } And of course the best way would be to do another provider like yumrepo in ruby :-) Silviu On 07.12.2009 17:54, Ron wro

[Puppet Users] Stop(or restart and/or reload facts/providers) execution on some conditions

2009-12-07 Thread Silviu Paragina
ntu system and as a result the system is detected as debian, which can seriously damage the system. Silviu -- 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 unsubsc

Re: [Puppet Users] Stop(or restart and/or reload facts/providers) execution on some conditions

2009-12-07 Thread Silviu Paragina
fail or restart just to be sure I'm not actually on a Ubuntu system Another example would be augeas, where, even if in a run augeas would be installed, puppet would fail because of missing augeas provider. Silviu PS sorry for spamming the list :"> On 07.12.2009 21:31, Silviu P

Re: [Puppet Users] Stop(or restart and/or reload facts/providers) execution on some conditions

2009-12-08 Thread Silviu Paragina
On 08.12.2009 12:17, David Schmitt wrote: > On 07.12.2009 21:01, Silviu Paragina wrote: > >> I forgot to add, I need some resources applied in this case so fail >> won't be enough because it fails before applying any resources. >> >> example: in the case whe

Re: [Puppet Users] How to add Ubuntu PPA repository (with signing key)?

2009-12-08 Thread Silviu Paragina
On 08.12.2009 19:37, Ron wrote: > Thank you Silviu, > > Very simple and straight forward. I followed a previous thread that > discussed the sources.list.d directory, but didn't quite connect the > dots. With your advise, I looked at a few of my systems and found that > Go

Re: [Puppet Users] Puppet Dashboard 0.0.1 Release Announcement

2009-12-08 Thread Silviu Paragina
I am also available via the puppet-users list and in #puppet on > irc.freenode.net as ReinH for any questions. > > It may sound stupid but are there any screen shots to see (at least) some of the functionality currently exposed by the dashboard? Silviu -- You received this mes

Re: [Puppet Users] Debian preseed values for puppet deb package

2009-12-08 Thread Silviu Paragina
kage I counter recommend anything. If you need to automate a puppet master install it would be a good idea to do it via some manifest and/or with the help of another puppet master. Silviu On 08.12.2009 16:57, Joe McDonagh wrote: > Ohad Levy wrote: > >> Or Foreman - it generates

Re: [Puppet Users] Timestamps need to be in sync on all puppetmasters?

2009-12-08 Thread Silviu Paragina
The log you posted looks like a bad date/time timezone conversion, are all the clients/puppetmasters on the same timezone? Notice that the dates are actually identical but one is in utc the other US eastern (I think). Silviu On 08.12.2009 22:43, Digant C Kasundra wrote: > This is similar

Re: [Puppet Users] Timestamps need to be in sync on all puppetmasters?

2009-12-08 Thread Silviu Paragina
Try this ruby -e 'puts Time.at(0)' In case ruby treats timezones different from how it should (how I think it should actually) Silviu On 09.12.2009 03:21, Tony G. wrote: > Hi, > > They are supposed to have GMT: > puppetmaster: > $ date > Wed Dec 9 00:59:02 *GMT* 2

Re: [Puppet Users] Timestamps need to be in sync on all puppetmasters?

2009-12-08 Thread Silviu Paragina
e how much it can help, since there are a lot of other components that could change the standard behavior depending on setup (apache/nginx/passenger/mongrel etc) Silviu On 09.12.2009 03:53, Ohad Levy wrote: > if you want utc, you should use: > > ruby -e 'puts Time.at(0).utc' &g

Re: [Puppet Users] Foreman and RRD

2009-12-09 Thread Silviu Paragina
/hostnameForRRDReports/#{$settings[:rrd_report_url]}/#{host.name}"; -%> but this is an ugly ugly ugly hack and I suggest using the latest git version. Silviu > > Thanks in advance. > LOhit > > -- > > You received this message because you are subscribed to the

Re: [Puppet Users] How to override / redefine outside child class (usecase and example detailled)

2009-12-09 Thread Silviu Paragina
uot; } } Check the language tutorial for overriding. Note that is a big "S" not a small "s". Or you may do it the other way around. (Include stripdown into mysql::server. (this probably the solution you want) Or define a third skeleton class which starts with same bare definit

Re: [Puppet Users] Stop(or restart and/or reload facts/providers) execution on some conditions

2009-12-09 Thread Silviu Paragina
Ubuntu sytem where lsb-release isn't installed as such the system is detected as debian. I don't want any debian specific stuff going on a ubuntu system. Thank you for your answers, Silviu -- You received this message because you are subscribed to the Google Groups &q

Re: [Puppet Users] Re: How to override / redefine outside child class (usecase and example detailled)

2009-12-09 Thread Silviu Paragina
ow if you include both s_test1::stripdown and s_test::server server will take precedence. (actually it may start as s_test1::stripdown and then "add to it" s_test1::server, but the behavior is respected no matter what the order of includes). Silviu -- You received this message beca

Re: [Puppet Users] AIX Puppet clients is not sending request for cert

2009-12-14 Thread Silviu Paragina
ee the request from the client at all. > > Do you have any ideas? > Did you do puppetd --test on the client? What did it say? Silviu > Thank you. > > -- > > You received this message because you are subscribed to the Google Groups > "Puppet Users&q

Re: [Puppet Users] Installing Specific RPM Version

2009-12-14 Thread Silviu Paragina
27;t help you beyond this point if this is the case. For 2 well a lot of things can happen so post the debug output from the client. :-) Silviu > My manifest at line 31 has: > > package { > "tf-elements-core-${name}": > ensure => "14.

Re: [Puppet Users] Installing Specific RPM Version

2009-12-15 Thread Silviu Paragina
Douglas Garstang wrote: > Silviu, > > My system is aware of both the -1 and -2 releases in the repo. > > This is before running puppet... > > papp1 ~:# yum list tf-elements-core-tfel0-14.3-1.tf > [ stuff removed ] > Available Packages >

Re: [Puppet Users] Re: Provider Augeas not functional on Sles10?

2009-12-15 Thread Silviu Paragina
need rake to compile this Rakefile? > > You may try (as it's easier) with the gem. gem install ruby-augeas-0.x.x.gem You will also need libaugeas-dev Silviu -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to thi

Re: [Puppet Users] "no certificate found and waitforcert is disabled" on all new puppet clients

2009-12-15 Thread Silviu Paragina
you should try to clean the ca certificate (in case the ca certificate changed), the certificate request and as a last resort the private key. All this is done by the above rm. (not sure if you knew all that so that's why I'm mentioning). Silviu paul matthews wrote: >

  1   2   >