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

2011-05-12 Thread Silviu Paragina
On 11.05.2011 18:06, Calum wrote: On 11 May 2011 15:49, Ohad Levy wrote: You can use tagmail report, or use something like foreman to do it for you. Ohad Thanks - I'll look into those. I was more meaning something like: file { "/etc/ntp.conf": owner => root,

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 read, and we’re covering

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Silviu Paragina
Try setting the checksum to undef (from what I understood this was implemented in 2.6). How many files are in those folders? What order of magnitude? tens of thousands, millions, under 1000? Sidenote: The requires for parent folders are done automagically, you don't need to specify them. Si

Re: [Puppet Users] exec and subsribe

2010-09-24 Thread Silviu Paragina
notify and subscribe are somewhat the same thing, but specified in different parts of the dependency. The file resource should notify both execs and/or services, if it doesn't it should be considered a bug and reported. ;) You should try it just to be sure, it's usually faster than waiting for

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] Specifying version for shared packages

2010-09-15 Thread Silviu Paragina
On 15.09.2010 16:44, Marc Zampetti wrote: So does this mean that I need a new intermediate class for every possible version of the package? Just relying on using the "latest" is REALLY BAD in production. It means that I can NEVER know for sure that when I re-build a host that it is in the EXA

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Silviu Paragina
to use the same version of the package, don't conflict with files or ports, etc. Also, I think I forgot to mention that I am using puppet 0.25.5. Marc On 9/14/10 4:39 PM, Silviu Paragina wrote: On 14.09.2010 23:12, Marc Zampetti wrote: I've been banging my head on this all day, an

Re: [Puppet Users] Strange exec issue with tar

2010-09-14 Thread Silviu Paragina
Check you environment path variable. Tar might not find something, most probably, the gzip executable (not 100% sure on this part). Usually if something doesn't work in specific cases, but it works in you bash console, you can make a safe bet on environment variables and/or running user. Si

Re: [Puppet Users] Specifying version for shared packages

2010-09-14 Thread Silviu Paragina
On 14.09.2010 23:12, Marc Zampetti wrote: I've been banging my head on this all day, and I cannot seem to figure out how to do it. I have a package for Apache HTTPd. I want to be able to specify the exact version of the package to use for a particular installation. And it is also possible t

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

2010-09-13 Thread Silviu Paragina
On 13.09.2010 16:20, FreddieB wrote: Hi, This one is driving me crazy. Problem is Puppet try to start some services (in this case zabbix-agent) before it is installed. My puppet-master is Debian 5.05 with Puppet 2.6.0 (from squeeze). Target system is FreeBSD 8.1 with Puppet 2.6.1 (from packages

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 h

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

2010-09-08 Thread Silviu Paragina
For 0.25.4 on Debian the puppetmaster package has /usr/share/doc/puppetmaster/examples/apache2.conf and /usr/share/puppet/rack/puppetmasterd included. /usr/share/puppet/rack/puppetmasterd should be the root in this case. In case you don't have these the rhel instructions for creating the str

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] Puppet + APT, I am lost...

2010-09-06 Thread Silviu Paragina
On 01.09.2010 01:35, Martijn Grendelman wrote: Mathias Gug schreef: I am not sure how I said I want to do an update before /every/ package install. Once at the start of a Puppet-run, /IF/ one or more packages need to be installed, would suffice. You may run into a chicken-egg problem. Packages

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

2010-06-28 Thread Silviu Paragina
On 28.06.2010 21:16, Peter Meier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 1. Is this a good ideea? (if not why not?) From other discussions, I know that this is how puppet should behave in general about type providers. 2. Should I open a ticket to add this new file for the apach

Re: [Puppet Users] Chicken or the egg

2010-06-28 Thread Silviu Paragina
Imho you should separate the resources (class/defines) used by the physical machine from those of the virtual machine. Example: You should have a define for the physical machines, that creates the virtual machine(s). They would probably look like your define my_vserver, without the property ph

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

2010-06-28 Thread Silviu Paragina
I'm trying out the apache module from puppet labs. Note the a2mod type in it. Now I have uncovered the classical provider problem with it. If you require some apache modules enabled and you don't have apache installed you get the classical no provider for a2mod (in this particular case) and pup

