brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Hirschfeld <a...@d-qoi.com>
Subject Evaluating bash in blueprint parameters
Date Tue, 28 Jun 2016 02:47:07 GMT
In the MongoDB blueprint that I am writing, I have the following parameter:

- name: mongodb.ubunturepo
   type: string
   label: Ubuntu Repo URL
   description: The MongoDB repo for apt-get
   default: http://repo.mongodb.org/apt/ubuntu $(lsb_release 
-sc)/mongodb-org/stable multiverse

The default URL has $(lsb_release -sc) in it, and it makes the 
installation code much smaller if that's evaluated before it is added to 
the environment.

`lsb_release -sc` returns the code name of the system, so for Ubuntu 
14.04 is returns trusty and for 12.04 is returns precise.

Thanks!
Alexander Hirschfeld

Mime
View raw message