Created
August 25, 2009 02:16
-
-
Save plathrop/174400 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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