Add puppetlabs/certregen module
[mirror/dsa-puppet.git] / 3rdparty / modules / certregen / lib / puppet / parser / functions / is_classified_with.rb
diff --git a/3rdparty/modules/certregen/lib/puppet/parser/functions/is_classified_with.rb b/3rdparty/modules/certregen/lib/puppet/parser/functions/is_classified_with.rb
new file mode 100644 (file)
index 0000000..1e17887
--- /dev/null
@@ -0,0 +1,4 @@
+Puppet::Parser::Functions::newfunction(:is_classified_with, :arity => 1,
+                                       :type => :rvalue) do |(str)|
+  compiler.node.classes.keys.include?(str)
+end