[Puppet Users] Re: [Puppet-dev] Converting to Ruby DSL

2010-12-28 Thread Ken Barber
syntax I guess: edge Foo | | = Package | title='puppet' | ken. PS. I'm stuck using this terrible new google groups interface. Sorry if my post looks terrible. On Sunday, December 26, 2010 5:44:22 PM UTC, Luke Kanies wrote: On Dec 19, 2010, at 5:07 AM, Ken Barber wrote: Thanks Luke. So

Re: [Puppet Users] Re: Referencing the same package from multiple classes

2010-12-19 Thread Ken Barber
:46:50AM -0800, Ken Barber wrote: Can you elaborate? On Saturday, December 18, 2010 7:23:57 PM UTC, kc7zzv wrote: On Dec 18, 2010, at 3:50 AM, Ken Barber wrote: For the record, an alternative that I don't believe was mentioned is to do something like

[Puppet Users] Re: [Puppet-dev] Converting to Ruby DSL

2010-12-19 Thread Ken Barber
Kanies wrote: On Dec 8, 2010, at 11:09 AM, Ken Barber wrote: (cross posting here as I originally posted in puppet-users - I figure the question is more of a dev one then for puppet-users) Hi everyone, I'm experimenting with converting some of my live puppet content to Ruby DSL and have

[Puppet Users] Re: Priority of collection entries

2010-12-18 Thread Ken Barber
I'm not sure I follow? Perhaps an example of what you are trying to achieve would help. ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group,

[Puppet Users] Re: Referencing the same package from multiple classes

2010-12-18 Thread Ken Barber
For the record, an alternative that I don't believe was mentioned is to do something like: if !defined(Package[foo]) { package {foo: ensure = installed } } ken. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send

Re: [Puppet Users] Cleanup after timeout in exec resource

2010-12-18 Thread Ken Barber
Shame wget doesn't do this for you. I'm sure there is a better tool to do .part files. Anyway, taking from kc7zzv's excellent idea ... something as simple as the following might do as a work-around: exec {wget-foo: command = /usr/bin/wget

Re: [Puppet Users] Re: Referencing the same package from multiple classes

2010-12-18 Thread Ken Barber
Can you elaborate? On Saturday, December 18, 2010 7:23:57 PM UTC, kc7zzv wrote: On Dec 18, 2010, at 3:50 AM, Ken Barber wrote: For the record, an alternative that I don't believe was mentioned is to do something like: if !defined(Package[foo]) { package {foo: ensure = installed

[Puppet Users] Re: source /etc/profile

2010-12-14 Thread Ken Barber
Hi Adrian, I'm not sure but I imagine by just trying to 'source' the profile within the current puppet runtime the scope will be lost as it would be called within an exec? Obviously if you are not worried about running puppet multiple times you might be able to source it in your

[Puppet Users] Re: Configure firewall with Puppet

2010-12-14 Thread Ken Barber
, 10:03 am, Ken Barber k...@bob.sh wrote: Hi Dmytro, So looking at what you have posted I can see a couple of things that trouble me: .. info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from source(s) puppet

[Puppet Users] Re: Configure firewall with Puppet

2010-12-14 Thread Ken Barber
Hi Dmytro, So looking at what you have posted I can see a couple of things that trouble me: .. info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from source(s) puppet://puppet/plugins .. Is this error always occurring? Are you

[Puppet Users] Re: Does Puppet depend on Augeas?

2010-12-06 Thread Ken Barber
Augeas roughly falls into the same category as the package libshadow- ruby and the 'user' resource. If the absence of augeas as a lib simply means the 'augeas' resource doesn't work, then it is fairly graceful and makes it non-mandatory I would imagine. ken. On Dec 6, 1:17 pm, Martijn Grendelman

[Puppet Users] Converting to Ruby DSL

2010-12-05 Thread Ken Barber
Hi everyone, I'm experimenting with converting some of my live puppet content to Ruby DSL and have found a few gaps I wouldn't mind some advice on. I'm not sure how many of you have already experimented in this arena yet. I've already read Dan Bode's excellent blog article on the subject:

[Puppet Users] Re: class name size

2010-12-05 Thread Ken Barber
I don't have an issue here: $ cat test8.pp class abcdefghijklmnopqrstuvwxyz { notice(foo) } include abcdefghijklmnopqrstuvwxyz $ puppet test8.pp notice: Scope(Class[Abcdefghijklmnopqrstuvwxyz]): foo $ You should post the error and more environment information to the thread. ken. On Dec 6,

[Puppet Users] Re: Schedule

2010-12-03 Thread Ken Barber
Hi Martijn, Looking here and at source: http://docs.puppetlabs.com/references/stable/type.html#schedule It reads to me that you might be able to use: schedule { puppet: period = weekly, repeat = 3 } And have it ran three days a week for example, but being specific about the day does not seem

[Puppet Users] Re: wildcard node names

2010-05-20 Thread Ken Barber
Regular expressions - even better: http://docs.puppetlabs.com/guides/language_tutorial.html#matching_nodes_with_regular_expressions Also - what you probably want to look at is using classes for your 'templates': http://docs.puppetlabs.com/guides/language_tutorial.html#classes ken. On May 20,

<    1   2   3   4   5   6