coreos-base/coreos-metadata: use $COREOS_METADATA_OPT_PROVIDER for ssh

An earlier commit modified the coreos-metadata.service unit to use the
COREOS_METADATA_OPT_PROVIDER environment variable to specify the
provider for coreos-metadata. That commit failed to make the same change
to the coreos-metadata-sshkeys@.service unit. This commit fixes this.
This commit is contained in:
Derek Gonyeo 2017-06-21 16:33:04 -07:00
parent 739e1cfb8a
commit ea30b79a62

View File

@ -3,7 +3,8 @@ Description=CoreOS Metadata Agent (SSH Keys)
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-metadata --cmdline --ssh-keys=%i
Environment=COREOS_METADATA_OPT_PROVIDER=--cmdline
ExecStart=/usr/bin/coreos-metadata ${COREOS_METADATA_OPT_PROVIDER} --ssh-keys=%i
[Install]
DefaultInstance=core