Skip to content

Instantly share code, notes, and snippets.

@plathrop
Created August 25, 2009 02:16
Show Gist options
  • Save plathrop/174400 to your computer and use it in GitHub Desktop.
Save plathrop/174400 to your computer and use it in GitHub Desktop.
Aug 24 19:05:01 s0002 puppetmasterd[28153]: Unknown function vblade_shelf at /home/plathrop/puppet/modules/digg-vblade/manifests/vblade-export.pp:4 on node s0233.digg.internal
plathrop@s0002:~/puppet$ ls -lah /var/lib/puppet/lib/parser/functions/
total 16K
drwxrwxr-x 2 root root 4.0K Aug 24 18:49 .
drwxrwxr-x 3 root root 4.0K Aug 24 18:49 ..
-rw-rw-r-- 1 root root 166 Aug 24 18:49 vblade_shelf.rb
-rw-rw-r-- 1 root root 165 Aug 24 18:49 vblade_slot.rb
module Puppet::Parser::Functions
newfunction(:vblade_shelf, :type => :rvalue) do |args|
namestring = args[0]
namestring.split('-')[0]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment