aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-16 14:12:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-16 14:12:56 -0300
commitd56416fc07eece9fdeb9554ce123341f124a10ad (patch)
tree763582e87d7d1dbe510f8d937ae3d9ea4f5161a5 /lib
parentc18f31cf8b37db0ff3c33ff4b360e29b5e211c04 (diff)
downloadpuppet-nodo-d56416fc07eece9fdeb9554ce123341f124a10ad.tar.gz
puppet-nodo-d56416fc07eece9fdeb9554ce123341f124a10ad.tar.bz2
Cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/hiera_resources.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/puppet/parser/functions/hiera_resources.rb b/lib/puppet/parser/functions/hiera_resources.rb
deleted file mode 100644
index 1299314..0000000
--- a/lib/puppet/parser/functions/hiera_resources.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-# Thanks to http://yo61.com/assigning-resources-to-nodes-with-hiera-in-puppet.html
-module Puppet::Parser::Functions
- newfunction(:hiera_resources, :type => :statement) do |args|
- raise Puppet::Error, "hiera_resources requires 1 argument; got #{args.length}" if args.length != 1
- res_name = args[0][0]
- apps = function_hiera_hash([res_name, {}])
- apps.each { | res_type, res_params | function_create_resources([res_type, res_params]) }
- end
-end