-
Committer:
Scott Moser
-
Date:
2018-01-22 15:14:13 UTC
-
mfrom:
(352.1.3 trunk.add-addl-stuff)
-
Revision ID:
smoser@ubuntu.com-20180122151413-5iwu2kpt0op2krhr
pollinate: Add cloud image build info and data in 'add-user-agent'.
This adds the ability for user or software to write additional information
into /etc/pollinate/add-user-agent that will be surfaced in user-agent.
The format of the file is tokens one per line of <namespace>/<data>.
Comments are supported with '#' either inline on a line by themselves.
We expect to have some combination of MAAS and curtin write information
to /etc/pollinate/add-user-agent such as:
maas/version/2.3.1
Additionally, collect up data in /etc/cloud/build.info. Official Ubuntu
images write 'serial: XXXXXXX' to this file as well as 'build_name'.
build_name is not reported if it is the expected value of 'server'.