Based on a snippet from the group provider, it looks like the answer to your question is yes.
Taken from: puppet/lib/puppet/type/group.rb munge do |gid| case gid when String if gid =~ /^[-0-9]+$/ gid = Integer(gid) else self.fail "Invalid GID %s" % gid end when Symbol unless gid == :absent self.devfail "Invalid GID %s" % gid end end return gid end On Apr 29, 2:31 pm, jekhokie <jekho...@gmail.com> wrote: > Is there any way to use regular expressions within a custom type's > provider, or are they not yet implemented within Puppet? If they are, > do you simply execute them as usual according to regular Ruby syntax? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---