Ignore EC2 instances that are stopped

Otherwise we pick up previous cluster instances (in EC2, stopped instances hang around for
a while - maybe 30 minutes?)
This commit is contained in:
Justin Santa Barbara
2015-03-04 17:58:36 -05:00
parent ee1e40d4bc
commit a3ae480acc
3 changed files with 51 additions and 13 deletions

View File

@@ -26,7 +26,6 @@
{% if grains.cloud == 'aws' -%}
{% set cloud_provider = "--cloud_provider=aws" -%}
{% set cloud_config = "--cloud_config=/etc/aws.conf" -%}
{% set minion_regexp = "" -%}
{% set machines = "--machines=" + ','.join(salt['mine.get']('roles:kubernetes-pool', 'network.ip_addrs', expr_form='grain').keys()) -%}
{% endif -%}
{% if grains.cloud == 'azure' -%}