-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Description
I would like to be able dynamically generate inventory based on environment variables:
# Supfile
---
env:
GCLOUD_INSTANCE_NAME: loadtesing-template
networks:
cloud:
inventory:
echo "deploy@$(gcloud compute instances describe $GCLOUD_INSTANCE_NAME | grep natIP | awk '{print $2}'):22"
But it doesn't work:
$ sup
usage: gcloud compute instances describe NAME [optional flags]
ERROR: (gcloud.compute.instances.describe) too few arguments
Networks:
- cloud
- deploy@:22
$ sup -e GCLOUD_INSTANCE_NAME=loadtesing-master
usage: gcloud compute instances describe NAME [optional flags]
ERROR: (gcloud.compute.instances.describe) too few arguments
Networks:
- cloud
- deploy@:22
Is there some way to do it?
Metadata
Metadata
Assignees
Labels
No labels