Questions about provisions

Oliver Kraitschy oliver at okraits.de
Tue Apr 4 05:15:14 EDT 2017


Hi Zaid,

thank you for your answer.

Then I will either provide the filename as an argument to the script and 
have presets per product class or I will provide the version as an 
argument and build the filename with that in the script.

Greetings,
Oliver

Am 04.04.2017 10:56, schrieb Zaid Abdulla:
> On Tue, 2017-04-04 at 10:30 +0200, Oliver Kraitschy wrote:
>> can I query the metadata of the files in the mongodb from within a 
>> provision script to select a file based on version? Or how would you 
>> implement a download based on the file version (and corresponding to
>> the cpe oui and product class)?
> 
> You can't query the files metadata from a provision script. I just keep
> the current version number and the filename in the script itself and
> modify the script whenever there's a new firmware or config file.



More information about the Users mailing list