[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 to the Go

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

2010-06-25 Thread Silviu Paragina
On 25.06.2010 19:42, Douglas Garstang wrote: I had started converting my node manifests to external nodes (in yaml format), to make them machine readable/writable, so that we could write scripts to parse them. However, I really can't get it right in my head that by doing that I am forced to pass

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: You can log tickets and submit patches for our modules at: http://projects.puppetlabs.com/projects/modules/issues/new Forgot to ask the patches should be against the current module version or against a git repository somewhere (where if so?). S

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

2010-06-25 Thread Silviu Paragina
On 25.06.2010 12:00, Jean-Baptiste Barth wrote: Hi, I'd like to be able to deploy a skeleton directory through puppet, i.e. puppet deploys it only if it does not exist. I tried this : file {"/path/to/this/directory": source => "puppet:///files/path/to/the/skeleton", ensure => directory,

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 -- You received

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

2010-06-25 Thread Silviu Paragina
Right now I'm trying to import the puppet labs apache module in my configuration structure. But inside it I have found something like: $vdir = $operatingsystem? { 'ubuntu' => '/etc/apache2/sites-enabled/', default => '/etc/httpd/conf.d', } The ubuntu part should also apply to debian.

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

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 installed

Re: [Puppet Users] More Provider Development?

2010-06-24 Thread Silviu Paragina
On 23.06.2010 17:19, zu...@puzzle.ch wrote: Hello I use puppet for a while now and try to configure as much as possible with puppet (some old configurations are still not 'puppetized'). The more we configure with puppet the more complex the manifests get. They are filled with functionality and c

[Puppet Users] Vcsrepo module use git with certificate

2010-06-24 Thread Silviu Paragina
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 GIT_SSH env variable and specify a script which

Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread Silviu Paragina
On 21.06.2010 09:26, christopher floess wrote: 2. I never really saw where in the documentation puppet.conf file is addressed. I’ve seen that it’s pretty well documented, but again, did I miss something, especially considering that I have gone through the online manifest-writing/language doc

Re: [Puppet Users] bringing puppet into production

2010-06-20 Thread Silviu Paragina
On 20.06.2010 12:38, Christopher wrote: Hi everyone, I’ve been working on getting puppet set up for our systems for the past week, and all has gone well in learning about writing manifests, but now that I’m ready to set it into production, I realize that it’s still unclear to me exactly how that

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

2010-06-20 Thread Silviu Paragina
Not sure how to do it, but what I would try: (see inline) On 18.06.2010 13:46, daniel wrote: Hey, guys! These days I'm keep on setting up my puppet automation environment, but I got a problem that made me confused. I have a define to add users ,which as follows : define usermgr::add_user ($

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] Re: Could not find class, code-blind

2010-06-17 Thread Silviu Paragina
class like include "Y::X", guess I'm wrong there. On the other hand, adding the import statement in the beginning of rhnsd/manifests/init.pp yeilds the same error. On 17 Jun, 13:10, Silviu Paragina wrote: On 17.06.2010 13:31, Tore wrote: I'm troubled with a node

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

2010-06-17 Thread Silviu Paragina
On 17.06.2010 13:31, Tore wrote: I'm troubled with a node-definition not able to resolve a class: Could not find class rhnsd::common at /etc/puppet/manifests/nodes.pp: 8 on node X Content of manifest/site.pp: import "nodes.pp" [...] The layout of modules/rhnsd/ is: |-- files | `-- up2date-r

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] augeas and sendmail aliases

2010-06-16 Thread Silviu Paragina
On 16.06.2010 23:45, Rob McBroom wrote: On Jun 16, 2010, at 3:02 PM, 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 examined the tree using augtool and as expected did not see a subtre

Re: [Puppet Users] augeas and sendmail aliases

2010-06-16 Thread Silviu Paragina
mined the tree using augtool and as expected did not see a subtree numbered at "01" so thought I should be be able to do this. Any other suggestions? -----Original Message- From: Silviu Paragina [mailto:sil...@paragina.ro] Sent: Wednesday, June 16, 2010 11:31 AM To: puppet-users@googlegr

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 proper "onlyif" a

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

2010-06-16 Thread Silviu Paragina
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 if they are accidentally uninstalled. Because of the nature of this packages some puppe

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

