Re: [Puppet Users] more on classes and external files

2010-07-06 Thread Michael Gliwinski
nifests/init.pp:2 > > So my question is, how do I change things in the 4 files above so that > this runs properly. > > Because of the auto-load stuff mentioned in Module standards, I've also > tried changing 'include packages::redis" to 'include redis', but th

Re: [Puppet Users] Puppet and Andorid

2010-08-10 Thread Michael Gliwinski
and run on routers, tablets, phones, etc. -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT Phone: 028 9034 3319 ** The information in this email is confi

Re: [Puppet Users] Puppet and Andorid

2010-08-11 Thread Michael Gliwinski
itional software and especially daemons. Sometimes it's easier to just operate on those devices via SSH channel with available OS tools. It's just when I do that it usually feels like there's a lot of duplication of functionality going on. -- Michael Gliwinski Henderson Group Inform

Re: [Puppet Users] Re: RFC: Make file content specification methods consistent.

2010-11-01 Thread Michael Gliwinski
template results would be both more expressive than > the old and, because of its reliance on a general-purpose function, > more broadly consistent than just with file() and File/source. +1 Just had the same thoughts :D -- Michael Gliwinski Henderson Group Information Services 9-11 Hi

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

2010-11-02 Thread Michael Gliwinski
'm having some issues with nss_ldap + nscd (on CentOS) as well and was actually going to look into nsscache as possible workaround. -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT P

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

2010-11-02 Thread Michael Gliwinski
On Tuesday 02 Nov 2010 12:44:38 Bruce Richardson wrote: > On Tue, Nov 02, 2010 at 09:35:24AM +0000, 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 m

Re: [Puppet Users] Re: RFC: Make file content specification methods consistent.

2010-11-02 Thread Michael Gliwinski
file('foo', 'bar') template('foo.erb', 'bar.erb') concatenation: concat(file('foo'), file('bar')) concat(template('foo.erb'), template('bar.erb')) that way you can even mix them ;) conca

Re: [Puppet Users] Re: RFC: Make file content specification methods consistent.

2010-11-03 Thread Michael Gliwinski
erhaps I didn't express myself well, but my main impetus was to make > the source/file/template data specifications all support the > find-first-existing and concatenation functionality in a sane and > consistent manner. Well, I suppose separating both concatenation and find-first-exi

[Puppet Users] Referencing resources by alias

2009-08-20 Thread Michael Gliwinski
g the resource for 'defined()' function call and yet it would work when referencing the resource in e.g. 'require' property of another resource? Any ideas? Thanks, Michael -- Michael Gl

[Puppet Users] Re: Running puppet on manifest modificattion

2009-08-24 Thread Michael Gliwinski
d, e.g. by specifying one of 'onlyif', 'unless', 'creates', etc. metaparams. Have a look at type reference here: http://reductivelabs.com/trac/puppet/wiki/TypeReference > > Sameer > > -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown

[Puppet Users] Re: Users without shadow

2009-08-31 Thread Michael Gliwinski
t; > This gives us the functionality that we need, but it also creates a > whole bunch of notices and a flurry of unnecessary activity every time > Puppet runs. Anyone have any ideas on who to create and manage users > without forcing them to have a shadow entry at all? > > Mark >

[Puppet Users] Re: /etc puppet or some of the directories can't be symlinks.

2009-09-10 Thread Michael Gliwinski
-- > > config /my/puppet.conf. > > No it's not a big deal and I have done just that. > > I just wanted to report it in case somebody else runs into it. > Indeed it's not a problem but more like a surprising behaviour. I've run into that myself a while back. -- Micha

[Puppet Users] Re: creating custom types

2009-10-01 Thread Michael Gliwinski
in Puppet I agree that it would be useful to have something more. -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT Phone: 028 9034 3319 ** The

[Puppet Users] Re: Using variables in virtual resources

