Questions about provisions

Zaid Abdulla zaid at genieacs.com
Tue Apr 4 04:56:44 EDT 2017


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.

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list