2010-05-24 Thread Silviu Paragina
On 22.05.2010 02:32, andreash wrote: hi there, i'm not sure as to how to call the subject of this post, as i'm totally new to puppet -- so please forgive me if this is misleading ... for my servers, i'm planning to do something like this (pseudo-code): class (?) base-config: include ntp::

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 file 'servername.pp' you got a

Re: [Puppet Users] client specific configuration not working

2010-05-18 Thread Silviu Paragina
.2010 12:58, Chantal Rosmuller wrote: Hi, I changed puppet.conf and added: modulepath=/etc/puppet/modules:/etc/puppet/clients and restarted puppet unfortunately the same error Op dinsdag 18 mei 2010 11:36:54 schreef Silviu Paragina: On 18.05.2010 08:59, Chantal Rosmuller wrote: in t

Re: [Puppet Users] client specific configuration not working

2010-05-18 Thread Silviu Paragina
On 18.05.2010 08:59, Chantal Rosmuller wrote: in the clients directory there's a directory "servername" with subdirectories manifests and files here's my clients/servername/manifests/init.pp: have you changed the puppet.conf so that it can use the modules from the new location? Puppet does n

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] Re: External Nodes

2010-05-17 Thread Silviu Paragina
On 15.05.2010 00:30, Baker, Luke Jefferson wrote: Speaking of external nodes.. Any decent tutorials out there for someone that has no idea where to start? ;) External nodes are a way of looking up classes and vars to be applied to a node via an external application. http://docs.puppetlabs.c

Re: [Puppet Users] Re: External Nodes

2010-05-17 Thread Silviu Paragina
On 15.05.2010 00:30, Baker, Luke Jefferson wrote: Speaking of external nodes.. Any decent tutorials out there for someone that has no idea where to start? ;) To my last e-mail. Correction extlookup does not do external node lookup. :) It's a puppet function sorry about the confussion.

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

2010-05-17 Thread Silviu Paragina
On 15.05.2010 10:18, Michael Dodwell wrote: Hey all, Just trying to get http://projects.reductivelabs.com/projects/puppet/wiki/Module_Ssh_Auth_Patterns to work: I've managed to get everything except ssh::auth::client happening. I just don't understand why it isn't working. It is just a very si

[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 to puppet-u

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

2010-05-15 Thread Silviu Paragina
On 15.05.2010 02:41, Eric wrote: Ok, I may got what went wrong. Since I'm using puppet in a ubuntu distro, I installed it from repositories, which setup everything to run with puppet user, including file permissions. But after installing it, I only run the puppetmaster it with sudo and --no-daemo

Re: [Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit

2010-03-15 Thread Silviu Paragina
On 12.03.2010 22:34, Nigel Kersten wrote: For those people following along at home on this issue, Lucas Nussbaum chased it up on behalf of Debian and has just gotten a patch uploaded to Debian that resolves this problem. http://redmine.ruby-lang.org/issues/show/2739 Kudos for Lucas and tha

Re: [Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit

2010-03-01 Thread Silviu Paragina
Sorry for reviving such an old thread :"> I've actually hit this today on a single core machine (amd sempron if it matters..). r...@testclient:~# ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] r...@testclient:~# puppetd -V 0.25.1 Any other solutions to this and/or if it has been

Re: [Puppet Users] rrd library missing

2010-01-21 Thread Silviu Paragina
And I've managed to dodge one of your questions. :-) The include is done in ./lib/puppet/feature/base.rb (last line) which uses the lib/puppet/util/feature.rb. Basically you end up with a good old "require RRDtool" in load_library from feature.rb, if this require failsm you will get, further in the

Re: [Puppet Users] rrd library missing

2010-01-21 Thread Silviu Paragina
Are you using by any chance any trunk version of puppet? As far as I know puppet currently (0.25.4) uses RubyRRDTool gem which is not the same as the ruby rrd library bundled in RRDtools (despite the fact that the bundled version might be a fork of the gem). On ubuntu the ruby rrd bindings are fro

Re: [Puppet Users] Proper DNS configuration with Puppet

2010-01-19 Thread Silviu Paragina
On 18.01.2010 23:33, Scott Smith wrote: On 1/18/10 1:11 PM, Forrie wrote: Puppet docs require a PUPPET server name -- which I presumed a CNAME would suffice. However, I'm finding that's not the case - as the SSL cert generated is for the actual system name pupptmasterd runs on (makes sense). T

Re: [Puppet Users] Re: Using require/before & definitions?

2010-01-18 Thread Silviu Paragina
Oh I forgot to add. Usually you can avoid depending on resources in a define, and most of the times you should stay away. The only useful way to use this is either in another define or a specific class that does something. Otherwise you might want to include the resource that requires the defin

Re: [Puppet Users] Re: Using require/before & definitions?

2010-01-18 Thread Silviu Paragina
Resources are not guaranteed to run in any order. If you use puppet often and you forget some requires you will notice that the resources don't get run in the same order, use require and before, if you need a resource ensured before another. If I remember right, and nothing changed from the mo

Re: [Puppet Users] Managing authorized_keys

2010-01-16 Thread Silviu Paragina
Oh and read the New user manifest tips. It's a thread on the list currently (aka work in progress) but it should give you a heads-up for common rookie mistakes. Silviu Andre Timmermann wrote: Hi Silviu Am Freitag, den 15.01.2010, 03:31 +0200 schrieb Silviu Paragina: You shoul

Re: [Puppet Users] Managing authorized_keys

2010-01-16 Thread Silviu Paragina
Andre Timmermann wrote: Hi Silviu Am Freitag, den 15.01.2010, 03:31 +0200 schrieb Silviu Paragina: You should use modules, they get the stuff more organized, not a spinning vortex of files, templates, manifests and plugins. :-) hehe ;) http://reductivelabs.com/trac/puppet/wiki

Re: [Puppet Users] Method for selecting between different versions of the same class?

2010-01-16 Thread Silviu Paragina
On 01/16/2010 12:14 AM, Brian Ferris wrote: Here's my situation: I've got two groups of machines, one where I have root access and one where I don't (don't ask...). The class to provide particular functionality for a machine where I have root access ends up looking a lot different than the cla