2009-10-02 Thread Michael Gliwinski
u have your resources (here users) defined in a class, e.g. class all_users { @user {"joe": ensure => present, ... groups => $servertype ? { we

[Puppet Users] Re: Puppet way to manage a central file?

2009-10-02 Thread Michael Gliwinski
n only with adjusted filter to include the file I need to change). That is unless you have a not-yet-supported config file type or a really hard to handle one. Suppose augeas could be a bit more flexible with regards to the file filters, or at least allowing to modify it on runtime :) -- Michael

[Puppet Users] Re: Using variables in virtual resources

2009-10-02 Thread Michael Gliwinski
On Friday 02 October 2009 13:41:44 Michael Gliwinski wrote: > On Friday 02 October 2009 07:35:57 Erling wrote: > > On 28 Sep, 19:44, Eric Gerlach wrote: > > > You might be able to do something like: > > > > > > realize User[kenneth] > > &g

[Puppet Users] Re: Arbitrary 3rd party installers

2009-10-22 Thread Michael Gliwinski
ase for a > provider (exec or package) within puppet to meet this need? Two questions here. By using filebucket do you mean the internal puppet fileserver (with 'puppet://' URLs)? Also, a provider could be a good idea, but do you think it could be generic enough to support 3rd

[Puppet Users] Re: Conditional based on existence of a file

2009-10-29 Thread Michael Gliwinski
ers on the server and applied on the client. So if how a resource is applied depends on current environment of the client it makes sense to have a custom resource type for this resource which would then be able to make decisions when applying itself. -- Michael Gliwinski Henderson Group Infor

Re: [Puppet Users] Configuring Networking

2009-12-16 Thread Michael Gliwinski
/bar': require => Foo['bar'] } -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT Phone: 028 9034 3319 ** The information in this email is confide

Re: [Puppet Users] Proposals for modules naming conventions

2009-12-17 Thread Michael Gliwinski
Hi, On Thursday 17 December 2009 16:15:17 Al @ Lab42 wrote: > Hallo *, > at the Puppet Camp there has been some discussion about modules > standards and naming conventions. > I might have missed some relevant bits in the last months of personal > absence from the list so I'm not sure if this topic

Re: [Puppet Users] Re: Proposals for modules naming conventions

2009-12-18 Thread Michael Gliwinski
On Thursday 17 December 2009 18:58:50 Al @ Lab42 wrote: > > > 7- PROPOSAL for general class configuration define (based on augeas or > > > other inline modificators) > > > define ssh::config ($value) { > > > > > >    # Augeas version. > > >    augeas { > > >            "sshd_config_$name": > > >  

Re: [Puppet Users] Re: Class not compiled - help!

2009-12-29 Thread Michael Gliwinski
} > } > > But on testing it fails to find the classes files1 or files2 Because you're not including them anywhere. 'require' is only used to specify ordering, i.e. here that resources in class 'files1' and 'files2' are applied before Service['

Re: [Puppet Users] Re: Errror on file reference with multiple file sources and missing file match

2009-12-31 Thread Michael Gliwinski
one figured out a way to make > this work? I use a workaround with an always existing empty file, like: source => [ "puppet:///path/file.$hostname", "puppet:///shared/dummy_empty_file_for_workaround" ] where that dummy_empty_file_for_workaround always exis

[Puppet Users] Syntax error in ssh::auth module?

2010-02-18 Thread Michael Gliwinski
I gathered that it is a valid syntax. Is it something new (i.e. newer than 0.24.8)? Should ssh::auth work on 0.24.8? BTW, I gather the above should be equivalent to: if $ensure { Ssh_auth_key_client[$title] { ensure => $ensure } } yes? Thanks, Michael -- Michael Gliwinski Henderson Grou

Re: [Puppet Users] Syntax error in ssh::auth module?

2010-02-18 Thread Michael Gliwinski
one I suggested above worked. The bigger issue was the =~ operator introduced in 0.25. I did manage to replace it with regsubst but it's ugly (usually one line in 0.25 translates to ~4 in 0.24.8 using regsubst). I can attach the file

Re: [Puppet Users] Re: Magazine article comparing CPU usage of Puppet vs. Cfengine

2010-02-24 Thread Michael Gliwinski
g puppet to also manage configuration on some embedded systems (routers, NAS, heck even tablets like maemo-based), that went quickly out the door once I realised how well performing ruby is. Still I think it would be a valid use case. Regards, Michael -- Michael Gliwinski Henderson G

[Puppet Users] ssh::auth server dependency on ~/.ssh and a scoping question

2010-02-24 Thread Michael Gliwinski
e on puppet-users [1] which implies this isn't possible. Does that work in 0.25.x ? [1] http://groups.google.com/group/puppet- users/browse_thread/thread/4836b517cd7b5010 -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT Phone: 028 9034 3319 **

Re: [Puppet Users] Re: Magazine article comparing CPU usage of Puppet vs. Cfengine

2010-02-24 Thread Michael Gliwinski
an just look at some of the largest free software communities like KDE, which is primarily written in C++ which doesn't seem to be in any way diminishing the number of contributors. -- Michael Gliwinski Henderson Group

Re: [Puppet Users] ssh::auth server dependency on ~/.ssh and a scoping question

