|
@@ -1,6 +1,7 @@
|
|
|
---
|
|
|
openshift_aws_create_s3: True
|
|
|
openshift_aws_create_iam_cert: True
|
|
|
+openshift_aws_create_iam_role: False
|
|
|
openshift_aws_create_security_groups: True
|
|
|
openshift_aws_create_launch_config: True
|
|
|
openshift_aws_create_scale_group: True
|
|
@@ -17,6 +18,10 @@ openshift_aws_iam_cert_path: ''
|
|
|
openshift_aws_iam_cert_key_path: ''
|
|
|
openshift_aws_scale_group_basename: "{{ openshift_aws_clusterid }} openshift"
|
|
|
|
|
|
+openshift_aws_iam_role_name: openshift_node_describe_instances
|
|
|
+openshift_aws_iam_role_policy_json: "{{ lookup('file', 'describeinstances.json') }}"
|
|
|
+openshift_aws_iam_role_policy_name: "describe_instances"
|
|
|
+
|
|
|
openshift_aws_iam_kms_alias: "alias/{{ openshift_aws_clusterid }}_kms"
|
|
|
openshift_aws_ami: ''
|
|
|
openshift_aws_ami_copy_wait: False
|
|
@@ -135,6 +140,9 @@ openshift_aws_master_group_config:
|
|
|
wait_for_instances: True
|
|
|
termination_policy: "{{ openshift_aws_node_group_termination_policy }}"
|
|
|
replace_all_instances: "{{ openshift_aws_node_group_replace_all_instances }}"
|
|
|
+ iam_role: "{{ openshift_aws_iam_role_name }}"
|
|
|
+ policy_name: "{{ openshift_aws_iam_role_policy_name }}"
|
|
|
+ policy_json: "{{ openshift_aws_iam_role_policy_json }}"
|
|
|
elbs: "{{ openshift_aws_elb_name_dict['master'].keys()| map('extract', openshift_aws_elb_name_dict['master']) | list }}"
|
|
|
|
|
|
openshift_aws_node_group_config:
|
|
@@ -155,6 +163,9 @@ openshift_aws_node_group_config:
|
|
|
type: compute
|
|
|
termination_policy: "{{ openshift_aws_node_group_termination_policy }}"
|
|
|
replace_all_instances: "{{ openshift_aws_node_group_replace_all_instances }}"
|
|
|
+ iam_role: "{{ openshift_aws_iam_role_name }}"
|
|
|
+ policy_name: "{{ openshift_aws_iam_role_policy_name }}"
|
|
|
+ policy_json: "{{ openshift_aws_iam_role_policy_json }}"
|
|
|
# The 'infra' key is always required here.
|
|
|
infra:
|
|
|
instance_type: m4.xlarge
|
|
@@ -172,6 +183,9 @@ openshift_aws_node_group_config:
|
|
|
type: infra
|
|
|
termination_policy: "{{ openshift_aws_node_group_termination_policy }}"
|
|
|
replace_all_instances: "{{ openshift_aws_node_group_replace_all_instances }}"
|
|
|
+ iam_role: "{{ openshift_aws_iam_role_name }}"
|
|
|
+ policy_name: "{{ openshift_aws_iam_role_policy_name }}"
|
|
|
+ policy_json: "{{ openshift_aws_iam_role_policy_json }}"
|
|
|
elbs: "{{ openshift_aws_elb_name_dict['infra'].keys()| map('extract', openshift_aws_elb_name_dict['infra']) | list }}"
|
|
|
|
|
|
openshift_aws_elb_tags: "{{ openshift_aws_kube_tags }}"
|