Re: [Puppet Users] Avoiding duplicate definitions

2012-03-06 Thread Bruce Richardson
On Mon, Mar 05, 2012 at 11:27:46PM -0800, Thomas Sturm wrote: > Both solutions don't help when taking this git module from github, > because we'd have to change it, it would no longer be an atomic piece > of logic one can just take and use unchanged. Is there some kind of > best practice for this p

Re: [Puppet Users] Duplicate definition + parameterized classes + class scope

2012-03-06 Thread Bruce Richardson
On Tue, Mar 06, 2012 at 05:53:57AM -0800, chris_sny...@sra.com wrote: > I don't understand Puppet Language. How can you take object-oriented > constructs such as 'class' and 'inheritance' and then not allow things like > multiple instances of a class, albeit with differing parameters. Defined

Re: [Puppet Users] Re: Avoiding duplicate definitions

2012-03-06 Thread Bruce Richardson
On Tue, Mar 06, 2012 at 09:53:57AM -0800, jcbollinger wrote: > > If you decide to use such a wrapper anyway, then you should use it > absolutely everywhere, including updating all third-party modules you > employ. I think it's better, though, to just let the compilation > failures happen -- use t

Re: [Puppet Users] Can Puppet Windows version support system variables like "%HOMEDRIVE%"?

2012-03-14 Thread Bruce Richardson
On Tue, Mar 13, 2012 at 11:48:20PM -0700, Feifei Jia wrote: > > I'd like to know if Puppet Windows support Windows environment variables? Operating system environment variables are not directly accessible, no, although any that beging FACTER_ will be imported as facts (so that "%FACTER_EXAMPLE%"

Re: [Puppet Users] Does Node Inheritance work for people?

2011-08-05 Thread Bruce Richardson
On Fri, Aug 05, 2011 at 06:33:12AM -0700, Nigel Kersten wrote: > We have a bunch of problems people regularly run into with node inheritance, > and it's something we'd like to find a better solution for. > > Is anyone using node inheritance and happy with how it works? If so, can you > describe yo

Re: [Puppet Users] Re: Does Node Inheritance work for people?

