Hi, > I'd rather NOT download the install script unless I want to install > the software and of course the install script is designed to install > multiple versions (if necessary) at once. Additionally removing the > 2 file definitions outside of the defintion will also have issues with > variable scoping, thus making the solution less clean.
I can guess 2 different approaches: 1- Moving the 2 file definitions in a class, included by the define. It's exactly whsat you don't like, but since the variables used in these 2 file types can be considered "local" and are not used in the define, you should be able to do that without problems 2- Use the software_install_dir variable in the name of the file types, and add the fixed path, something like: file { "$download_dir-$software_install_dir": owner => root, group => root, mode => 700, ensure => directory, path => $download_dir, } file { "$download_dir/$install_script-$software_install_dir": backup => false, owner => root, group => root, mode => 700, source => "puppet:///source_location/ $install_script", require => File["$download_dir"], path => $download_dir/$install_script, } I personally find the first choice much better. My 2 cents Alessandro --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---