[Puppet Users] MCollective Cost?

2012-02-01 Thread Douglas Garstang
Someone told me yesterday that collective wasn't free, New to me. Has something changed in the past month, or are they looking at the commercial version? The web site must be somewhat confusing if a new user thinks it costs, but it doesn't. Doug -- You received this message because you are subsc

[Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Douglas Garstang
Sorry if there's an mcollective mailing list... So, I'm working for a company that using OpenSUSE, which in my opinion is a very bad idea. Anyway, how can I get collective for OpenSUSE that doesn't involve using tarballs? It's not in the standard OpenSUSE repo's. Does someone else have a repo? Ar

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Douglas Garstang
On Wed, Mar 14, 2012 at 9:59 AM, Darin Perusich wrote: > There's a .spec in the tarball that builds cleanly when you comment > out the two %defines and manually set the version and release. The > %defines cause a "Too many levels of recursion in macro expansion." > error. Darin, I haven't gone b

Re: [Puppet Users] Mcollective for OpenSUSE

2012-03-14 Thread Douglas Garstang
On Wed, Mar 14, 2012 at 12:37 PM, Darin Perusich wrote: > Hi Douglas, > > > On Wed, Mar 14, 2012 at 3:22 PM, Douglas Garstang > wrote: >> On Wed, Mar 14, 2012 at 9:59 AM, Darin Perusich wrote: >>> There's a .spec in the tarball that builds cleanly when you c

[Puppet Users] mcollective bits

2012-03-19 Thread Douglas Garstang
I've always found the mcollective docs at http://docs.puppetlabs.com/mcollective/reference/basic/gettingstarted.html very confusing. What _exactly_ goes on the client (i.e. the remote system)? The docs talk about editing both the server.cfg and the client.cfg files. The server.cfg file is part of

[Puppet Users] extlookup can't match key.

2012-03-19 Thread Douglas Garstang
I have a 2.7.6 server and a 2.6.4 client. I'm trying to use ext_lookup. site.pp: $extlookup_datadir = "/etc/puppet/manifests/extdata" $extlookup_precedence = ["%{fqdn}", "domain_%{domain}", "common"] /etc/puppet/manifests/extdata/common.csv: key1,var1: manifest has: $var1 = extlookup(“key1”, "Un

Re: [Puppet Users] extlookup can't match key.

2012-03-20 Thread Douglas Garstang
On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza wrote: > > > On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang > wrote: >> >> I have a 2.7.6 server and a 2.6.4 client. I'm trying to use ext_lookup. >> >> site.pp: >> $extlookup_datadir = "/et

Re: [Puppet Users] extlookup can't match key.

2012-03-20 Thread Douglas Garstang
On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang wrote: > On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza wrote: >> >> >> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang >> wrote: >>> >>> I have a 2.7.6 server and a 2.6.4 client.

Re: [Puppet Users] extlookup can't match key.

2012-03-20 Thread Douglas Garstang
On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang wrote: > On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang > wrote: >> On Mon, Mar 19, 2012 at 5:53 PM, Gary Larizza wrote: >>> >>> >>> On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang >>> wr

Re: [Puppet Users] extlookup can't match key.

2012-03-20 Thread Douglas Garstang
On Tue, Mar 20, 2012 at 9:55 AM, Nan Liu wrote: > On Tue, Mar 20, 2012 at 9:33 AM, Douglas Garstang > wrote: >> On Tue, Mar 20, 2012 at 8:03 AM, Douglas Garstang >> wrote: >>> On Tue, Mar 20, 2012 at 7:33 AM, Douglas Garstang >>> wrote: >>>> On M

[Puppet Users] OpenSUSE weirdness.

2012-03-20 Thread Douglas Garstang
I'm having some weird issues with puppet 2.7.6 on OpenSUSE. When I run puppet in the foreground, it's all fine. However, when I run it as a service, all that get's logged is: abc:/var/log/puppet # cat puppet.log Tue Mar 20 10:11:57 -0700 2012 Puppet (warning): iconv doesn't seem to support UTF-8/

[Puppet Users] Relative Symlinks

2012-03-21 Thread Douglas Garstang
Is there any way to get relative symlinks in puppet? This: file { "tomcat-current": #"/opt/foo/apache-tomcat-current": ensure => link, target => "/opt/foo/apache-tomcat-${tomcat_version}"; } yields: Wed Mar 21 09:58:05 -0700 2012 Puppet (err): Fai

Re: [Puppet Users] Relative Symlinks

2012-03-21 Thread Douglas Garstang
> $ ls -l /tmp/link_to_zz > lrwxrwxrwx 1 cwood cwood 2 Mar 21 13:03 /tmp/link_to_zz -> zz > > (ln target linkname) > > On Wed, Mar 21, 2012 at 09:59:50AM -0700, Douglas Garstang wrote: >> Is there any way to get relative symlinks in puppet? >> >> This: >

[Puppet Users] Module in maintenance mode

2011-06-21 Thread Douglas Garstang
All, I have a module that I would like to set a variable for, and then if that is variable is set, consider the module (which deploys software), in 'maintenance mode', where it drops out of the module, and moves into the next module, kind of like a return function. Can puppet do that? I don't want

Re: [Puppet Users] Module in maintenance mode

2011-06-21 Thread Douglas Garstang
Oh... right... of course... Put the logic one level up... That will work. Thanks On Jun 21, 2011, at 5:54 PM, Patrick wrote: > > On Jun 21, 2011, at 5:04 PM, Douglas Garstang wrote: > >> All, >> >> I have a module that I would like to set a variable for, and then

[Puppet Users] Puppet Dashboard without MySQL

2011-06-27 Thread Douglas Garstang
All, Can puppet dashboard be used WITHOUT MySQL? Can't find it documented here: http://docs.puppetlabs.com/guides/installing_dashboard.html#external_node_classification Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gr

Re: [Puppet Users] Puppet Dashboard without MySQL

2011-06-27 Thread Douglas Garstang
Oh. That's a deal breaker. :( Makes the puppet dashboard unusable. On Mon, Jun 27, 2011 at 10:32 AM, Jacob Helwig wrote: > On Mon, 27 Jun 2011 10:24:38 -0700, Douglas Garstang wrote: > > > > All, > > > > Can puppet dashboard be used WITHOUT MySQL? >

[Puppet Users] Re: Puppet Dashboard without MySQL

2011-06-27 Thread Douglas Garstang
Actually, to be more specific, our nodes are stored in yaml files, and I'd like to keep them that way, and continue to have the yaml files as the source of truth, not a MySQL database. Puppet dashboard should read from those yaml files. Doug. On Mon, Jun 27, 2011 at 10:24 AM, Douglas Gar

Re: [Puppet Users] Re: Puppet Dashboard without MySQL

2011-06-27 Thread Douglas Garstang
On Mon, Jun 27, 2011 at 10:49 AM, Nan Liu wrote: > On Mon, Jun 27, 2011 at 10:35 AM, Douglas Garstang > wrote: > > Actually, to be more specific, our nodes are stored in yaml files, and > I'd > > like to keep them that way, and continue to have the yaml files as the

Re: [Puppet Users] Re: Puppet Dashboard without MySQL

2011-06-27 Thread Douglas Garstang
On Mon, Jun 27, 2011 at 12:30 PM, Ohad Levy wrote: > On Mon, Jun 27, 2011 at 9:40 PM, Douglas Garstang > wrote: > > On Mon, Jun 27, 2011 at 10:49 AM, Nan Liu wrote: > >> > >> On Mon, Jun 27, 2011 at 10:35 AM, Douglas Garstang > >> wrote: > >>

Re: [Puppet Users] Linux hardening

2011-07-03 Thread Douglas Garstang
On Fri, Jul 1, 2011 at 3:48 PM, James Turnbull wrote: > Nicolas Arias wrote: > >> Hi guys!. >> >> I want to use puppet to automate initial linux hardening and to >> maintain a security configuration standard. >> >> Does any one knows if there are modules going around that take care of >> the usua

[Puppet Users] Skipping Tags?

2011-07-19 Thread Douglas Garstang
All, Is there a way to tell puppet to run, but to skip/ignore resources with a certain tag? The use case is tagging certain resources as, say, 'software deployment', and then having the resources tagged as that always ignored unless specifically told to do so? We'd like to put software deployment

Re: [Puppet Users] ANNOUNCE: Cloud Provisioner v0.6.0rc1 release

2011-07-21 Thread Douglas Garstang
gt; 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 email to > puppet-users+unsubscr...@googlegroups.com. > For more options,

[Puppet Users] Puppet RPM's

2011-07-26 Thread Douglas Garstang
Does anyone know where I can get the latest puppet, 2.7.1 as RPM's? The spec file that comes with the puppet 2.7.1 source is broken again, and only version 0.25.5 seems to be available via EPEL, which means that the website's assertion that you can get puppet as an RPM from there is somewhat untru

[Puppet Users] Upgrading 0.25.5 to 2.7.1

2011-07-27 Thread Douglas Garstang
All, I'm upgrading puppet clients from 0.25.5 to 2.7.1. I've rolled an RPM for the new version, and I'm: 1. Stopping puppet 2. Upgrading RPM 3. Change the puppet master on the client to point to a new puppet master running 2.7.1. 3. Starting puppet I am seeing this in the log files on the client

Re: [Puppet Users] Upgrading 0.25.5 to 2.7.1

2011-07-27 Thread Douglas Garstang
On Wed, Jul 27, 2011 at 2:01 PM, Jacob Helwig wrote: > On Wed, 27 Jul 2011 13:58:25 -0700, Douglas Garstang wrote: > > > > All, > > > > I'm upgrading puppet clients from 0.25.5 to 2.7.1. I've rolled an RPM for > > the new version, and I'm: >

Re: [Puppet Users] Upgrading 0.25.5 to 2.7.1

2011-07-27 Thread Douglas Garstang
On Wed, Jul 27, 2011 at 2:01 PM, Jacob Helwig wrote: > On Wed, 27 Jul 2011 13:58:25 -0700, Douglas Garstang wrote: > > > > All, > > > > I'm upgrading puppet clients from 0.25.5 to 2.7.1. I've rolled an RPM for > > the new version, and I'm: >

Re: [Puppet Users] Upgrading 0.25.5 to 2.7.1

2011-07-27 Thread Douglas Garstang
On Wed, Jul 27, 2011 at 2:10 PM, Douglas Garstang wrote: > On Wed, Jul 27, 2011 at 2:01 PM, Jacob Helwig wrote: > >> On Wed, 27 Jul 2011 13:58:25 -0700, Douglas Garstang wrote: >> > >> > All, >> > >> > I'm upgrading puppet clients from 0.

[Puppet Users] Puppet HA from 'Pro Puppet'

2011-07-30 Thread Douglas Garstang
All, I'm trying to set puppet 2.7.1 up in a HA configuration by following the steps in the new 'Pro Puppet' book. I got puppet working with passenger initially, and confirmed that was working. The fact I can't really point to the book as a reference here makes it a bit hard to describe what I am

[Puppet Users] Master failover and cert names.

2011-07-30 Thread Douglas Garstang
Well, this is frustrating. Let's say I have two puppet masters, where one is active, and the other is a hot stand by. Obviously each is going to have a different FQDN. Everything will work fine when the client talks to the server that signed it's certificate. However, after a failover to the secon

[Puppet Users] Re: Master failover and cert names.

2011-07-30 Thread Douglas Garstang
On Sat, Jul 30, 2011 at 8:03 PM, Douglas Garstang wrote: > Well, this is frustrating. > > Let's say I have two puppet masters, where one is active, and the other is > a hot stand by. Obviously each is going to have a different FQDN. Everything > will work fine when the client

Re: [Puppet Users] Master failover and cert names.

2011-07-31 Thread Douglas Garstang
On Sat, Jul 30, 2011 at 10:38 PM, James Turnbull wrote: > Douglas Garstang wrote: > > Well, this is frustrating. > > > > Let's say I have two puppet masters, where one is active, and the other > > is a hot stand by. Obviously each is going to have a different FQD

Re: [Puppet Users] Re: Master failover and cert names.

2011-08-01 Thread Douglas Garstang
On Mon, Aug 1, 2011 at 8:03 AM, linuxbsdfreak wrote: > HI Doug, > > I am also facing the same issue after following the steps from the > book. I tried with nginx and passenger and i mentioned it on the > following post. > > > http://groups.google.com/group/puppet-users/browse_thread/thread/44bc894

[Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
So the new extlookup that can apparently read YAML files, here: http://www.devco.net/archives/2011/05/28/pluggable_extlookup_for_puppet.php Are there any docs on how to actually install? I need a _little_ more than a reference to the source code on github Doug. -- You received this mes

Re: [Puppet Users] Puppet HA from 'Pro Puppet'

2011-08-03 Thread Douglas Garstang
:( On Sun, Jul 31, 2011 at 8:32 PM, Jeff McCune wrote: > On Sat, Jul 30, 2011 at 3:01 PM, Nigel Kersten wrote: > >> >> >> On Sat, Jul 30, 2011 at 2:53 PM, Douglas Garstang < >> doug.garst...@gmail.com> wrote: >> >>> All, >>> &g

Re: [Puppet Users] Re: module / class scope

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 9:20 AM, jcbollinger wrote: > > On Aug 2, 5:16 pm, Aaron Grewell wrote: > > I think you'll need to use both an include and a require. The include > makes > > the class(es) in the file available, the require creates the actual > > dependency. > > Yes, if the class in questi

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 10:21 AM, R.I.Pienaar wrote: > > > - Original Message - > > So the new extlookup that can apparently read YAML files, here: > > > > > > > http://www.devco.net/archives/2011/05/28/pluggable_extlookup_for_puppet.php > > > > > > Are there any docs on how to actuall

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 10:28 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > On Wed, Aug 3, 2011 at 10:21 AM, R.I.Pienaar < r...@devco.net > wrote: > > > > > > > > > > > > > > > > - Original Message - > > > So the new extlookup that can apparently read YAML files, he

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 10:37 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > > > > > its not in puppet core and probably wont be, a more complete system > > > is @ http://www.devco.net/archives/tag/hiera > > > > > > > > > > > > > > > I realise it's not integrated into puppet. He

[Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Anyone using? The docs are really bad. Doug -- 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 email to puppet-users+unsubscr...@googlegroups

Re: [Puppet Users] Re: module / class scope

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 2:56 PM, jcbollinger wrote: > > > On Aug 3, 12:23 pm, Douglas Garstang wrote: > > On Wed, Aug 3, 2011 at 9:20 AM, jcbollinger >wrote: > > > > > > > > > > > > > > > > > On Aug 2, 5:16 pm, Aaron Gre

[Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
Can't get the extlookup() that supports yaml to work. I did this... On server: mv /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb.orig Replaced /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb with p

[Puppet Users] Re: Extlookup() again.

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 3:50 PM, Douglas Garstang wrote: > Can't get the extlookup() that supports yaml to work. > > I did this... > > On server: > mv /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb > /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/ex

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 4:15 PM, Aaron Grewell wrote: > Precedence is for having it look in multiple places. I've got node-level, > site-level, and default YAML files for example. > > On Wed, Aug 3, 2011 at 3:50 PM, Douglas Garstang > wrote: > >> Can't get the

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
t; Looks pretty straight forward to me. What are you trying to do? > > On Wed, Aug 3, 2011 at 1:29 PM, Douglas Garstang > wrote: > >> Anyone using? The docs are really bad. >> >> Doug >> >> -- >> You received this message because you are subscribed to

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 4:22 PM, Scott Smith wrote: > https://github.com/ripienaar/hiera-puppet > > Check the "Puppet" section in the heira README > > > > Are you referring to this? 'It also includes a Puppet function that works like extlookup() but uses the Hiera backends.'. I _may_ need a litt

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 4:25 PM, Aaron Grewell wrote: > Example Config: > --- > :parser: YAML > :precedence: > - %{environment}/nodes/%{fqdn} > - %{environment}/nodes/cluster_%{cluster} > - %{environment}/nodes/site_%{site} > - %{environment}/nodes/default > :yaml: >:datadir: /usr/share/puppet/

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
irectory, probably what you're looking for > > https://github.com/ripienaar/hiera-puppet/tree/master/example > > On Wed, Aug 3, 2011 at 4:26 PM, Douglas Garstang > wrote: > >> On Wed, Aug 3, 2011 at 4:22 PM, Scott Smith wrote: >> >>> https://github.com/ri

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
d into a whole set of package > resources with a single entry: > package {$default_packages:} > > On Wed, Aug 3, 2011 at 4:31 PM, Douglas Garstang > wrote: > >> On Wed, Aug 3, 2011 at 4:25 PM, Aaron Grewell wrote: >> >>> Example Config: >>> ---

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
My own post? y? On Wed, Aug 3, 2011 at 4:40 PM, Scott Smith wrote: > http://groups.google.com/group/puppet-users/msg/6432a6dd539b542f > > > On Wed, Aug 3, 2011 at 4:37 PM, Douglas Garstang > wrote: > >> Ok, so am I getting 'DougBobBill' when I use

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
ich is > to concatenate arrays & hashes together into a string representation when > you're printing it. > > > On Wed, Aug 3, 2011 at 4:34 PM, Douglas Garstang > wrote: > >> So, I'll ask this question... >> >> With hiera, can you retrieve complex m

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
> variable[key][subkey][subsubkey] > > You've really got to read the language guide, it explains the use of arrays > and hashes pretty well: > http://docs.puppetlabs.com/guides/language_guide.html > > > On Wed, Aug 3, 2011 at 4:49 PM, Douglas Garstang > wrote: > >

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
No luck with that either. On Wed, Aug 3, 2011 at 5:51 PM, Aaron Grewell wrote: > No, pull the whole hash and break it down afterwards. > On Aug 3, 2011 5:15 PM, "Douglas Garstang" > wrote: > > Aaron, > > > > I'm not sure you understood my question.

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
uby magic inside templates to get the values I need? Why can't puppet even print these values out? How do I access them in the puppet? The language guide says I can do this... Doug. On Wed, Aug 3, 2011 at 6:00 PM, Douglas Garstang wrote: > No luck with that either. > > > On Wed,

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Crap. Should be: notice($t['given']) I need a vacation... On Wed, Aug 3, 2011 at 6:09 PM, Douglas Garstang wrote: > Well, this is weird... > > If I have this yaml file: > > --- > customer: > given: Dorothy > family: Gale > > and this p

[Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Douglas Garstang
I've got this: file { '/opt/sugarsync/tomcat/tomcat-home/current': ensure => "tomcat-$config['tomcat_version_server']"; where $config['tomcat_version_server'] was set with extlookup (the yaml one), by loading: --- tomcat_config: tomcat_version_server: 6.0.20-1 tomcat_

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Douglas Garstang
On Mon, Aug 8, 2011 at 11:22 AM, Brian Gallew wrote: > String interpolation in the Puppet DSL is strictly variable->string, and > does not handle arrays. For what you want, use > inline_template("tomcat-<%= $config['tomcat_version_server'] %>") > >

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Douglas Garstang
Thanks. That did it. Ugly... On Mon, Aug 8, 2011 at 12:47 PM, vagn scott wrote: > On 08/08/2011 02:52 PM, Douglas Garstang wrote: > >> >>file { >>'/opt/sugarsync/tomcat/tomcat-**home/current': >>ensure => inline_template("

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Douglas Garstang
gt; > On Mon, Aug 8, 2011 at 12:58 PM, Douglas Garstang > wrote: > >> Thanks. That did it. Ugly... >> >> >> On Mon, Aug 8, 2011 at 12:47 PM, vagn scott wrote: >> >>> On 08/08/2011 02:52 PM, Douglas Garstang wrote: >>> &g

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Douglas Garstang
>> >>> Works the same as it does in Bourne shell. If you want to use double >>> quotes inside a double-quoted string, you have to escape them. Or use single >>> quotes. >>> >>> On Mon, Aug 8, 2011 at 12:58 PM, Douglas Garstan

Re: [Puppet Users] Hash Interpolation inside double quotes?

2011-08-08 Thread Douglas Garstang
than the inline template approach (which didn't work for the name anyway). Doug. On Mon, Aug 8, 2011 at 2:25 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Mon, Aug 08, 2011 at 11:19:36AM -0700, Douglas Garstang wrote: > > I've go

[Puppet Users] Return a value from a definition?

2011-08-08 Thread Douglas Garstang
All, I have this: # # External configuration data. # $config = extlookup("platform_config", extlookup("platform_config", extlookup("platform_config", extlookup("platform_config", "Unknown", "config/${ss_fac}/${s

Re: [Puppet Users] Enabling yum-repo on fly?

2011-08-15 Thread Douglas Garstang
p. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Regards,

[Puppet Users] Dependency Cycle Weirdness

2011-08-17 Thread Douglas Garstang
If I have: class service::common { file { '/etc/foo': ensure => directory; '/etc/init.d/ss-functions': content => template('service/etc/init.d/ss-functions.erb'), require => File['/etc/foo'], } } class platform::common { include ser

Re: [Puppet Users] Dependency Cycle Weirdness

2011-08-17 Thread Douglas Garstang
Oh. I didn't realise that. Thought it was darn Thanks. On Wed, Aug 17, 2011 at 10:52 AM, Scott Smith wrote: > Don't think you need to include if there is a require > On Aug 17, 2011 9:50 AM, "Douglas Garstang" > wrote: > > If I have: > > > &g

Re: [Puppet Users] Dependency Cycle Weirdness

2011-08-17 Thread Douglas Garstang
Actually, no, I think you DO need it. On Wed, Aug 17, 2011 at 11:30 AM, Douglas Garstang wrote: > Oh. I didn't realise that. Thought it was darn Thanks. > > > On Wed, Aug 17, 2011 at 10:52 AM, Scott Smith wrote: > >> Don't think you need to include if

[Puppet Users] Difference between include and require

2011-08-23 Thread Douglas Garstang
Can someone please succinctly explain to me the difference between include and require? The documentation implies that simply putting 'require ' at the top of a different class automatically means that is fully implemented as a dependency. However, it doesn't seem to work that way. Also, I'm not

Re: [Puppet Users] Difference between include and require

2011-08-23 Thread Douglas Garstang
; > David > > On Tue, Aug 23, 2011 at 1:51 PM, Douglas Garstang > wrote: > > Can someone please succinctly explain to me the difference between > include > > and require? > > The documentation implies that simply putting 'require ' at the > top >

[Puppet Users] Upgrading 0.25.4

2011-08-24 Thread Douglas Garstang
All, Can someone give me some ideas as to, or point me to where I can find documentation on the issues I may have upgrading puppet from 0.25.4 to the latest? Also, the server is using passenger, and I know there's a whole lot of magic voodoo that has to happen to make sure that the version number

[Puppet Users] Release tarball spec file

2011-08-24 Thread Douglas Garstang
I know this is a crazy request, but I was kind of wondering why it was so hard for Puppet Labs to maintain the RPM spec file that comes contained in the release tarball, so that modifications weren't required to actually get it to build. Crazy huh? For example, the SPEC file contains this... Vers

[Puppet Users] External Data Question

2011-08-25 Thread Douglas Garstang
All, I am not sure if I am approaching this in the right manner, but if I have the following yaml file, and I am using extlookup() to grab the data: --- erased_config: instances: - { id: 0, metrics_port: 2, host_name: hsync00, mount_point: /, assign_new_users: false } - { id: 1, metr

[Puppet Users] Complex YAML Data in External Nodes

2011-08-26 Thread Douglas Garstang
Can I do this in an external node? parameters: foo: - { id: 0, Name: Doug } And access it with: notice ("DATA=$foo[0]['Name']") ? Doug -- 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

[Puppet Users] Re: Complex YAML Data in External Nodes

2011-08-26 Thread Douglas Garstang
I must be asking hard questions. On Fri, Aug 26, 2011 at 10:04 AM, Douglas Garstang wrote: > Can I do this in an external node? > > parameters: > foo: > - { id: 0, Name: Doug } > > And access it with: > > notice ("DATA=$foo[0]['Name']"

[Puppet Users] Module Plugin Documentation

2011-08-31 Thread Douglas Garstang
Anyone, I've read this doc several times: http://docs.puppetlabs.com/guides/plugins_in_modules.html As a whole, it really doesn't make sense. It seems pretty obvious it was written by someone with deep knowledge of the subject, but there is little context for someone like me. Is there better doc

Re: [Puppet Users] Re: Module Plugin Documentation

2011-09-01 Thread Douglas Garstang
rst defining or describing it in some fashion. Doug On Thu, Sep 1, 2011 at 6:21 AM, jcbollinger wrote: > > > On Aug 31, 7:40 pm, Douglas Garstang wrote: > > Anyone, > > > > I've read this doc several times: > > > > http://docs.puppetlabs.com/guides/plugins

[Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
I have a real-world, best practices, procedural question. How do you manage the he puppet master, under /etc/puppet, where multiple people may be editing files? The /etc/puppet directory is a working copy, and each user has read access to files created by other users. However, if one person adds a

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
11:47 AM, Douglas Garstang > wrote: > >> I have a real-world, best practices, procedural question. >> >> How do you manage the he puppet master, under /etc/puppet, where multiple >> people may be editing files? The /etc/puppet directory is a working copy, >> and

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 1:35 PM, Steven VanDevender wrote: > Douglas Garstang writes: > > Was that in reply to my original post, or a subsequent reply? You did > see > > where I said /etc/puppet was a working copy, right? > > It sounds like you need to get to the point

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 1:35 PM, Steven VanDevender wrote: > Douglas Garstang writes: > > Was that in reply to my original post, or a subsequent reply? You did > see > > where I said /etc/puppet was a working copy, right? > > It sounds like you need to get to the point

[Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
So, after reading this doc: http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts it's not readily apparent to me how I can create facts that are derived from variables defined at the node level in puppet, rather than at the O/S level on the client. I want to be able to set a variable that

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 4:31 PM, Aaron Grewell wrote: > You can't. The whole purpose of facts is to allow Puppet to make decisions > based on client data. Variables=server, facts=client. > > Seriously??? I can edit mcollective's server.cfg file and change the factsource from facter to yaml, and t

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 4:56 PM, Aaron Grewell wrote: > Create a variable for server_class in your node definition. > > > And then? -- 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@googlegroup

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell wrote: > And then assign classes based on that. Standard if logic or case statement > as you prefer. > > On Thu, Sep 1, 2011 at 4:57 PM, Douglas Garstang > wrote: > >> On Thu, Sep 1, 2011 at 4:56 PM, Aaron Grewell wrote: >

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 5:05 PM, Aaron Grewell wrote: > Ah. I don't know how mcollective works so I'm not sure how to address > that. If there's a YAML data file involved then you could push it with > Puppet... > > > Yes, mcollective can read a YAML file, which by default is /etc/mcollective/fact

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
wiki/FactsFacterYAML > > If I'm reading the code correctly (somewhat questionable, my Ruby-foo is > weak) it should return all top-scope variables and facts. > > On Thu, Sep 1, 2011 at 5:13 PM, Douglas Garstang > wrote: > >> On Thu, Sep 1, 2011 at 5:05 PM, Aaron Gre

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
Thanks Nigel, but there's no mention of classes.txt on that page. On Thu, Sep 1, 2011 at 5:16 PM, Nigel Kersten wrote: > > > On Thu, Sep 1, 2011 at 5:02 PM, Douglas Garstang > wrote: > >> On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell wrote: >> >>&

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
ing, ie a class of server, and query that with mcollective. Should not be difficult to do. Doug. On Thu, Sep 1, 2011 at 5:37 PM, Douglas Garstang wrote: > Thanks Nigel, but there's no mention of classes.txt on that page. > > > On Thu, Sep 1, 2011 at 5:16 PM, Nigel Kersten wrote: >

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
d do it the right way. I try and make my questions as specific as possible so that I can get options that are as specific to the problem at hand as possible. On Thu, Sep 1, 2011 at 6:14 PM, Nigel Kersten wrote: > > > On Thu, Sep 1, 2011 at 5:40 PM, Douglas Garstang > wrote: > >>

Re: [Puppet Users] Custom Facts

2011-09-02 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 10:30 PM, Matt Moor wrote: > On 2/09/11 3:03 PM, Douglas Garstang wrote: > >> I really appreciate your reply, but I've inherited a mess that isn't easy >> to fix, and the most appropriate solution for right now isn't always the >> &

Re: [Puppet Users] Custom Facts

2011-09-02 Thread Douglas Garstang
On Fri, Sep 2, 2011 at 11:26 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > At the end of the day, this all seems to be a limitation with > > mcollective. It can only read facts from one source, either facter > > or a yaml file. I believe facter is the current source, and peopl

[Puppet Users] Sourcing node variables

2011-09-02 Thread Douglas Garstang
So... a general question. When sourcing node variables, what is the better approach... a) In each module included by the node, use something like extlookup to get the variables you need, as you need them, OR b) Have your external node script gather and dump _all_ the variables the the node may ne

Re: [Puppet Users] Custom Facts

2011-09-02 Thread Douglas Garstang
On Fri, Sep 2, 2011 at 12:06 PM, Douglas Garstang wrote: > > On Fri, Sep 2, 2011 at 11:26 AM, R.I.Pienaar wrote: > >> >> >> - Original Message - >> > >> > At the end of the day, this all seems to be a limitation with >> > mcollective.

Re: [Puppet Users] parsing yaml reports with python

2011-09-04 Thread Douglas Garstang
tus["time"] >self.version = resource_status["version"] > def __repr__(self): >return "(evaluation=%r, events=%r, file=%r, line=%r, resource=%r, > source_description=%r, tags=%r, time=%r, version=%r)" % > (self.evaluation, self.events, self.fi

[Puppet Users] The require function

2011-09-06 Thread Douglas Garstang
The puppet documentation at http://docs.puppetlabs.com/references/stable/function.html says for the require function, that: "Evaluate one or more classes, adding the required class as a dependency." This implies that any resources in the required class are automatically added as a dependancy. I'm

[Puppet Users] Re: The require function

2011-09-06 Thread Douglas Garstang
On Tue, Sep 6, 2011 at 11:52 AM, Douglas Garstang wrote: > The puppet documentation at > http://docs.puppetlabs.com/references/stable/function.html says for > the require function, that: > > "Evaluate one or more classes, adding the required class as a dependency."

Re: [Puppet Users] Re: The require function

2011-09-06 Thread Douglas Garstang
On Tue, Sep 6, 2011 at 1:19 PM, R.I.Pienaar wrote: > > > - Original Message - >> >> >> That's a feature in newish versions, right? > > no, it's been there for ages and ages. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To pos

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 3:03 AM, R.I.Pienaar wrote: > > > - Original Message - >> On Sep 6, 8:54 pm, "R.I.Pienaar" wrote: >> > - Original Message - >> > >> > files auto require their parents, it's not even needed to do >> > the require => or require() >> > >> > >> Could you please

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 2:27 PM, Nigel Kersten wrote: > On Wed, Sep 7, 2011 at 2:25 PM, Douglas Garstang > wrote: >> >> Actually, that's not true. I have seen numerous situations where >> puppet tries to create /foo/bar before /foo, and then complains that >&g

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 3:12 PM, Nigel Kersten wrote: > > > On Wed, Sep 7, 2011 at 2:35 PM, Douglas Garstang > wrote: >> >> On Wed, Sep 7, 2011 at 2:27 PM, Nigel Kersten >> wrote: >> > On Wed, Sep 7, 2011 at 2:25 PM, Douglas Garstang >> > >

Re: [Puppet Users] Re: The require function

2011-09-07 Thread Douglas Garstang
On Wed, Sep 7, 2011 at 3:37 PM, Adam Gibbins wrote: > > On 7 September 2011 23:22, Douglas Garstang wrote: >> >> We'l see. To be honest, motivation is rather low right now because I >> was just kicked off the mcollective mailing list by Mr Pienaar for >> askin

  1   2   3   4   5   6   7   >