coreos-metadata: move provider into environment variable

By moving specifying how to get the provider into an environment
variable, it can be overridden via an environment varaible (which will
be necessary on openstack)
This commit is contained in:
Derek Gonyeo 2017-04-18 13:28:17 -07:00
parent 4496add20e
commit b1e85d3086
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ Description=CoreOS Metadata Agent
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-metadata --cmdline --attributes=/run/metadata/coreos
Environment=COREOS_METADATA_OPT_PROVIDER=--cmdline
ExecStart=/usr/bin/coreos-metadata ${COREOS_METADATA_OPT_PROVIDER} --attributes=/run/metadata/coreos
[Install]
RequiredBy=metadata.target