2010-02-25 Thread Michael Gliwinski
sible. > > > > Does that work in 0.25.x ? > > I'll have to spend a little time looking into this. The whole purpose of > the way I set up the defines and virtual resources was to be able to > override parameters. The last time I tried it, it worked. I

Re: [Puppet Users] Re: Correct user management across modules

2010-02-25 Thread Michael Gliwinski
apache": > uid => 48, > gid => 48, > groups => "apache", > } > > Then in your nagios module: > > Realize(User["apache"]) > User["apache"] { groups +> "nagios" } > > Don't forget to realize it

Re: [Puppet Users] 'checkinstall' for custom package creation

2010-02-25 Thread Michael Gliwinski
rt of RHELs plumbing depends) so I just have to suck it up and deal with 2.4 :D I wish RedHat/Fedora/EPEL, etc. dealt with python the same way as Debian does so you could have multiple versions installed alongside, but never really had a chance to take a look at how it's done. Regards, Mi

Re: [Puppet Users] Issue with '|'

2010-02-25 Thread Michael Gliwinski
t; > TIA > > Drew > I'm not sure why that doesn't work but I remember some problems I had with psql in postgres setup, I think I eventually started changing the output format to somethi

Re: [Puppet Users] Re: Magazine article comparing CPU usage of Puppet vs. Cfengine

2010-02-25 Thread Michael Gliwinski
On Wednesday 24 Feb 2010 15:56:17 James Turnbull wrote: > On 24/02/10 3:00 AM, Michael Gliwinski wrote: > > I see your point, but this is perhaps specific to the domain of > > configuration management systems? I mean just look at some of the > > largest free software commun

Re: [Puppet Users] ssh::auth server dependency on ~/.ssh and a scoping question

2010-02-25 Thread Michael Gliwinski
o log in using different method than SSH key auth. Don't know, I had no brilliant ideas regarding this yet ;) As it would seem for it to work first time the sshd on a host would need to check/pull user's key from the keymaster. > > Andrew. > Note that as I also mention

Re: [Puppet Users] Re: Issue with '|'

2010-02-26 Thread Michael Gliwinski
. And the '-t' option makes it print tuples only (without headers and footer). That should produce exactly one line if the user already exists or none otherwise, the grep is mostly used to get that return value right. If that doesn't work for you, ma

Re: [Puppet Users] ssh::auth server dependency on ~/.ssh and a scoping question

2010-02-26 Thread Michael Gliwinski
medir does not exist"], > } > > --apb (Alan Barrett) > That's what I'm doing now. Generally it is sufficient to declare a file resource for ${home}/.ssh and depend on it. It will fail if ${home} doesn't ex

Re: [Puppet Users] ssh::auth server dependency on ~/.ssh and a scoping question

2010-02-26 Thread Michael Gliwinski
; > mode=> 0600, > > source=> "puppet:///sshd/authorized_keys/dtrainor", > > require=> Class["sshd::config"] > > }

Re: [Puppet Users] Re: Issue with '|'

2010-03-03 Thread Michael Gliwinski
, yeah, that's the thing, it isn't really functionally different, I'm not sure why what you had before didn't work. Might be something psql specific. Anyway, glad I could help. All the best, Michael -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Av

Re: [Puppet Users] Re: Correct user management across modules

2010-03-08 Thread Michael Gliwinski
d that's what I'm using if possible, however there are certain cases where I'm declaring resources in a define. So far I found no way to override parameters of such resources, is there any? -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown

Re: [Puppet Users] If defined() ?

2010-03-19 Thread Michael Gliwinski
e => directory; > > } > > } > > this should work. > Not in 0.24.x which IIRC is the one Douglas is using. Not 100% sure but this should: if defined(File[...]) != true { ... } or if not then: if defined(File[...]) { notice('using already defined f

Re: [Puppet Users] sharing variables between definitions

2010-03-25 Thread Michael Gliwinski
e kinds of things have always caused enough issues to drive me crazy, but definitely possible. -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT Phone: 028 9034 3319 **

Re: [Puppet Users] sharing variables between definitions

2010-03-25 Thread Michael Gliwinski
he class is indeed evaluated only once (and therefore variables are bound only once IIUC), even though it is included from a define which may be declared (i.e. 'called'?) multiple times. -- Michael Gliwinski Henderson Group Information Services 9-11 Hight

Re: [Puppet Users] sharing variables between definitions

2010-03-25 Thread Michael Gliwinski
that run on the same host. Thus, depending on the value of $site > variable, the $log_path variable will be different. > > If I put that in a class, it will be evaluated for the first value of $site > called, right? or am I missing something? > > I hope, that