Issue #1416 has been reported by knapjack.
----------------------------------------
Bug #1416: file type (still) fails on filenames with spaces
http://reductivelabs.com/redmine/issues/show/1416
Author: knapjack
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version: 0.24.4
Keywords:
Complexity: Unknown
Patch: None
Affected version: 0.24.4
I found Ticket #178, but it looks like there may still be issues with spaces in
filenames.
I have the following function defined:
@# add_printer.pp
define add_printer($description, $uri, $model, $isshared = "false") {
case $operatingsystem {
Darwin: {
case $macosx_productversion {
"10.5","10.5.1","10.5.2","10.5.3","10.5.4": {
$language_path = ""
}
default: {
$language_path = "en.lproj/"
}
}
exec { "/usr/sbin/lpadmin -p $name -D \"${description}\" -v \"${uri}\" -P
\"/Library/Printers/PPDs/Contents/Resources/${language_path}${model}.gz\" -E -o
printer-is-shared=${isshared}":
require =>
File["/Library/Printers/PPDs/Contents/Resources/${language_path}${model}.gz"],
creates => "/etc/cups/ppd/${name}.ppd",
}
}
}
}@
Which seems to fail because the file can't be found:
@Jul 11 07:43:37 itten5test02 puppetd[48]: Configuration could not be
instantiated: Could not find dependency
File[/Library/Printers/PPDs/Contents/Resources/Lexmark T640.gz] for
Exec[/usr/sbin/lpadmin -p Micros_Lex_T640 -D "Micros Lex T640" -v
"mdns://Micros%20Lex%20T640._printer._tcp.local." -P
"/Library/Printers/PPDs/Contents/Resources/Lexmark T640.gz" -E -o
printer-is-shared=false] at /etc/puppet/manifests/functions/add_printer.pp:17;
using cached catalog@
But the test for the file is a late edition. I confirmed the file exists, and
the previous version of the function without the @require@ still works:
@Jul 11 07:43:41 itten5test02 puppetd[48]:
(//Node[itten5test02.local]/staffclient/printers::micros/Add_printer[Micros_Lex_T640]/Exec[/usr/sbin/lpadmin
-p Micros_Lex_T640 -D "Micros Lex T640" -v
"mdns://Micros%20Lex%20T640._printer._tcp.local." -P
"/Library/Printers/PPDs/Contents/Resources/Lexmark T640.gz" -E -o
printer-is-shared=false]/returns) executed successfully@
-Jack
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---