[Puppet Users] manifest class logic to update pkgs

2012-09-19 Thread Frank
d_pkgs { include my_pkgs service { "my-tools": provider => "daemontools", path => "/servers/daemontools", ensure => restart, subscribe => Exec['my_pkgs'] } } Cheers, Frank

[Puppet Users] require class inside fact

2012-09-25 Thread Frank
Facter.add("foo") do setcode do Facter::Util::Resolution.exec('echo ${x::foo}') end end Thanks in advance -- Frank -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-use

Re: [Puppet Users] require class inside fact

2012-09-25 Thread Frank
un by the > node. > > So you can set $foot in the fact, and echo it in the class, but not vice > versa as you have done below. I see. I thought Puppet could feed it's facts definitions too by requiring some class on it. Many thanks for your fast and clear answer :) Cheers, F

[Puppet Users] Server Roles

2012-09-28 Thread Frank
to "Windows" and the path (to match window paths c:\foo)? Is this the right approach? thanks in advance. Cheers, -- Frank -- 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: Server Roles

2012-09-28 Thread Frank
-- Frank On Friday, September 28, 2012 at 2:35 PM, jcbollinger wrote: > > > On Friday, September 28, 2012 6:05:54 AM UTC-5, ureal frank wrote: > > Hi, > > > > I've seen some blog posts about adding server roles to Puppet. > > > > Some

Re: [Puppet Users] Re: Server Roles

2012-09-28 Thread Frank
o |line| if line =~ /^(.+)=(.+)$/ fact = $1 value = $2 Facter.add(fact) do setcode {value} end end end end :) -- Frank On Friday, September 28, 2012 at 2:44 PM, Frank wrote: > > > -- > Frank > > > On Friday, September 28, 2012 at 2:35 PM, jcbollinger wrote: >

[Puppet Users] service question

2012-10-02 Thread Frank
dividually? service { 'a': ensure => running, pattern => "/usr/local/bin/b", } service { 'a': ensure => running, pattern => "/usr/local/bin/c", } or even other way around :) thanks in advance -- Frank -- You received this message beca

[Puppet Users] reportdir ignored

2012-10-26 Thread Frank
e original place. I am missing some step here? thanks in advance, -- Frank -- 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 em

Re: [Puppet Users] reportdir ignored

2012-10-26 Thread Frank
on't know why puppet might be doing this.) Well, in fact :) little weird but ok. Right now I'm running Puppet 2.7.19 and I'm gonna do this 'trick' until I have the time to migrate this to Puppet 3 Thanks :) > > On Fri, Oct 26, 2012 at 03:23:43PM +0100, Frank wrote: &g

Re: [Puppet Users] reportdir ignored

2012-10-26 Thread Frank
On Friday, October 26, 2012 at 3:53 PM, Jeff McCune wrote: > On Oct 26, 2012, at 7:23 AM, Frank (mailto:urealfr...@gmail.com)> wrote: > > > Hi, > > > > I've filled up my hard drive so I want to point /var/lib/puppet/reports to > > another vol

Re: [Puppet Users] reportdir ignored

2012-10-26 Thread Frank
solved! many thanks :) -- Frank On Friday, October 26, 2012 at 4:13 PM, Frank wrote: > > > On Friday, October 26, 2012 at 3:53 PM, Jeff McCune wrote: > > > On Oct 26, 2012, at 7:23 AM, Frank > (mailto:urealfr...@gmail.com)> wrote: > > > > > H

[Puppet Users] subscribe => Package

