summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cluster_autoscaler/tasks/aws.yml
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-10-11 13:14:27 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-10-11 21:00:19 -0400
commit4526f5457d012bc14c16b844bebc3eaeaa8ff191 (patch)
tree8543cf441d2eaba83ee52d749c741faf560f7647 /roles/openshift_cluster_autoscaler/tasks/aws.yml
parent2fb41eea9aa4b328d7da1c5e4b7de2e717549ed7 (diff)
downloadopenshift-4526f5457d012bc14c16b844bebc3eaeaa8ff191.tar.gz
openshift-4526f5457d012bc14c16b844bebc3eaeaa8ff191.tar.bz2
openshift-4526f5457d012bc14c16b844bebc3eaeaa8ff191.tar.xz
openshift-4526f5457d012bc14c16b844bebc3eaeaa8ff191.zip
Adding support for cluster-autoscaler role
Diffstat (limited to 'roles/openshift_cluster_autoscaler/tasks/aws.yml')
-rw-r--r--roles/openshift_cluster_autoscaler/tasks/aws.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/openshift_cluster_autoscaler/tasks/aws.yml b/roles/openshift_cluster_autoscaler/tasks/aws.yml
new file mode 100644
index 000000000..f08e97ebc
--- /dev/null
+++ b/roles/openshift_cluster_autoscaler/tasks/aws.yml
@@ -0,0 +1,17 @@
+---
+- when: openshift_cluster_autoscaler_cloud_provider == 'aws'
+ block:
+ - name: laydown the aws-credentials
+ template:
+ src: aws-creds.j2
+ dest: "{{ openshift_cluster_autoscaler_template_location }}/{{ openshift_cluster_autoscaler_aws_creds_name }}"
+ when: openshift_cluster_autoscaler_state == 'present'
+
+ - name: create the aws creds secret
+ oc_secret:
+ state: "{{ openshift_cluster_autoscaler_state }}"
+ name: "{{ openshift_cluster_autoscaler_aws_secret_name }}"
+ namespace: "{{ openshift_cluster_autoscaler_namespace }}"
+ files:
+ - name: creds
+ path: "{{ openshift_cluster_autoscaler_template_location }}/{{ openshift_cluster_autoscaler_aws_creds_name }}"