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