Re: [Puppet Users] Managing authorized_keys

2010-01-15 Thread Silviu Paragina
Andre Timmermann wrote: Hi Silviu, Am Donnerstag, den 14.01.2010, 12:59 +0200 schrieb Silviu Paragina: If that is all take a look at: http://reductivelabs.com/static_files/TypeReference.html#ssh-authorized-key it does just what you need. :) Ok, thanks, that looks great. One single

Re: [Puppet Users] Package install and upgrade?

2010-01-15 Thread Silviu Paragina
Scott Smith wrote: That's pretty complex. It might not work, but I would try defining package resources for each version and have each successive version require the previous. RPM should be smart enough to handle it, so give it a shot! -scott I'm skeptical that this would work. And I would

Re: [Puppet Users] Managing authorized_keys

2010-01-14 Thread Silviu Paragina
Andre Timmermann wrote: Am Mittwoch, den 13.01.2010, 22:56 +0200 schrieb Silviu Paragina: May I suggest using this recipe http://reductivelabs.com/trac/puppet/wiki/Recipes/ModuleSSHAuth ? It's more recent and usesI will check the routine which is used to install and revoke keys

Re: [Puppet Users] custom init script and status exit codes

2010-01-14 Thread Silviu Paragina
I'm guessing you did /etc/init.d/btsh start; echo $? and it works fine. (also for stop and restart) What you should do is add some debugging code. I think echo debug stuff >2 would be just enough, if not write in a separate file (for execs is enough). The most likely cause for the script to wor

Re: [Puppet Users] Re: How to ensure a host has no aliases

