On Mon, Jan 19, 2009 at 09:12:25AM -0500, Bryan Kearney wrote:
> > Example 2
> > ---------
> > 
> > Again, working with the aliases file.  I want to add an alias from
> > "foo" to "b...@baz.com", but obviously I only want to add it once.
> > onlyif won't work, but I really don't like the syntax of onlyif
> > anyways: it's not Puppet-like, and it doesn't actually match how
> > augtool works either.  So, I propose this, based on the above:
> 
> Actually.. onlyif is modeled after exec.. so there is some precendence 
> in puppet proper.

It's not the onlyif that bothers me, it's the weird string-parsing
thing.

> >     onlyif_match_path => STRING
> >     onlyif_match_type => int/integer/size
> >     onlyif_match_args => [ COMPARATOR, INT ]
> > 
> >     onlyif_match_path => STRING
> >     onlyif_match_type => regex/not_regex
> >     onlyif_match_args => [ STRING ]
> > 
> >     onlyif_match_path => STRING
> >     onlyif_match_type => in/not_in
> >     onlyif_match_args => [ STRING, STRING, ... ]
> > 
> > This does everything the current onlyif does, and quite a bit more
> > besides.
> 
> The only thing added here is the regex.. is that correct?

More importantly, not_regex and not_in

-Robin

-- 
They say:  "The first AIs will be built by the military as weapons."
And I'm thinking:  "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/

--~--~---------~--~----~------------~-------~--~----~
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, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to