2012-11-27 Thread Frank
first before install class. Even so… Is there a way for me to force this dependency under file { '/etc/toola': subscribe => Package? If yes, how can I define such a dependency with class Package after I've defined an package array without a specific name? Cheers -- Frank -- Yo

Re: [Puppet Users]

2013-03-17 Thread Frank
Hi Justin, Many thanks for your reply. mine goes inline. On Saturday, March 16, 2013 at 11:23 PM, Justin Stoller wrote: > Hi Frank - > > On Sat, Mar 16, 2013 at 11:03 AM, ureal frank (mailto:urealfr...@gmail.com)> wrote: > > Hi, > > > > I'm try

Re: [Puppet Users]

2013-03-17 Thread Frank
Hi Justin, Many thanks for your reply. mine goes inline. On Saturday, March 16, 2013 at 11:23 PM, Justin Stoller wrote: > Hi Frank - > > On Sat, Mar 16, 2013 at 11:03 AM, ureal frank (mailto:urealfr...@gmail.com)> wrote: > > Hi, > > > > I'm try

Re: [Puppet Users] courier imap/pop not refreshing

2012-01-17 Thread Felix Frank
On 01/13/2012 07:08 PM, Christopher Wood wrote: > The courier-imap (and courier-pop) services on my lab VMs don't actually get > refreshed after puppet drops in the config files. I suspect it's something > about the lack of /etc/init.d/courier-pop status, coupled with that I have > the wrong pat

Re: [Puppet Users] Display correctly any array

2012-01-17 Thread Felix Frank
On 01/16/2012 04:23 PM, Antidot SAS wrote: > Hi everyone, > > > Is there a way to display correctly an array, each time I am trying to > 'notice' an array I have something like that: > Here is the code: > $array = [ 'test' , 'test2'] > > notice("Here is the $array") > > The ouput is as follow:

Re: [Puppet Users] more fun and games...(exported resources)

2012-01-18 Thread Felix Frank
Hi, On 01/17/2012 09:27 PM, Peter Berghold wrote: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Exported resource Nagios_contact[sharkrivertech-support] cannot override > local resource on node slcdmon0.slc.sharkrivertech.com >

Re: [Puppet Users] Re: How to handle multiple modules requiring the same packages

2012-01-18 Thread Felix Frank
Hi, On 01/17/2012 04:11 PM, jcbollinger wrote: > The first is simpler only if you get lucky, and you don't intend to > modify your manifests ever again. basically correct, but you can even play it safe: You must make sure each and every invocation of the resource in question is protected by such

Re: [Puppet Users] Import Class vs Require vs Inherits Options

2012-01-18 Thread Felix Frank
Hi, require => is largely orthogonal to the other mentioned concepts. Do require whatever must be handled first by puppet, e.g. service { "ntp": require => Package["ntp"] } so that puppet doesn't try and start a service before its package is even installed. It will *not* automagically install pa

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Felix Frank
But this is begging for trouble: On 01/19/2012 09:22 PM, Ashley Penney wrote: > An example: > > if ! defined(Mysql_user ["${user}@${host}"]) { > mysql_user { "${user}@${host}": > password_hash => mysql_password($password), > require => File["/root/.my.cnf"], > } >

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-20 Thread Felix Frank
Hi Dan, sorry if I come around bluntly about this, but: On 01/20/2012 10:00 AM, Dan Bode wrote: > * static resources in a defined resource type (avoids having to use > classes to store all static dependencies) > > * the big reason I keep on leaning on it is for package dependencies. > Often some

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-23 Thread Felix Frank
Hi, On 01/20/2012 11:34 PM, Cody wrote: > Defining all somewhat common packages in a central location becomes > unrealistic when you no longer "control" the code that is in every > module you use. If you obtain five modules from the forge and they > all require a specific package and so all defin

Re: [Puppet Users] Template Help Please

2012-01-23 Thread Felix Frank
Absolutely beats me. Is this a verbatim paste from your template? Are you certain that the template is the source of the error? Does it say anything beyond "syntax error"? Just pasting puppet output would be ideal. Cheers, Felix On 01/23/2012 12:57 PM, ollies...@googlemail.com wrote: > I have t

Re: [Puppet Users] Re: Template Help Please

2012-01-23 Thread Felix Frank
On 01/23/2012 02:48 PM, ollies...@googlemail.com wrote: > host: parse of /etc/resolv.conf failed > ./resolver/templates/resolv.conf.erb:7:in `result': compile error > (SyntaxError) > ./resolver/templates/resolv.conf.erb:4: syntax error > _erbout.concat(( scope.lookupvar('resolver::params::resolvers

Re: [Puppet Users] Why is 'notify' acting as a 'before' and not a 'require' ?

2012-01-24 Thread Felix Frank
Hi, On 01/24/2012 10:09 AM, Alexandre Fouché wrote: > I find it logical that my 'BackupPC.conf' apache file is put after the > apache package is installed, or more broadly after the apache class is > complete. Afterwards, i put the 'BackupPC.conf' conf, and then > afterwards, i want to notify Exec

[Puppet Users] Cross-module (package) dependencies

2012-01-24 Thread Felix Frank
Hi, there was a discussion in the "can we deprecate defined() in Telly" thread about how we can even begin to design Forge modules without it. A recurring problem is that multiple modules rely on certain packages, and there is no good model (yet) to unite their resource declarations. Therefore it

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-24 Thread Felix Frank
On 01/24/2012 01:57 AM, Nigel Kersten wrote: > Felix, could you take this to a new thread please? I'd really like to > keep this one focused on the topic at hand if possible :) I'd had loved to, but I'm apparently too dumb to use E-Mail. Let's try again ;( -- You received this message because yo

[Puppet Users] Cross-module (package) dependencies

2012-01-24 Thread Felix Frank
Hi, there was a discussion in the "can we deprecate defined() in Telly" thread about how we can even begin to design Forge modules without it. A recurring problem is that multiple modules rely on certain packages, and there is no good model (yet) to unite their resource declarations. Therefore it

Re: [Puppet Users] Re: Why is 'notify' acting as a 'before' and not a 'require' ?

2012-01-24 Thread Felix Frank
On 01/24/2012 10:51 AM, Alexandre wrote: > But it seems that for Puppet, > parsing and applying the notified ressource is one operation, which > means, if i understand correctly, that it is not possible to require > and notify the same resource as i was expecting erroneously. It's not. Both notif

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-24 Thread Felix Frank
On 01/24/2012 12:38 PM, Tim Sharpe wrote: > The only "clean" way to handle this that I can think of off the top of > my head > is for Puppet to start silently discarding duplicate definitions and > just using > the first one it comes across (with perhaps a message being logged at info > level so th

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-25 Thread Felix Frank
On 01/25/2012 05:48 AM, Walter Heck wrote: >>> We'd also need a way to test if a capability is being provided by the >>> >> system as a whole. Ie, a mysql module needs to be able to check if it >>> >> needs to include resources for a firewall, monitoring, etc. >> > Something like defined()? ;-) > C

Re: [Puppet Users] Cross-module (package) dependencies

2012-01-25 Thread Felix Frank
On 01/25/2012 06:59 PM, Ashley Penney wrote: > After all, if they've been included on the host all of those attributes > should apply so I can't see a dangerous downside to this. Nan provided some killer arguments (imho) in the proper cross-dependency thread. -- You received this message because

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-26 Thread Felix Frank
Hi, On 01/26/2012 02:25 AM, Ashley Penney wrote: > This is a fantastic reply and I appreciate the work you put into it. I > have just one > question. As it stands functions can only apply to partial catalogs and > not to the > full catalog. Is this a fundamental design decision that cannot be >

Re: [Puppet Users] RFC: Deprecate defined() function for Telly.

2012-01-26 Thread Felix Frank
On 01/26/2012 11:21 AM, Nick wrote: > For example, suppose in one place I need a file to exist, and in another I > also > need it to be executable. Oh dear, I can't do that. That, and you'd need to merge require/before etc. Such things aren't trivial. Nan put it this way: On 01/25/2012 03:59 PM

Re: [Puppet Users] Error at the end of a puppet agent run...

2012-01-26 Thread Felix Frank
On 01/26/2012 12:15 PM, Felix Frank wrote: > On 01/24/2012 08:21 PM, Aaron Grewell wrote: >> If you didn't specifically configure Puppet to use Passenger then >> you're using Mongrel by default. Scalability => false. > > Isn't that webrick? > > AFA

Re: [Puppet Users] A Related Question - (Was: Template Help Please)

2012-01-26 Thread Felix Frank
On 01/26/2012 02:20 PM, Dick Davies wrote: > That kind of thing should work (been using similar tricks since 0.25.x); I think Dan was addressing this: > scope.lookupvar('resolver::params::resolvers') I'm not sure when this was new, I believe it works with 2.6.x -- You received this message bec

Re: [Puppet Users] Re: RFC: Deprecate defined() function for Telly.

2012-01-26 Thread Felix Frank
On 01/26/2012 04:28 PM, jcbollinger wrote: > The 'defined' function can maybe > ensure that the manifests compile, but it cannot ensure that the > resulting configuration is correct. That makes it worse than useless > for the purpose, as far as I'm concerned. Exceptionally good point. -- You re

Re: [Puppet Users] constraint checking

2012-01-27 Thread Felix Frank
Hi, On 01/26/2012 08:14 PM, Jo Rhett wrote: > One thing about a well-written piece of generic code is that it can be used > in many environments. A lot of my modules do things like "do I have an > external interface or am I behind the firewall?" and do different things > based on those answers.

Re: [Puppet Users] courier imap/pop not refreshing

2012-01-27 Thread Felix Frank
On 01/25/2012 04:40 PM, Christopher Wood wrote: > Unfortunately I am unable to reproduce this except outside the target > virtualized environment, currently unavailable due to resource concerns. > > So far courier-imap and courier-pop restart as they should elsewhere. I recommend puppet agent --

Re: [Puppet Users] Exporting local resources

2012-01-27 Thread Felix Frank
Hi, the code below will work, but it will not magically transfer file contents as seen on host A to the master and from there to host B. Any state you wish puppt to maintain you have to make known to puppet. If you want puppet to pickup and process any piece of information from an agent, you wil

Re: [Puppet Users] Re: client not getting updates no error message

2012-01-27 Thread Felix Frank
Hi, On 01/21/2012 08:02 PM, bhagyesh wrote: > info: Applying configuration version '1327172288' > notice: /Stage[main]/Networking::Resolver/File[/tmp/resolv.conf]/ > ensure: created > debug: Finishing transaction 23673547908420 so it worked, didn't it? Why did you reinstall your master? o_O --

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-27 Thread Felix Frank
Hi John, thanks for coming up with such elaborate ideas, your input to this group adds a lot of meat to many discussions. I can agree with a lot of what you wrote, barring the following remarks: On 01/26/2012 06:00 PM, jcbollinger wrote: > Modules provide definitions of resources that they own.

Re: [Puppet Users] Multiple Service definitions of the same type

2012-01-27 Thread Felix Frank
Hi, On 01/24/2012 11:50 PM, Bryan Beaudreault wrote: > I have a special init.d script that can > handle this, but want to define the service multiple times in a puppet > class. I assume your new initscript declares a different Provides: tag than the stock memcached initscript, yes? Whatever this

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-27 Thread Felix Frank
Hi, On 01/27/2012 02:52 PM, Walter Heck wrote: > There's something else we need to think about here. Some modules have > a soft/conditional requirement for other modules. What I mean is that > if you don't use certain parts of a module, you don't need the module > that that part of the code refers

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-27 Thread Felix Frank
Hi, On 01/27/2012 04:22 PM, jcbollinger wrote: > From a usability perspective, I think this is a far better proposal > than anything else on the table: I've thought of another plus. Even though the design proposal adds to the DSL (and complexity is generally to be avoided), it does so in a manner

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-30 Thread Felix Frank
Hi, On 01/28/2012 04:35 PM, Trevor Vaughan wrote: > Drawbacks: > > * Requires the user to have an explicit working knowledge of all modules and namespaces > * Adds a lot of random logic to the code (unless it becomes a metaparam of some sort) You skipped the most important drawback: Commitment

Re: [Puppet Users] Can't use ${path} in file resource as its namevar?

2012-01-30 Thread Felix Frank
On 01/28/2012 12:17 AM, jblaine wrote: > Trashing the entire defined resource idea 30 mins ago, and > simply trying: But why? > class ldapclient::config { > case $sys_sshortai { > 'RH6': { > file { '/etc/openldap/ldap.conf': > mode => '444', >

Re: [Puppet Users] Can't use ${path} in file resource as its namevar?

2012-01-30 Thread Felix Frank
On 01/30/2012 03:50 PM, jblaine wrote: > So there's nothing I can refer to inside a basic file resource declaration > which refers to the file resource "title". That's what I wanted to know > (assuming I understand everyone correctly). That's correct, yes. -- You received this message because y

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-30 Thread Felix Frank
Hi, thanks for your elaborate design sketch. Sorry for limiting my quote severely. On 01/30/2012 06:28 PM, Nick wrote: > +package { 'libfoo': ensure => present } Is this different from John's "constraint" proposal? To me this didn't become clear: Does the manifest still need to declare an ac

Re: [Puppet Users] SSL Errors - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B

2012-01-30 Thread Felix Frank
Hi, concerning your question why everything seems to work pretty well: On 01/27/2012 04:59 AM, Romeo Theriault wrote: > Jan 26 17:09:41 ppt01 puppet-agent[27357]: Using cached catalog Your agent is using a cached catalog. puppet agent --test should fail. Also, changing the manifest for this nod

Re: [Puppet Users] Re: Cross-module dependencies

2012-01-31 Thread Felix Frank
Hi, On 01/30/2012 10:28 PM, Nick wrote: > It did sound similar, yes - but unless I misunderstand it, not identical. For > example, I don't understand how Constraints would avoid the problems with > unifying resources that Nan mentioned. as far as I understand, there is no need to merge anything.

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Felix Frank
Hi, On 01/31/2012 04:39 PM, Olivier wrote: > My problem is that I need to call the class multiple times in the > site.pp file but with different parameters. this is not possible. It doesn't really make sense either. Classes in puppet are unlike classes in other languages like C# or Java that you

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Felix Frank
On 01/31/2012 04:46 PM, Christopher Wood wrote: > This sounds like you want a define rather than a class. Possibly, but not yet determined ;-) > gross, horrible How so? It's not a bad example. If you dislike the data redundancy, I suggest: define mail::mount($mount_base="/mail") { include nf

Re: [Puppet Users] Puppet can't start service (dropbox) but init.d command works manually

2012-01-31 Thread Felix Frank
Hi, On 01/31/2012 12:05 AM, Richard K. Miller wrote: > I get the following syslog error when this runs: > (/Stage[main]/Dropbox::Service/Service[dropbox]/ensure) change from > stopped to running failed: Could not start Service[dropbox]: Execution > of '/etc/init.d/dropbox start' returned 1: at /e

Re: [Puppet Users] Re: Puppet can't start service (dropbox) but init.d command works manually

2012-02-03 Thread Felix Frank
Hi, On 02/01/2012 02:01 AM, Richard K. Miller wrote: > AppArmor is > on. Could that be a factor? I certainly believe so. It should be investigated. Regards -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to p

Re: [Puppet Users] Search which the agent on which a specified module is been installed

2012-02-03 Thread Felix Frank
Hi, On 02/01/2012 06:01 AM, sateesh wrote: > Hi, > > Can we get the list of IPs from server where the specified module is > installed. There is a search functionality in the Chef to do this. Is > there any way in puppet? not that I'm aware of, no. There are some simple workarounds you might con

Re: [Puppet Users] Re: Chef knife equivalent in puppet

2012-02-03 Thread Felix Frank
Hi, On 02/03/2012 06:38 AM, sateesh wrote: > The next step is now I need to install some modules that are located > in the server on to newly created IP. I think in chef the server will > copy on to the new VM in /tmp location and install the modules on that > IP. After installing it will delete t

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-03 Thread Felix Frank
Hi, On 02/03/2012 01:33 PM, Luke wrote: > Hmmm that is what I have been doing but for some reason it keeps > messing up. Do I have to do an include or something for the puppet-lvm > module? I mean I already have an import statement for it in my > sites.pp. please share a relevant excerpt from you

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-03 Thread Felix Frank
Hi, On 02/03/2012 02:37 PM, Luke wrote: > When I name the module lvm. I applys the config but doesn't do > anything. > info: Caching catalog for luketest.mgmt.mydomain.local > info: Applying configuration version '1328241141' > notice: Finished catalog run in 0.03 seconds please repeat with --eva

Re: [Puppet Users] Puppet installed using Gem

2012-02-03 Thread Felix Frank
Hi, On 02/03/2012 01:48 PM, sateesh wrote: > "err: Could not request certificate: Connection refused - connect(2) are you absolutely certain the default port is open on your master? It sure doesn't look like it. > Exiting; failed to retrieve certificate and waitforcert is disabled" If you don't

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-03 Thread Felix Frank
On 02/03/2012 02:51 PM, Luke wrote: > info: /Whit[/dev/sdb]: valuated in 0.00 seconds > info: /Whit[myvg]: valuated in 0.00 seconds > info: /Whit[mylv]: valuated in 0.00 seconds > info: /Whit[/dev/myvg/mylv]: valuated in 0.00 seconds Looks like it's working all right. But seeing as the LV exists a

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-03 Thread Felix Frank
Hi, On 02/03/2012 03:04 PM, Luke wrote: > Disk /dev/sdb: 8589 MB, 8589934592 bytes > 255 heads, 63 sectors/track, 1044 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Disk /dev/sdb doesn't contain a valid partition table > > Its not even doing anything with /dev/sdb. What makes

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-03 Thread Felix Frank
On 02/03/2012 03:45 PM, Luke wrote: > root@luketest ~]# pvdisplay Ugh, why do people insist on using this instead of pvs? Anyway, you're right, the LV isn't there. Neither is the PV. Are the PV and VG defined somewhere in your manifest? They should be. I have no experience with this module, but

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-03 Thread Felix Frank
On 02/03/2012 06:37 PM, Luke wrote: > if ! defined(Physical_volume[$pv]) { > physical_volume { $pv: ensure => present } > } Ah, dreadful ;-) But there goes that theory - the PV and VG are implicitly created, so the module really *should* do the right thing. So the issue is pr

Re: [Puppet Users] newb inheritance issue

2012-02-06 Thread Felix Frank
Hi, On 02/04/2012 04:16 PM, eldorado554 wrote: > Any idea why controllernode.vps.net is not importing the > controllernode module? your basic ideas are sound, but there is a conceptual misunderstanding: You cannot "include ". Instead, you have to include a *class* from the module. E.g. "include

Re: [Puppet Users] Re: Puppet installed using Gem

2012-02-07 Thread Felix Frank
Hi, On 02/06/2012 11:39 AM, sateesh wrote: > when > I run the agent command along with parameter "--test", then the > catalog is executed for the client to create the test file. Please let > me know where I have went wrong. I have waited for 1 hour whether the > test file will be created after sta

Re: [Puppet Users] class inheritance question

2012-02-07 Thread Felix Frank
Hi, sorry for jumping to conclusions, but your questions suggest that you're committed to some rather horribly design ideas. Can you add some meat to your inquiry? What are your trying to achieve? Under most circumstances, you don't want inheritance at all. Use it *only* to override the paramete

Re: [Puppet Users] Puppet SSL Problems

2012-02-07 Thread Felix Frank
Hi, sorry for following up late. On 02/02/2012 08:06 PM, Thomas Jones wrote: > /usr/sbin/puppetd --server puppet-server.domain.com --verbose > --no-daemonize --waitforcert 60 It appears to me that your master... > [root@puppet-server thomasjones]# /usr/sbin/puppetca --list --all > + puppet-serv

Re: [Puppet Users] Re: class inheritance question

2012-02-07 Thread Felix Frank
Hi, On 02/07/2012 01:56 PM, jimbob palmer wrote: >> sorry for jumping to conclusions, but your questions suggest that you're >> > committed to some rather horribly design ideas. > Then please educate me! What's horrible about it? There are few use cases for parameterized classes, and also few for

Re: [Puppet Users] Re: class inheritance question

2012-02-08 Thread Felix Frank
Hi, On 02/08/2012 07:43 AM, jimbob palmer wrote: > Now I will use includes as you suggest. Say I have a class that has an > include, is there a guarantee that the include will always be included > before the rest of the class is examined? Referencing variables scoped to included classes will *alw

Re: [Puppet Users] define hostclass with special characters

2012-02-08 Thread Felix Frank
On 02/08/2012 12:57 PM, sateesh wrote: > I need to define the hostclass with special character for ex: > "swift::proxy-ring" Uhm...why? Dashes are not allowed in any puppet classes. Why do you want them so much? Can you not simply substitute and underscore (_) ? Cheers, Felix -- You received th

Re: [Puppet Users] Re: define hostclass with special characters

2012-02-08 Thread Felix Frank
On 02/08/2012 02:19 PM, sateesh wrote: > Please give me any example for implementing this. Also when I am > writing Puppet DSL, it is allowing me the dashes. Sorry, I have no idea what you're trying to do. I never heard of "hostclass". I just reacted to your statement that "special characters" wer

Re: [Puppet Users] Re: class inheritance question

2012-02-08 Thread Felix Frank
Hi, On 02/08/2012 02:57 PM, jimbob palmer wrote: > So say I have a single class which in order I need to ensure a file > doesn't exist, then after that install a package, then after that call > a define function. careful: define() has nothing to do with custom functions. You create a definded *t

Re: [Puppet Users] Re: Looping in Ruby DSL

2012-02-09 Thread Felix Frank
On 02/09/2012 05:50 AM, Eric Shamow wrote: > Sateesh, > > It is better if you don't look at it as a "loop." A loop is a very > procedural concept. You are working with a machine that you are trying > to get into a fixed state. > > So better to think "I want to have a bunch of similar-looking re

Re: [Puppet Users] Re: Schedule for own resources?

2012-02-09 Thread Felix Frank
Hi, On 02/03/2012 08:38 AM, Os wrote: > On Feb 2, 9:43 pm, jcbollinger wrote: >> >> Hmm. That statement may have been overly optimistic. I think it's >> pretty clear clear cut that schedules *should* work for defined type >> instances, but perhaps Puppet is buggy in that regard. >> >> I don't s

Re: [Puppet Users] package issue for provider sun

2012-02-20 Thread Felix Frank
Hi, On 02/03/2012 10:25 PM, david boldt wrote: > > The following one line change appears to fix that problem for 2.7.10. > > ... great, thanks for sharing. Unfortunately, this will probably need to made a bug report at http://projects.puppetlabs.com/issues/. You will likely be required to get

Re: [Puppet Users] Puppet kick class option error

2012-02-20 Thread Felix Frank
Hi, sorry for following up late. On 02/06/2012 08:27 AM, Kenichi Tsunokawa wrote: > Hello, > I'm trying to puppet kick with class option. > > Pupper Master: puppetmaster.example.com > Puppet Client1: host1.example.net > Puppet Client2: host2.example.net > > But I get this error. > > --- > [ro

Re: [Puppet Users] Example42 MySQL puppet-module

2012-02-21 Thread Felix Frank
Hi, On 02/10/2012 03:09 AM, Will S. G. wrote: > Hi there, > > I thought I understood how this module works, but I guess I missed > something. Here is what I have in my nodes.pp > > > node 'mysql' inherits default { > include mysql > mysql::user { "db1": > mysql_p

Re: [Puppet Users] exec: How to logoutput => on_failure and get STDERR too?

2012-02-21 Thread Felix Frank
Hi, On 02/14/2012 04:05 PM, Peter Valdemar Mørch wrote: > It seems > brittle, shell dependent, non-portable and redundant to have to put > 2>&1 at the end of all exec commands, so I'm hoping there is a better > way... while I disagree as far as portability, dependability and savour are concerned

Re: [Puppet Users] String matching and case-insensitivity

2012-02-22 Thread Felix Frank
Hi, interesting discovery. Of course, you could probably have an easier workaround using regular expressions. Still, it looks like this should be reported as a possible bug. Cheers, Felix On 02/15/2012 10:46 PM, Mohamed Lrhazi wrote: > When I run a puppet apply against this: > > notice("operat

Re: [Puppet Users] uncaught exception of type NoMethodError: undefined method `<=>'

2012-02-22 Thread Felix Frank
Hi, you've probably seen this, but there are issues in 2.7.10 such as http://projects.puppetlabs.com/issues/show/12310 http://projects.puppetlabs.com/issues/show/12269 http://projects.puppetlabs.com/issues/show/12269 http://projects.puppetlabs.com/issues/show/12588 I haven't checked whether eith

Re: [Puppet Users] Re: inherits from parametrized class

2012-02-22 Thread Felix Frank
Hi all, On 02/17/2012 09:44 PM, jcbollinger wrote: >> ... >> >> service >> { >> "php-fpm": >> require => [ File["/usr/local/etc/php-fpm.conf"], Package["php52"], >> File["/var/log/php-fpm/"], File["/etc/init.d/php-fpm"] ]; >> >> } >> >> and in derived class i want for standalone(linux:

Re: [Puppet Users] Best way to test changes?

2012-02-23 Thread Felix Frank
Hi, On 02/23/2012 01:27 PM, Gonzalo Servat wrote: > On Thu, Feb 23, 2012 at 11:09 PM, jimbob palmer > wrote: > > I'm worried about making bad changes to a module which will impact > lots of hosts. > > How can I avoid this? > > Ideally I'd like eve

Re: [Puppet Users] Re: "SSLv3 read server certificate B: certificate verify failed." -- Not time related

2012-02-23 Thread Felix Frank
Hi, On 02/22/2012 08:58 PM, Jon Davis wrote: > How can I track down where the issue for this is? it's always troublesome, but the only clean approach I'm aware of is "openssl s_client" and "openssl x509" to carefully compare what the master is presenting when the agent connects to whatever the ag

Re: [Puppet Users] hiera for defines?

2012-02-23 Thread Felix Frank
Hi, On 02/23/2012 02:21 PM, Markus Falb wrote: > Does it make sense to you what I am trying to > do, actually? no. Not at that degree of obfuscation, at least ;-) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send emai

Re: [Puppet Users] persistent facts

2012-03-20 Thread Felix Frank
Hi, On 02/28/2012 04:58 PM, Craig White wrote: > Object: to get a custom fact that lets me know the last time a Ubuntu system > had run 'upgrade' (ie apt-get upgrade or aptitude [safe-|full-]upgrade) > > One-liner: (will probably still need some adaptation but so far, I am doing) > tac /var/log/

Re: [Puppet Users] Using puppet cert generate on a client -- why doesn't this work?

2012-03-20 Thread Felix Frank
Hi, i cannot really get my head around your scheme, but it strikes me as potentially very dangerous. You expect puppet to handle the very certificates that are the basis for puppet operation? I get a vague sense of a chicken-egg problem. I think that all your certification needs should be handle

Re: [Puppet Users] Approach question on managing services

2012-03-29 Thread Felix Frank
Hi, I avoid ensure => running. Puppet is not an ideal tool for making sure a crash-prone daemon is getting restarted. Instead, puppet will make sure run levels are populated with the essentials. System monitoring (nagios etc.) informs of outages. Cheers, Felix On 03/22/2012 05:00 PM, Kenneth L

Re: [Puppet Users] Re: service restart upon notify

2012-04-13 Thread Frank Schaefer
Works like a charm now: include mysoftware::service and notify => Class["mysoftware::service"], Thanks! 2012/4/13 Sans > "notify => Class["mysoftware::service"]" should work without any > problem. Did you remember to include it beforehand? > >include mysoftware::service > > > "notify => E

[Puppet Users] Compiling augeas on AIX?

2012-05-24 Thread Frank Ederveen
or Solaris, even though I have not tried as hard there yet. If we don't have ruby-augeas on all 3 platforms (RedHat, AIX, Solaris) means that we can't use it in our modules. Cross-platform is quite important. Thanks, Frank -- You received this message because you are subscribed

Re: [Puppet Users] how to avoid ssh_authorized_key duplicates ?

2012-06-07 Thread Felix Frank
Hi, On 06/05/2012 05:17 PM, eduardo wrote: > First one is about how to avoid duplicate lines in authorized_keys, > having something like : > > define add_ssh_key( $key, $type ) { > > $username = $title > > ssh_authorized_key{ "${username}_${key}": >

Re: [Puppet Users] Problem with Virtual Resource

2012-06-07 Thread Felix Frank
On 06/07/2012 01:26 AM, Worker Bee wrote: > > I am testing creating virtual resources and having no luck at all. I am > not getting any errors when I execute puppet agent --test but, the user > account is never getting created. I would be so grateful if anyone > would be kind enough to offer som

Re: [Puppet Users] Duplicate package resource solutions?

2012-06-07 Thread Felix Frank
Hi, On 06/07/2012 06:13 AM, Ryan Bowlby wrote: > What would be the downside of creating a module called common-packages > which would become the central location for simple packages (no > daemon/service, etc)? Declare all the packages within the > common-packages class as virtual resources. Then e

Re: [Puppet Users] Problem with Virtual Resource

2012-06-07 Thread Felix Frank
On 06/07/2012 10:18 AM, Walter Heck wrote: > The other option is to move the include virtual to inside the > user::developers class. > > On Thu, Jun 7, 2012 at 9:11 AM, Walter Heck wrote: >> > We usually choose to inherit the developers class from the virtual >> > class, have you tried that appro

Re: [Puppet Users] Conditional based on other module

2012-06-07 Thread Felix Frank
On 06/07/2012 11:30 AM, Andy Taylor wrote: > 1. Have Varnish/non-Varnish systems separated by environment and have > a conditional in the module which changes the listen port dependent on > the environment of the node; What do you mean by "environment"? I think this should be a hiera based approac

Re: [Puppet Users] Dealing with multiple gid changes

2012-06-07 Thread Felix Frank
Hi, On 06/07/2012 03:29 PM, Jistan Idiot wrote: > Finally, I don't think this is going to work for the next thing I want > to tackle. I have a group of websevers that I'm going to start managing > with puppet. The uids and gids are not consistent across them. I'm > going to want puppet to fix t

Re: [Puppet Users] types and even class not being found sometimes.

2012-06-08 Thread Felix Frank
Hi, On 06/08/2012 12:38 AM, Steve Traylen wrote: > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Cannot find definition Lemon::Metric at > /etc/puppet/environments/master/modules/lemon/manifests/standard.pp:53 > on node lxfssm4308.cern.ch I get the pretty often duri

Re: [Puppet Users] Re: how to avoid ssh_authorized_key duplicates ?

2012-06-08 Thread Felix Frank
Hi again, On 06/08/2012 02:26 AM, eduardo wrote: > To be more clear, I'm trying to allow the same key for diferents > users but also, tests are tell me that ssh_authorized_key > functionality always add keys without any previous check of authorized > file contents so If the key was there it's ins

Re: [Puppet Users] certname=hostname SSL errors

2012-06-08 Thread Felix Frank
Hi, On 06/08/2012 10:50 AM, Andrei-Florian Staicu wrote: > so I redeployed the > puppet.conf file, re-generated the certificates and signed them, and > removed the old certificates from the master. > > However, puppet agent --test works ok. are you running in agent mode (as opposed to cron)? Ha

Re: [Puppet Users] Re: Restart service on ensure running ; class dependecies

2012-06-08 Thread Felix Frank
Hi, On 06/08/2012 03:03 PM, jcbollinger wrote: > The 'before' is a Puppet metaparameter, so every > resource type provides it automatically; you would not need to write > code for it in your definition. sadly, this is only half true. Yes, you can specify before, requires etc. to all instances of

  1   2   3   4   5   6   7   8   9   10   >