2010-01-14 Thread Silviu Paragina
So for your example you would want to remove all host entries that point to 192.168.1.1 except the buildserver host entry? Or you want the buildserver host entry to be removed? Or you want to replace whatever host entry buildserver has, with 192.168.1.1? Peter wrote: I have host { "host

Re: [Puppet Users] Managing authorized_keys

2010-01-13 Thread Silviu Paragina
May I suggest using this recipe http://reductivelabs.com/trac/puppet/wiki/Recipes/ModuleSSHAuth ? It's more recent and uses the ssh_authorized_key resource in puppet. Silviu Andre Timmermann wrote: Hi, I am trying to manage the file authorized_keys with puppet. I am using http://reductivela

Re: [Puppet Users] Re: Puppet for app deployment

2010-01-12 Thread Silviu Paragina
Probably a brainfart, but: This scenario is typical and would suggest the requirement of database resource. And this would be just enough. Hypothetical example: On the db machine you will have a resource like: database { "mydb": ensure => 34, versionscript => "puppet:///modules/myapp/db_g

Re: [Puppet Users] 0.25.2 available via git?

2010-01-12 Thread Silviu Paragina
Steve Wray wrote: Thanks for the help, its been great. I'm trying to figure out what I should do if I have followed the instructions enclosed for 0.25.2 and then wanted to continue with 0.25.3. As it stands, when I used the command: git checkout -b upstream 0.25.3 it told me that there was

Re: [Puppet Users] content questions

2010-01-12 Thread Silviu Paragina
Check out this thread http://groups.google.com/group/puppet-users/browse_thread/thread/8f9f0a090c9ac235 especially the git repository mentioned in the thread. Silviu Derek Yarnell wrote: So using the content => attribute on files is obviously very helpful. We are using it and templating to

Re: [Puppet Users] 0.25.2 available via git?

2010-01-12 Thread Silviu Paragina
When you apt-get source the package you get a few files. A tar.gz (bz2 not sure), a diff, and few more (not interesting for this problem). The tar one is the original source code, the diff is the difference from the debian package (including the debian dir). So all you need to do is apply that

Re: [Puppet Users] Recipes/modules for multiple instances of web server?

2010-01-12 Thread Silviu Paragina
Jesús Couto wrote: Hi. I'm trying to do a test/proof of concept of Puppet as a tool to manage our systems. Hello, wow long mail. :) In our enviroment we have several different instances of apache running on each "webserver" machine, and several instances of tomcat running in our "appservers"

Re: [Puppet Users] Virtual ressource in a define

2010-01-11 Thread Silviu Paragina
Each time a definition is "called" it defines all the resources. If the definition for the virtual package isn't variable you should put it in a class as classes get included only once. Otherwise you will have to rename the resource depending on the variables of the definition (doesn't seem the

Re: [Puppet Users] Re: authentication issue with passenger (resolved)

2010-01-11 Thread Silviu Paragina
Christian Hofstaedtler wrote: You know, this usually means that you don't have these settings in your puppet.conf, as doc'ed: Required puppet.conf settings: [puppetmasterd] ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY -ch Noted. Does this work

Re: [Puppet Users] (Module custom(/custom)) using the deprecated 'plugins' directory for ruby extensions; please move to 'lib'

2010-01-08 Thread Silviu Paragina
Check out http://reductivelabs.com/trac/puppet/wiki/ReleaseNotes#deprecations The short answer is rename module/plugins to module/libs. About module naming there is a thread on the list started by a...@lab42 if you wish I can give you a link. Aside from that nothing I know. PuppetBestPractice

Re: [Puppet Users] Reloading puppet client after nss change

2010-01-07 Thread Silviu Paragina
Check this out: http://groups.google.com/group/puppet-users/browse_thread/thread/23644c7a25661a2a/91b87703009f851d Silviu On 06.01.2010 17:35, Doug Warner wrote: I'm using puppet to push around nss-db updates but I'm having problems where the currently running puppet instance doesn't see the

Re: [Puppet Users] Passenger spits back a 405

2010-01-04 Thread Silviu Paragina
Safest bet is to downgrade passenger to 2.2.2, at least that is what I have done, and your config is similar to mine For above 2.2.2 the config from the puppet source tree (ext/rack/files/apache2.conf) should be the right one, but that never worked for me. As a general ideea from what I underst

Re: [Puppet Users] Re: continues puppet run in production

2009-12-30 Thread Silviu Paragina
Bugs happen in any service. This is the classical dilemma of plugging out your computer from the network vs connectivity (usability in this case). From my perspective high security risk bugs happen rarely enough to use both puppet and any other service I use. IMHO misconfiguration has a bigger

Re: [Puppet Users] Re: SSL_connect SYSCALL returned=5

2009-12-29 Thread Silviu Paragina
JL wrote: >>> Does this problem still persist? >>> > yes > > >>> Is it always on the same clients? >>> > It has happened on every client except (I think) the puppet server > itself. The clients are Solaris 10 boxes with a mix of sparc and > i386. It seems to be happening about 10

Re: [Puppet Users] Re: continues puppet run in production

2009-12-29 Thread Silviu Paragina
berber wrote: > If you look at the reply from Russ Allbery you will notice he wrote " > We've only gotten bitten by this once, when there was a bug in Puppet > that occasionally caused it to overwrite managed files with their own > checksums." > > I'm thinking to myself that bugs will always happen

Re: [Puppet Users] nested variables

2009-12-26 Thread Silviu Paragina
On 26.12.2009 20:10, Scott Smith wrote: > Silviu Paragina wrote: > >>> $mac = ${$macaddress_${iface}} >>> >>> >> Shouldn't this be ${macaddress_${iface}} ? >> >> > Have you tried that? Doesn't work for me in 0.25.

Re: [Puppet Users] how to specify source parameter for gem packages

2009-12-26 Thread Silviu Paragina
On 24.12.2009 21:00, byron appelt wrote: > I am trying to use the package class to manage a gem and I need to > specify the source. I tried doing the following: > > package { "gateway_install_support": > ensure => installed, > provider => gem, > source => "http://gems.ublip.com:88

Re: [Puppet Users] nested variables

2009-12-26 Thread Silviu Paragina
On 24.12.2009 11:33, sHaggY_caT wrote: > Hi all! > > I have quation: how i may use nested variables/facts? For example, I > have variable $iface. It's variable declared in node brakets, and, use > with defenition. iface may be eth0, eth1(Linux), em0, ... > , ... > > is fact: > > facter | grep eth0

Re: [Puppet Users] Re: Couldn't see RRDReport in foreman

2009-12-26 Thread Silviu Paragina
On 25.12.2009 13:11, koliama wrote: > I wished to allocate with tag change in URL. Probably it does not > work in google groups. > In a reality I certainly do not use this tag in URL. Use firefox + firebug, inspect element there and check the output, it will probably point you in the right direct

Re: [Puppet Users] Re: Downgrade package via yum

2009-12-23 Thread Silviu Paragina
Hello, On 23.12.2009 19:45, R.I.Pienaar wrote: > hello, > > - "Silviu Paragina" wrote: > > >> AFAIK for apt/dpkg everything is fine as it is. But I might be wrong, >> it wouldn't be the first time my mind plays tricks on me. :

Re: [Puppet Users] puppet and sles 11 node

2009-12-23 Thread Silviu Paragina
On 23.12.2009 01:13, Matthew Delves wrote: > Hey All, > I seem to be getting errors when running puppet under sles 11. > The first weird issue I'm seeing is that the node information isn't being > sent through to puppet correctly as It doesn't pick up the $operatingsystem > variable correctly and

Re: [Puppet Users] Re: Downgrade package via yum

2009-12-23 Thread Silviu Paragina
On 22.12.2009 16:27, jcbollinger wrote: > Yes, I think you read too much into that. I also think that Puppet > could provide better support than it currently does. For instance, it > could perhaps add an "allow_downgrade" parameter to the package type > that, for the yum provider, would cause "--

Re: [Puppet Users] puppet, mongel, nginx and new nodes

2009-12-22 Thread Silviu Paragina
On 22.12.2009 06:34, Matthew Delves wrote: >> Sounds like mongrel or nginx might be generating an error message. Try >> pointing a web browser at https://:8140 and see if you get >> anything helpful. >> > The error I get is: > > Peer's certificate has an invalid signature. > > It would seem

Re: [Puppet Users] Multiple Environments

2009-12-21 Thread Silviu Paragina
Douglas Garstang wrote: > But... how do you serve up those multiple puppet environments? Are you > running multiple versions of the puppetmaster? I'm using passenger so > it would seem like it would be fairly easy to run additional > puppetmasters on different ports, except that I can't find where

Re: [Puppet Users] Multiple Environments

2009-12-21 Thread Silviu Paragina
Douglas Garstang wrote: > On Sun, Dec 20, 2009 at 1:58 PM, Douglas Garstang > wrote: > >> On Sun, Dec 20, 2009 at 4:57 AM, R.I.Pienaar wrote: >> >>> hello, >>> >>> - "Douglas Garstang" wrote: >>> >>> I'd like to be able to split out my puppet production and test envi

Re: [Puppet Users] Downgrade package via yum

2009-12-18 Thread Silviu Paragina
You may try to use the debug method I described here http://groups.google.com/group/puppet-users/browse_thread/thread/40a0cbdc8ade0d71/099af2828b89871e?lnk=gst&q=yum#099af2828b89871e Silviu Tony G. wrote: > Hi, > > On our organization we have custom npre packages distributed via yum, > few day

Re: [Puppet Users] Managing the same file from multiple modules/classes/manifests

2009-12-18 Thread Silviu Paragina
David Pheasant wrote: > Hey everyone, > > I accidentally sent an earlier (unfinished) version of this message to > the list, but hopefully it was moderated out. In any case, I'm > wondering about the best way to manage the contents of a single file > from multiple modules or maninfests/classes with

Re: [Puppet Users] Re: authentication issue with passenger (resolved)

2009-12-17 Thread Silviu Paragina
What's your apache vhost config? Passenger 2.2.2 with 0.25.1 didn't work for me with the config from the example in 0.25.1 tree I think there is an error in the 0.25.1 example one. I had to add: RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-DN %{

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

2009-12-15 Thread Silviu Paragina
This looks a lot like this problem: http://projects.reductivelabs.com/issues/2890 Have you tried rm -rf /etc/puppet/ssl on the client? Or you are avoiding exactly that? In 0.25.1 puppet seems to force the usage of the cached certificates despite the fact that some of the data may be wrong, so yo

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

2009-12-15 Thread Silviu Paragina
Os wrote: > No, I have just installed the 4 packages. How do I compile these > bindings, I have not worked with ruby that much. > I have downloaded "ruby-augeas-0.3.0.tgz" from "http://augeas.net/ > download/ruby/" but do not know how to go further. > I need rake to compile this Rakefile? > > Yo

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 > tf-elements-core-tfel0.noarch > 14

Re: [Puppet Users] Installing Specific RPM Version

2009-12-14 Thread Silviu Paragina
Douglas Garstang wrote: > I'm trying to install/upgrade to a specific version of an RPM with > puppet. I'm getting the following: > > Dec 14 17:58:40 papp1 puppetd[8438]: > (//Node[papp1.fr.xxx.com]/Elements::Setup[tfel0]/Package[tf-elements-core-tfel0]/ensure) > change from 1.0-1.tf to 14.3-0.tf f

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

2009-12-14 Thread Silviu Paragina
On 14.12.2009 22:31, Roberto Bouza wrote: > Hello, > > I was able to compile ruby add gems install facter and puppet on one > LDAP. Now everything looks good, puppetd is up and running but when > checking the certificate on the puppetmaster server (A linux box) I > don't see the request from the cl

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

2009-12-09 Thread Silviu Paragina
On 09.12.2009 16:28, jcbollinger wrote: > As far as I know, overriding only works in a subclass, so it would > need to be: > > class stripdown inherits mysql::server { > Service { "mysqld": enable => "false", ensure => "stopped" } > } > > > Obviously, that's messy and it doesn't scale for mu

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

2009-12-09 Thread Silviu Paragina
On 09.12.2009 09:25, David Schmitt wrote: > > If you can detect from the facts that an erreneous situation is > ocurring, you could change the environment at the node level or in an > external node script. > > > Regards, DavidS > You mean something like node problem { if (condition) {

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

2009-12-09 Thread Silviu Paragina
On 09.12.2009 11:44, Alexandre wrote: > The use case i try to illustrate is when to declare some item (eq > mysqld service) with a default configuration that could be included on > every node (class stripdown in the example, for basenode), and still > be able to override this same item in some spec

Re: [Puppet Users] Foreman and RRD

2009-12-09 Thread Silviu Paragina
On 09.12.2009 12:35, LOhit wrote: > Hello, > > I am facing a little problem(?) with foreman. I have enabled > "reports=foreman,rrdgraph,store" on the puppetmaster. And, I can see > the reports in foreman as well, except for the RRD Graphs. > > However, I can see "/var/puppet/rrd" being populated

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

2009-12-08 Thread Silviu Paragina
t; > cheers, > Ohad > > > On Wed, Dec 9, 2009 at 9:51 AM, Silviu Paragina <mailto:sil...@paragina.ro>> wrote: > > Try this > ruby -e 'puts Time.at(0)' > In case ruby treats timezones different from how it should (how I > think

  1   2   >