2011-08-11 Thread Bruce Richardson
On Mon, Aug 08, 2011 at 06:25:20AM -0700, Alessandro Franceschi wrote: > NEVER include a class in the inheritance tree (well you can if you > don't redefine variables used in that class but still is not > necessary). > In a nodes inheritance layout BEFORE you set the variables and THEN > you includ

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Bruce Richardson
On Mon, Nov 28, 2011 at 02:22:51PM +, Dan White wrote: > As far as I can tell, the "replace" parameter is all or nothing. > > What I am looking for is something like the exec/onlyif parameter that I can > use to conditionally replace a file. > > Any thoughts ? There is more than one way to

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Bruce Richardson
On Mon, Nov 28, 2011 at 03:01:14PM +, Dan White wrote: > > Thanks for responding. Nice tag line. > > OK, more details: > > In my users class, I want to be able to push out custom dot-files when the > user account is first created. > Unfortunately, if one sets user:managehome => true, the d

Re: [Puppet Users] is puppet the right tool for me?

2010-04-07 Thread Bruce Richardson
On Wed, Apr 07, 2010 at 12:10:07PM -0700, Dmitry V'yal wrote: > Hello, > > I'm currently administering a vps running a dozen of php-sites. I use > several scripts for deploying new sites, updating them, taking the > backups and so on. All the system is quite fragile and error-prone. > I'm thinking

Re: [Puppet Users] How to push config from master ?

2010-04-07 Thread Bruce Richardson
On Mon, Apr 05, 2010 at 04:54:30PM +1000, Daniel Pittman wrote: > >>> thank you so much for the reply. i have bunch of webserver, i want to able > >>> be able run svn update to all the webserver from master. > > this is not what puppet specializes in. you can probably do it, but you will > almost

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Bruce Richardson
On Thu, Apr 08, 2010 at 11:31:18AM +0400, Dmitry V'yal wrote: > Also, currently we're planning to change the geographic location of vps > and to move from gentoo to ubuntu. Looks like a perfect time for big > changes. There's never a perfect time for big changes. Change one thing at a time wh

Re: [Puppet Users] Re: Puppet commands giving nothing but a stack trace

2010-04-09 Thread Bruce Richardson
On Fri, Apr 09, 2010 at 08:56:39AM -0400, Rob McBroom wrote: > > Bingo. Someone had set it to 128 for all users (without my knowledge). > I changed it to only affect the relevant users and Puppet fires right > up. Thanks. You're running Puppet and somebody changed the ulimit config on the box wit

Re: [Puppet Users] Puppet high-availability

2010-04-14 Thread Bruce Richardson
On Tue, Apr 13, 2010 at 07:57:25PM -0700, Scott Smith wrote: > On 4/13/10 3:26 PM, SyRenity wrote: >> Hi. >> >> I asked this question in past on this list, and now working to set it >> running. >> >> My idea is to have 2 Puppet servers, who are also the DNS servers. >> Each one would have itself as

Re: [Puppet Users] cucumber-puppet and environments

2010-09-14 Thread Bruce Richardson
On Tue, Sep 14, 2010 at 08:34:00AM -0400, Ryan Coleman wrote: > Hi Oliver, try: > > http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments I've never been fond of the way RoR treats environments (or, at least, the way RoR developers treat them). The thing I really don't like

Re: [Puppet Users] cucumber-puppet and environments

2010-09-16 Thread Bruce Richardson
On Wed, Sep 15, 2010 at 09:31:19PM +0200, Alan Barrett wrote: > I use an external node classifier purely for the purpose of setting > the environment (and a parameter called $error_message or something, > but not any classes). There are minor problems when the master and > client disagree, but so

Re: [Puppet Users] Users with puppet

2010-09-22 Thread Bruce Richardson
On Tue, Sep 21, 2010 at 09:43:26AM +1000, Daniel Pittman wrote: > > I read up on user and group creation and ssh key distribution. The only > > thing i cant wrap my head around is how i should handle passwords. > > I would strongly advise that you deploy an LDAP backed PAM and NSS system, > rather

Re: [Puppet Users] Best practice using puppet and SVN in a production environment

2010-09-26 Thread Bruce Richardson
On Sat, Sep 25, 2010 at 07:34:19AM -0700, Christian wrote: > Hello community, > > As you all know a good infrastructure deployment in production state > should not involve much technical infrastructure staff anymore. > Routine work should be able to perform by the users themselfs who > should not

Re: [Puppet Users] exec and subsribe

2010-09-26 Thread Bruce Richardson
On Fri, Sep 24, 2010 at 01:32:15PM -0700, 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 ? Yes - unless some other condition prevents it (e.g. a failed dependency). > or does it depend whatever t

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-26 Thread Bruce Richardson
On Thu, Sep 23, 2010 at 08:31:26PM +0100, R.I.Pienaar wrote: > > I have two sites with a small number of machines at each. Each site is > > functionally identical. I would like to set up a bunch of templates > > for the various services at each site, with a handful of variables that > > indicat

Re: [Puppet Users] Variables with class inheritance and templates

2010-09-28 Thread Bruce Richardson
On Tue, Sep 28, 2010 at 09:01:25AM -0700, Darren Worrall wrote: > > Is this a bug, or a limitation of class inheritance? (ie, base classes > are evaluated completely, and subclasses are only allowed to modify > things after the fact?) > They're not classes, they shouldn't have been called classe

Re: [Puppet Users] Overwrite default settings in nodes using external nodes.

2010-09-29 Thread Bruce Richardson
On Wed, Sep 29, 2010 at 02:59:28PM +0200, Héctor Rivas Gándara wrote: > > Also, from my tests I checked that the parameters (please correct me if I am > wrong): > - Are stored in global scope: All classes has access to it. No. The parameters have "node" scope. Any class included within the nod

Re: [Puppet Users] mount type attempting remount when ensure => present

2010-10-01 Thread Bruce Richardson
On Thu, Sep 30, 2010 at 02:13:08PM -0400, Rob McBroom wrote: > > According to the documentation, that's how `ensure => present` is > supposed to work, though I can't imagine the use case for “put it in > fstab but make sure it's never mounted”. According to the online documentation (which is auto

Re: [Puppet Users] mount type attempting remount when ensure => present

2010-10-01 Thread Bruce Richardson
On Fri, Oct 01, 2010 at 08:55:34AM -0400, Rob McBroom wrote: > I've added a use case to the bug report. > > On Oct 1, 2010, at 4:30 AM, Bruce Richardson wrote: > > > According to the online documentation (which is autogenerated), "Set to > > present to add to

[Puppet Users] Puppet truth, nil and templates

2010-10-05 Thread Bruce Richardson
Does Puppet have any genuine concept of truth and nil that survives the interface with Ruby? has_variable? only returns false if a variable has never been assigned a value at all in the enclosing scope; there is no way to assign undef to a regular variable (as opposed to a resource parameter) with

Re: [Puppet Users] Puppetd attempting to install packages that aren't required

2010-10-05 Thread Bruce Richardson
On Tue, Oct 05, 2010 at 12:16:28AM -0700, ncantor wrote: > In order to get the package to only install on the systems that I > wanted to have it, I had to move it from a general package definition > to be inside a class. Is this normal behaviour? Yes. If you do want packages to be visible at the

[Puppet Users] tidy resource logging conflict

2010-10-06 Thread Bruce Richardson
One of the nice features of using the Tidy resource to prune a directory hierarchy in puppet is that any File resources you create within that tree will not be touched. However, the tidy resource *will* log that it is tidying them. This is not good. I like puppet to log any changes it makes so th

Re: [Puppet Users] puppetd memory consumption

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 03:18:44PM +0200, Peter Meier wrote: > > about how many files are we talking under the hierarchy of the recurse > file resources? and how big are they? And which filesystem type. Some are much more painful to walk than others. -- Bruce What would Edward Woodward do?

Re: [Puppet Users] Re: puppet push mode

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 03:19:27PM +0200, Peter Meier wrote: > On 10/06/2010 03:17 PM, Mikel King wrote: > > I am in a similar but different situation. I need to have puppet check > > in only upon boot up and then shutdown until next boot. Does anyone > > know a puppet way of handling this our shou

Re: [Puppet Users] tidy resource logging conflict

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 02:06:29PM +0100, Bruce Richardson wrote: > I think it would be reasonable of puppet not to log the tidying of files > which are not actually tidied. Do people agree? In which case I'll > file a bug report. Or have I missed a clean way of resolving this?

Re: [Puppet Users] tidy resource logging conflict

2010-10-06 Thread Bruce Richardson
On Wed, Oct 06, 2010 at 09:18:07AM -0700, Patrick wrote: > > > I didn't quite understand what you said. Here's an example manifest that demonstrates both problems: file { '/tmp/shared': ensure => 'directory' } file { '/tmp/shared/notice': ensure => 'file' } file { '/tmp/shared/verbose':

Re: [Puppet Users] serialized or limited parallelism

2010-10-11 Thread Bruce Richardson
On Mon, Oct 11, 2010 at 02:09:54PM -0700, Philip Brown wrote: > > Example: > Lets say that I want all machines to run some sort of job, that > updates a central database with information about the state of each > puppet client. > > Lets also say, that I have 1000 machines, so if all of them decid

Re: [Puppet Users] Re: serialized or limited parallelism

2010-10-12 Thread Bruce Richardson
On Mon, Oct 11, 2010 at 06:44:20PM -0700, Philip Brown wrote: > BUUT... maybe I am thinking about this all wrong after all. Possibly > the better way is to give facter a custom set of facts... and then > since facter output gets automatically stored on the master when > puppet runs on the client I

Re: [Puppet Users] Prefixing syslog messages with client names

2010-10-12 Thread Bruce Richardson
On Tue, Oct 12, 2010 at 02:27:51PM +0200, Kenneth Holter wrote: > Hi. > > > The puppetmaster is set up to log to syslog, which is working fine. The > downside is that most of the log entries created by the puppetmaster does > not indicate which puppet client that message if from. So basically I

Re: [Puppet Users] Re: serialized or limited parallelism

2010-10-12 Thread Bruce Richardson
On Tue, Oct 12, 2010 at 08:48:30AM -0700, Philip Brown wrote: > > Is it crucial that the data be current at the beginning any puppet run? > > Is the data itself used in configuring the host, or is it just the > > presence of current data that has an effect on how/when puppet runs? > > > > Weeelll.

Re: [Puppet Users] Variable of define is used more than once

2010-10-13 Thread Bruce Richardson
On Wed, Oct 13, 2010 at 11:07:27AM -0400, Disconnect wrote: > > Note that I didn't reply to the OP, I replied to Nigel's sarcasm. > You could take this up with one of the Debian puppet package maintainers. Oh, but then you already have... -- Bruce I unfortunately do not know how to turn chee

Re: [Puppet Users] Variable of define is used more than once

2010-10-13 Thread Bruce Richardson
On Wed, Oct 13, 2010 at 07:05:29PM +0200, Dennis Hoppe wrote: > > node "rumpel" inherits "default" { > include apticron > include ldap::slave > include metche > include puppet::master > include rsyslog::master > } > > node "samson" inherits "default" { > includ

Re: [Puppet Users] Problems with Solaris 10 & adduser

2010-10-13 Thread Bruce Richardson
On Tue, Oct 12, 2010 at 07:59:40AM -0700, nickt wrote: > > err: /Stage[main]/User::Virtual/User[user1]/ensure: change from absent > to present failed: Could not create user user1: Execution of '/usr/ > sbin/useradd -s /bin/bash -c "Full Name" -d /u/user1 -m user1 returned > 1:" What happens if yo

Re: [Puppet Users] Variable of define is used more than once

2010-10-13 Thread Bruce Richardson
On Wed, Oct 13, 2010 at 09:20:18PM +0200, Dennis Hoppe wrote: > > This is almost certainly because of where you have included the monit > > class, which is not visible in the modules you have attached here. I > > could speculate about that, but I don't know how you've written the rest > > of your

Re: [Puppet Users] Puppet client log events, centralized?

2010-10-13 Thread Bruce Richardson
On Wed, Oct 13, 2010 at 04:09:34PM -0700, Forrie wrote: > I've noticed that events for puppet client are logged locally (I'm > just starting out with puppet). Is there a way to have these events > sent to a central parser so they might be easily parsed/sorted/acted- > upon? > > I probably missed

Re: [Puppet Users] puppet node names

2010-10-14 Thread Bruce Richardson
On Thu, Oct 14, 2010 at 11:13:00PM +0100, john maclean wrote: > What gives with the hostname "config" extension and where is this set? > > > puppetca --list --all > + pclient1.config > + pclient2 > + puppet.config > That looks to me as if there is something odd in puppet.conf on your nodes. I

Re: [Puppet Users] how can i determinate from one class if another class applied?

2010-10-15 Thread Bruce Richardson
On Fri, Oct 15, 2010 at 12:40:57AM -0700, walexey wrote: > Hello everybody! > How can i determinate from one class if another class applied to the > this node? Use the defined() function. -- Bruce What would Edward Woodward do? -- You received this message because you are subscribed to the Go

Re: [Puppet Users] Re: how can i determinate from one class if another class applied?

2010-10-15 Thread Bruce Richardson
On Fri, Oct 15, 2010 at 01:04:29AM -0700, luke.bigum wrote: > Someone correct me if I am wrong, but defined() is useful for checking > if types or classes exist ("are known about") but does not check > whether a class is DECLARED - there's a difference. Note the > documentation sentence "This is us

Re: [Puppet Users] stages examples/advices

2010-10-15 Thread Bruce Richardson
On Fri, Oct 15, 2010 at 12:19:36PM +0200, Arnau Bria wrote: > 1.-) Stage vs require Class. May we say that stages are groups of class > requires? So a simple/basic example: > > class A { > require class B > } > > class B{ > require class C > } > > Is like defining : > > Stage[pre] -> Stage[main

Re: [Puppet Users] Re: how can i determinate from one class if another class applied?

2010-10-15 Thread Bruce Richardson
On Fri, Oct 15, 2010 at 07:06:52AM -0700, walexey wrote: > i can't imaging something better than add > >if tagged(winbind) { > $winbind = 'winbind' > } else { > $winbind = '' > } > in ldap-client class > > and add > passwd: files <%= win

Re: [Puppet Users] Negate or uninclude a class

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 02:19:38AM -0700, luke.bigum wrote: > Hi guys, > > Is there any functionality to negate or uninclude a class so as to > stop it's resources being declared? I'm thinking along the lines of > having some classes included by default, but in very select > circumstances to not i

Re: [Puppet Users] Re: Negate or uninclude a class

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 07:20:10AM -0700, jcbollinger wrote: > > On Oct 18, 4:38 am, Bruce Richardson wrote: > > No, you can't uninclude a class.   > > Right. > > > > Is the only way to do this to inherit the base class and override all > > > it

Re: [Puppet Users] Puppet Application Server Deployment

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 01:19:41AM -0700, ajax wrote: > Hello all, > > I wanted to know can i deploy Application Severs like JOnAS (java) > using Puppet from the server. Absolutely, you can. Puppet can deploy it as easily as any other applicaton. Where things become interesting is when you have

Re: [Puppet Users] setting type defaults in some classes

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 10:58:56PM +0200, Arnau Bria wrote: > Hi all, > > I'm wondering what puppet does if I define two diff type defaults (like > file mode, owner) in two different classes. I'm trying to figure it out > by running puppet and watching some file perms, but I see no changes. If yo

Re: [Puppet Users] setting type defaults in some classes

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 11:54:49PM +0200, Arnau Bria wrote: > My fear was that declaring File description in test1 could > change/overwrite general File description. In other words, > only one default possible. Resource defaults respect traditional puppet scope rules. Resource collections, on t

Re: [Puppet Users] setting type defaults in some classes

2010-10-19 Thread Bruce Richardson
On Tue, Oct 19, 2010 at 11:32:26AM +0200, Arnau Bria wrote: > I don't remember from where I took the idea... but seems that I chose > wrong place :-) What do you recommend me? any doc to follow? Unfortunately, I don't think there is great documentation out there; the core development team is too b

Re: [Puppet Users] Re: Negate or uninclude a class

2010-10-19 Thread Bruce Richardson
On Tue, Oct 19, 2010 at 01:36:25PM +0200, Felix Frank wrote: > > Subclasses that effectively disable a class are a sound concept. Subclasses which disable a resource are a sound concept; subclasses which attempt to negate a claass present many problems, some of which I have described, none of whi

Re: [Puppet Users] Re: Negate or uninclude a class

2010-10-19 Thread Bruce Richardson
On Tue, Oct 19, 2010 at 09:00:16AM -0700, jcbollinger wrote: > The subclass approach definitely does not override the superclass to > do nothing. Much to the contrary, it overrides the superclass so that > together (whether the superclass is directly included or not) they > ensure the correct conf

[Puppet Users] nagios_service types and "name"

2010-10-20 Thread Bruce Richardson
It seems that the nagios_service type will not write out the "name" property of nagios service objects. I had thought this was an oversight or a bug, till I saw this thread: http://www.mail-archive.com/puppet-b...@googlegroups.com/msg10387.html which seems to imply that this is a deliberate "fea

Re: [Puppet Users] nagios_service types and "name"

2010-10-20 Thread Bruce Richardson
On Wed, Oct 20, 2010 at 05:16:39PM +0100, Bruce Richardson wrote: > desired behaviour, why does the nagios_service type have "use" and > "register" parameters, because they are useless without the ability to > attach names to services in the generated nagios

Re: [Puppet Users] nagios_service types and "name"

2010-10-21 Thread Bruce Richardson
On Wed, Oct 20, 2010 at 05:16:39PM +0100, Bruce Richardson wrote: > It seems that the nagios_service type will not write out the "name" > property of nagios service objects. I had thought this was an oversight > or a bug, till I saw this thread: > > http://www.

Re: [Puppet Users] Moving the puppet master

2010-10-29 Thread Bruce Richardson
On Fri, Oct 29, 2010 at 08:48:22AM -0700, Dan Bode wrote: > On Thu, Oct 28, 2010 at 5:41 PM, Jay Adkisson wrote: > > > Hey all, > > > > I need to move my puppet master to a different host with a different > > hostname. Is there a fancy way to do this that doesn't involve manually > > going to ea

Re: [Puppet Users] require service started at another node

2010-10-29 Thread Bruce Richardson
On Fri, Oct 29, 2010 at 04:56:34AM -0700, Leonko wrote: > Hello, > Anybody now how make with puppet dependence on other service on > another node? > > like : require => Service[dbnode:postgresql] > I need ensure that the db is running on another node before start my > appserver. You can't do thi

Re: [Puppet Users] Re: require service started at another node

2010-11-01 Thread Bruce Richardson
On Sun, Oct 31, 2010 at 11:44:51PM -0700, Leonko wrote: > Hello, Bruce. At now we have hard dependence between file storage, db > server and appserver. If it chain broken at any phase we get the > message from zabbix. But that's not a problem. Zabbix is monitoring software: it *should* tell you w

Re: [Puppet Users] Re: require service started at another node

2010-11-01 Thread Bruce Richardson
> >  2.  Make your application server tolerant of database downtime (that > > is, have the applications generate sensible errors while the db is down > > and recover when it is up, rather than just crash and require an > > application server restart). > > If appserver (java app server like jboss)

Re: [Puppet Users] Help with LDAP, Users, and Puppet..

2010-11-01 Thread Bruce Richardson
On Mon, Nov 01, 2010 at 02:10:23PM -0700, Matt Wise wrote: > > On the systems we use 'files db ldap' as our nsswitch.conf priority, > and 'db' is a local copy of the ldap data using 'nsscache' on a > regular basis. Looking up a user should never fail and it doesnt > seem to when we log in and

Re: [Puppet Users] puppetd misbehaving on a debian based box.

2010-11-01 Thread Bruce Richardson
On Mon, Nov 01, 2010 at 09:38:53PM -0400, Peter Berghold wrote: > Deleted and re-installed puppetd and things are working again... that was > wierd. > > Still not sure what happened. Removing the package may have removed a state file that was causing a problem. If it happens again, try taking a

Re: [Puppet Users] Help with LDAP, Users, and Puppet..

2010-11-02 Thread Bruce Richardson
On Mon, Nov 01, 2010 at 08:27:30PM -0700, Matt Wise wrote: > nsscache was an attempt at solving the issue... even without nscd > installed, or nsscache, the issue happens extremely frequently. so far > the only fix i have is to do everything with hard-coded GID/UIDs ... Is it only Puppet which ha

Re: [Puppet Users] Help with LDAP, Users, and Puppet..

2010-11-02 Thread Bruce Richardson
On Tue, Nov 02, 2010 at 09:35:24AM +, Michael Gliwinski wrote: > On Tuesday 02 Nov 2010 01:53:34 Bruce Richardson wrote: > > nsscache is probably at fault. Try removing it from nsswitch on > > a machine which has shown this problem and then see how that affects > > th

Re: [Puppet Users] Prevent users from creating new accounts

2010-11-05 Thread Bruce Richardson
On Thu, Nov 04, 2010 at 10:40:02AM +0100, Martin Alfke wrote: > > Hi, > > I would assume that you can define a resource default: > > User { ensure => absent } > > and afterwards define the users you would like to be present on your system. No, that would only establish the default for any user

Re: [Puppet Users] Re: Prevent users from creating new accounts

2010-11-05 Thread Bruce Richardson
On Thu, Nov 04, 2010 at 03:11:43AM -0700, hywl51 wrote: > Yes, you said it. Unfortunately, we have some users running as root > privilege on server, because they cann't work without it. Are they admins or developers? If developers, then there is always a way round - sudo, fakeroot, giving them v

Re: [Puppet Users] selectors in type defaults

2010-11-09 Thread Bruce Richardson
On Tue, Nov 09, 2010 at 10:46:07AM +0100, Arnau Bria wrote: > Hi all, > > I'd like to define a selecto when defining "user" type default: > > User { > ensure => present, > provider=> useradd, > managehome => $name ? {

Re: [Puppet Users] using puppet to restore root access to a box

2010-11-11 Thread Bruce Richardson
On Thu, Nov 11, 2010 at 11:52:26AM -0800, birdsong wrote: > > I'm guessing that I need to somehow serve up a catalog in a non-staged > way, but I have no idea how to do that. Any tips? Should I just > install a 0.24.x master temporarily? If coyping is the problem, don't copy the file; write it.

Re: [Puppet Users] using puppet to restore root access to a box

2010-11-11 Thread Bruce Richardson
On Thu, Nov 11, 2010 at 01:46:50PM -0800, David Birdsong wrote: > problem--though this appears to remove one of the failed steps. it's > this line that i was thinking indicates the outer most scope of the > problem: > Nov 11 19:38:01 ip- puppet-master[3885]: Stages are not > supported by 0.24.x cl

Re: [Puppet Users] syntax for class names

2010-11-11 Thread Bruce Richardson
On Thu, Nov 11, 2010 at 12:50:02PM -0800, Eric Snow wrote: > How do you dynamically create classes? You don't. 2.6 has parameterized classes but that's not quite what you mean. > > For instance, I have a bunch of users to make. I have all their > usernames. Each is the same as the others exce

Re: [Puppet Users] syntax for class names

2010-11-11 Thread Bruce Richardson
On Fri, Nov 12, 2010 at 09:32:16AM +1100, Daniel Pittman wrote: > Footnotes: > [1] Like the English language, puppet isn't that pure, and you can work > around this in a whole bunch of ways. Pure-ruby manifests in 2.6 might > be a way to do that, for example. Oh, I knew somebody was g

Re: [Puppet Users] pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Sun, Jan 09, 2011 at 10:42:19AM -0800, trey85stang wrote: > > 192.168.1.20host1.domain.com > 192.168.1.30host2.domain.com > 192.168.1.250 unique_host.domain.com > > Is there a way to manage this with puppet? What I would like to do is > be able to check that those 3 entries exist...

Re: [Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Mon, Jan 10, 2011 at 07:56:49AM -0800, trey85stang wrote: > Thanks for the reply, > > It looks like I would need an entry for every host if I were to take > that route? My environment would require 6000*3 entries... That > doesn't seem logical. > > Am I understanding this correctly? No, you

Re: [Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Mon, Jan 10, 2011 at 08:11:02AM -0800, trey85stang wrote: > Upon further reading, it looks like what I want would be better > accomplished with using stored configs? No. That's for something else. Since you have 6000 nodes in your environment, you probably want to look at External Nodes, whi

Re: [Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Mon, Jan 10, 2011 at 11:19:03AM -0800, trey85stang wrote: > Bruce, I think what you are saying is clicking now. > > Now does puppet allow any variable substitution? I do urge you to stop thinking in terms of scripts. It doesn't map well onto the way that Puppet works. If you mean "How do I

Re: [Puppet Users] Differences between puppet and puppetd

2011-01-11 Thread Bruce Richardson
On Tue, Jan 11, 2011 at 02:36:42PM +, Martin Harrigan wrote: > Hi all, > > I am using Puppet to execute an Expect script (http://expect.sourceforge.net) > on a client. The Puppet recipe, test.pp, is: > > exec { '/root/test.exp': > command => '/root/test.exp', > logoutput => true > } > >

Re: [Puppet Users] Puppet Clients requesting classes

2011-01-11 Thread Bruce Richardson
On Tue, Jan 11, 2011 at 02:09:27AM -0800, Exinferis wrote: > But what we really want to achieve is not to register every node in > our master configuration (hostnames can totally vary so no wildcard > matching), but to give the nodes the possibility to request a specific > class or to report themse

Re: [Puppet Users] Fwd: [Puppet-dev] Proposal: move parameter/property validation from master to agent

2011-01-11 Thread Bruce Richardson
On Tue, Jan 11, 2011 at 10:37:52AM -0800, Nigel Kersten wrote: > This is a reasonably important thread that I think is of interest to > the -users list as well as -dev. I subscribed to puppet-dev a while back and have never seen a single message from it. Assumed it was a quiet list ;) Tried resu

Re: [Puppet Users] Puppet Clients requesting classes

2011-01-11 Thread Bruce Richardson
On Tue, Jan 11, 2011 at 09:05:43AM -0800, Nigel Kersten wrote: > > I disagree that this approach is fundamentally wrong, but it's not > always appropriate. I'll concede I'm being a little over-emphatic, but the OP's situation didn't read to me as if it had anything to justify that approach. And

Re: [Puppet Users] Re: Dependency resolution for packages

2011-01-12 Thread Bruce Richardson
On Wed, Jan 12, 2011 at 03:43:42AM -0800, Sven Sporer wrote: > > This makes no sense to me that the last doesn't always work. > >  Someone might come up with an answer, but logs with "--verbose > > --debug" would probably help.  Even if you sanitize it with "grep > > vim" it would probably help a l

Re: [Puppet Users] Re: Set client environment on master

2011-01-18 Thread Bruce Richardson
On Wed, Jan 19, 2011 at 05:10:56PM +1100, John Warburton wrote: > > I actually want to be able to have it the other way around - the node > classifier sets the default environment, but my client can override if it so > wishes - https://projects.puppetlabs.com/issues/3910 *Looks at discussion* Ouc

Re: [Puppet Users] Re: Set client environment on master

2011-01-19 Thread Bruce Richardson
On Thu, Jan 20, 2011 at 10:04:37AM +1100, John Warburton wrote: > On 19 January 2011 17:41, Bruce Richardson wrote: > > > On Wed, Jan 19, 2011 at 05:10:56PM +1100, John Warburton wrote: > > > wishes - https://projects.puppetlabs.com/issues/3910 > > > > *Looks at

Re: [Puppet Users] Stopping two services at once

2011-05-16 Thread Bruce Richardson
On Mon, May 16, 2011 at 12:16:53PM +0100, Jonathan Gazeley wrote: > Is there a way to stop and disable two services in one declaration? > Currently I have this: > > # Stop sendmail > service { "sendmail": > ensure => stopped, > enable => false, > } > > # Stop exim > service { "exim":

Re: [Puppet Users] Single and Double Quotes

2011-06-05 Thread Bruce Richardson
On Sun, Jun 05, 2011 at 09:36:59AM -0700, Douglas Garstang wrote: > Hmmm Ok then. I'll change my question to, why doesn't the style > guide say to stick with double quotes for all strings and keep it > consistent? Most languages honour the convention that variables are not expanded within

[Puppet Users] Re: File resource type: critical chmod security issue

2009-07-27 Thread Bruce Richardson
On Mon, Jul 27, 2009 at 11:01:16PM +0200, Peter Meier wrote: > > Is there a consistent culture or policy in the Puppet community to > > override explicit security configurations? It must be explicitly > > avoided in an audit, if that's the case. If there is no policy, > > perhaps we should defin

[Puppet Users] Re: File resource type: critical chmod security issue

2009-07-28 Thread Bruce Richardson
On Tue, Jul 28, 2009 at 10:27:57AM +0200, Peter Meier wrote: > For sure you have to manage the content of each subdirectory separately > as they're managed on their own. I'm sorry, but that fails as far as I'm concerned. I shouldn't be having to specify common behaviour multiple times. -- Bru

[Puppet Users] Re: File resource type: critical chmod security issue

2009-07-28 Thread Bruce Richardson
On Tue, Jul 28, 2009 at 10:47:07AM +0200, Peter Meier wrote: > > Hi > > >> For sure you have to manage the content of each subdirectory separately > >> as they're managed on their own. > > > > I'm sorry, but that fails as far as I'm concerned. I shouldn't be > > having to specify common behavio

[Puppet Users] Re: Notifying a service when exported resources go away

2009-07-28 Thread Bruce Richardson
On Tue, Jul 28, 2009 at 11:19:07AM -0400, Eric Gerlach wrote: > > But if I do this, it still doesn't notify the nagios service, so it will > continue to monitor them (and complain to me that they're gone) until I > restart > it. So though that's a nice way to purge the DB, it doesn't really hel

Re: [Puppet Users] cfengine like groups

2010-02-02 Thread Bruce Richardson
On Mon, Feb 01, 2010 at 05:30:47PM -0600, Anchi Zhang wrote: > Greetings, > > CFEngine 2 (not sure about 3) allows groups definitions such as > > groups: >ntp = { ntpserv1 ntpserv2 } > > and the ability to negate such as > > links: > !ntp:: > /etc/inet/ntp.conf -> /e

Re: [Puppet Users] managing secondary groups

2010-03-15 Thread Bruce Richardson
On Mon, Mar 15, 2010 at 09:31:54AM +, Dick Davies wrote: > Offhand, does anyone know the difference between the 2 > constructs below to manage secondary groups ? > This is the 'groupadd' provider I think (CentOS). > Think I'd prefer the former if the result is the same The result will be the

[Puppet Users] Environments issues

2009-02-13 Thread Bruce Richardson
http://reductivelabs.com/trac/puppet/ticket/793 I found the above bug while researching puppet environments. I would like to use environments and it occured to me that I could sidestep that bug by simply adding confdir=/etc/puppet/$environment to /etc/puppet/puppet.conf. However, I as

[Puppet Users] Re: Environments issues

2009-02-17 Thread Bruce Richardson
On Fri, Feb 13, 2009 at 05:14:22PM -0600, Luke Kanies wrote: > > to /etc/puppet/puppet.conf. However, I assume that would cause me a > > little bit of grief in other ways. If I run puppetd with the > > parameter > > --environment=development but don't also specify the config file from > > the

[Puppet Users] Re: Environments issues

2009-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2009 at 02:02:30PM +, Bruce Richardson wrote: > that this doesn't happen for all of those paths. So I thought that > simply changing $confdir to reflect the environment would sidestep this, > because all of those paths *will* be changed if I globally change >

[Puppet Users] Re: Are version 0.24.1 and 0.24.4 good enough?

2009-02-19 Thread Bruce Richardson
On Sat, Feb 14, 2009 at 04:36:22PM -0500, Thom May wrote: > > On Sat, 2009-02-07 at 12:15 -0600, Kyle Cordes wrote: > >> I'm looking to install Puppet on a pile of Ubuntu 7.10 and 8.04 > >> machines; apt-get in the box will get me versions 0.24.1 and 0.24.4 > > > > You might want to prod the Ubunt

[Puppet Users] Re: Are version 0.24.1 and 0.24.4 good enough?

2009-02-19 Thread Bruce Richardson
On Thu, Feb 19, 2009 at 05:28:33PM +0100, Thomas Bellman wrote: > > Kyle Cordes wrote: > > > At the risk of being too far offtopic here on the Puppet list: I > > wonder if there are, or will be, any wide-use distributions that work > > differently, that update incrementally rather than a whole "

[Puppet Users] Access to config settings in manifests

2009-02-20 Thread Bruce Richardson
Is there currently a way of accessing arbitrary puppet configuration settings from manifests? A function or a virtual class (as in PuppetConf('plugindest') or $puppet::plugindest. I'm guessing not, but that writing a function to do this wouldn't be hard (in which case I'll go off and do it). --

[Puppet Users] Re: Puppet's Search function

2009-02-23 Thread Bruce Richardson
On Mon, Feb 23, 2009 at 09:29:53AM -0800, Robb Wagoner wrote: > I would like to know: > a) is my understanding about the purpose of this function incorrect? > b) the recommended way to accomplish making variables defined in classes > available to other classes, dynamically (see below as an example

[Puppet Users] Re: Puppet's Search function

2009-02-24 Thread Bruce Richardson
On Mon, Feb 23, 2009 at 06:56:05PM +0100, Peter Meier wrote: > > would be nice if you could add this documentation to the wiki, > because... eh it's a wiki! The functions reference page is autogenerated. What is the source, if I am to update it? -- Bruce What would Edward Woodward do? --~--

[Puppet Users] Re: Puppet's Search function

2009-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2009 at 09:14:18PM +1100, James Turnbull wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bruce Richardson wrote: > > On Mon, Feb 23, 2009 at 06:56:05PM +0100, Peter Meier wrote: > >> would be nice if you could add this documentation t

[Puppet Users] Re: Puppet's Search function

2009-02-24 Thread Bruce Richardson
On Tue, Feb 24, 2009 at 11:26:53AM +0100, Peter Meier wrote: > > Hi > > >> would be nice if you could add this documentation to the wiki, > >> because... eh it's a wiki! > > > > The functions reference page is autogenerated. What is the source, if I > > am to update it? > > the code. > > How

[Puppet Users] Re: service top parameter seems to be ignored

2009-02-25 Thread Bruce Richardson
On Wed, Feb 25, 2009 at 12:52:29PM +0100, Vincent Louviaux wrote: > Hello, > > I am trying to disable a process , but the stop parameter seems to be > ignored > from the output of puppetd -tv : > .. > err: /:main/sastools/Service[cfexecd]/ensure: change from running to stopped > failed: Execution

  1   2   >