| Puppet Version: 6.0.2 Puppet Server Version: N/A OS Name/Version: Windows 10 - 1803 It's not correct behaviour for the filesystem and the error generated by Puppet does not indicate that the path is wrong. Desired Behavior: When specifying modulepath on the puppet commandline, the path should not be case sensitive on case insensitive file systems e.g. NTFS Actual Behavior: Puppet fails to find modules if Repro:
- Windows VM
- Create a module (This example uses C:\Source\tmp\jess\test)
- Create a simple function
# module_name/lib/puppet/functions/winquote.rb |
Puppet::Functions.create_function(:winquote) do |
dispatch :winquote do |
param 'Any', :quote |
end |
def winquote(quote) |
"\"#{quote}\"" |
end |
end
|
- Bundle install (Ruby 2.5, Puppet 6.0.2 Gem)
C:\Source\tmp\jess\test> bundle exec puppet apply -e "notify{ winquote('bob'): }" --modulepath C:\Source\tmp\jess |
Notice: Compiled catalog for glenns.gallifrey.local in environment production in 0.10 seconds |
Notice: "bob" |
Notice: /Stage[main]/Main/Notify["bob"]/message: defined 'message' as '"bob"' |
Notice: Applied catalog in 0.03 seconds |
C:\Source\tmp\jess\test> bundle exec puppet apply -e "notify{ winquote('bob'): }" --modulepath C:\Source\Tmp\jess |
Error: Evaluation Error: Unknown function: 'winquote'. (line: 1, column: 9) on node glenns.gallifrey.local
|
Note that the first invocation is the correct path, the second invocation has a capital 'T' in tmp.
|
This is also broken in the Puppet Agent package |
|
C:\Source\tmp\jess\test> puppet --version 5.5.2 C:\Source\tmp\jess\test> puppet apply -e "notify { winquote('bob'): } " --modulepath C:\Source\tmp\jess Notice: Compiled catalog for glenns.gallifrey.local in environment production in 0.14 seconds Notice: "bob" Notice: /Stage[main]/Main/Notify["bob"]/message: defined 'message' as '"bob"' Notice: Applied catalog in 0.03 seconds C:\Source\tmp\jess\test> puppet apply -e "notify { winquote('bob'): } " --modulepath C:\Source\Tmp\jess Error: Evaluation Error: Unknown function: 'winquote'. (line: 1, column: 9) on node glenns.gallifrey.local
|