hpe-container-platform-community / hcp-demo-env-aws-terraform

Making it easy to deploy a HPE Container Platform learning environment on AWS
https://github.com/hpe-container-platform-community/hcp-demo-env-aws-terraform/blob/master/README.md
Apache License 2.0
14 stars 12 forks source link

allow providing additional label to worker hosts #7

Open snowch opened 4 years ago

snowch commented 4 years ago

Currently, the worker hostname is set as follows:

${var.project_id}-instance-worker-${count.index + 1}

e.g. csnow-hcp-demo-instance-worker-1

It would be good if the user could provide an additional label to identify hosts, e.g.

${var.project_id}-instance-worker-${count.index + 1}-${var.worker_label[count.index]}

e.g. csnow-hcp-demo-instance-worker-1-mapr-fast-ingest

This could be achieved by an extra variable worker_labels, e.g.

worker_count = 4
worker_labels = [ "epic-host", "epic-host", "k8s-host", "mapr-fast-ingest" ]

This labelling would make it much easier to identify workers, e.g. when needing to ssh into a specific worker.