mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 23:11:07 +02:00
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:
parent
4496add20e
commit
b1e85d3086
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user