summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-08-26 13:35:27 -0400
committerGitHub <noreply@github.com>2016-08-26 13:35:27 -0400
commit54cac00a37f8070f5073021478a30c8fda90e346 (patch)
tree7e2de24cc685479639ec751cfd66bf61e1bab56a /roles/openshift_node/tasks
parent739648d2131a2723a21eafa4217203025438e729 (diff)
parent791640e083c31e4380a3d7cd929fd67567a944f8 (diff)
downloadopenshift-54cac00a37f8070f5073021478a30c8fda90e346.tar.gz
openshift-54cac00a37f8070f5073021478a30c8fda90e346.tar.bz2
openshift-54cac00a37f8070f5073021478a30c8fda90e346.tar.xz
openshift-54cac00a37f8070f5073021478a30c8fda90e346.zip
Merge pull request #2364 from abutcher/cloudprovider-vars
Remove openshift_env cloudprovider facts.
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 9c71af6d9..cad549bd2 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -89,10 +89,10 @@
create: true
with_items:
- regex: '^AWS_ACCESS_KEY_ID='
- line: "AWS_ACCESS_KEY_ID={{ openshift.cloudprovider.aws.access_key }}"
+ line: "AWS_ACCESS_KEY_ID={{ openshift_cloudprovider_aws_access_key }}"
- regex: '^AWS_SECRET_ACCESS_KEY='
- line: "AWS_SECRET_ACCESS_KEY={{ openshift.cloudprovider.aws.secret_key }}"
- when: "'cloudprovider' in openshift and 'aws' in openshift.cloudprovider and 'kind' in openshift.cloudprovider and openshift.cloudprovider.kind == 'aws' and 'access_key' in openshift.cloudprovider.aws and 'secret_key' in openshift.cloudprovider.aws"
+ line: "AWS_SECRET_ACCESS_KEY={{ openshift_cloudprovider_aws_secret_key }}"
+ when: "openshift_cloudprovider_kind is defined and openshift_cloudprovider_kind == 'aws' and openshift_cloudprovider_aws_access_key is defined and openshift_cloudprovider_aws_secret_key is defined"
notify:
- restart node