소스 검색

Fix node tags for aws provider

Jason DeTiberus 9 년 전
부모
커밋
91018aa8bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      playbooks/aws/openshift-cluster/config.yml

+ 1 - 1
playbooks/aws/openshift-cluster/config.yml

@@ -1,4 +1,3 @@
----
 - include: ../../common/openshift-cluster/config.yml
   vars_files:
   - ../../aws/openshift-cluster/vars.yml
@@ -14,3 +13,4 @@
     openshift_public_hostname: "{{ ec2_ip_address }}"
     openshift_router_selector: 'type=infra'
     openshift_infra_nodes: "{{ g_infra_hosts }}"
+    openshift_node_labels: '{"region": "{{ ec2_region }}", "type": "{{ hostvars[inventory_hostname]["ec2_tag_sub-host-type"] if inventory_hostname in groups["tag_host-type_node"] else hostvars[inventory_hostname]["ec2_tag_host-type"] }}"}'