diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-03-29 15:56:01 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-03-29 15:56:01 -0400 |
commit | 67fda43df08a260571eb9b1d7f1ecdab5e323c41 (patch) | |
tree | 9846c9ff306e69f54b035e9d10c7b05b5fc2aab3 /roles/openshift_node | |
parent | 7b42f91f8637f6c3ce49f357bea75a3e6528b1ba (diff) | |
download | openshift-67fda43df08a260571eb9b1d7f1ecdab5e323c41.tar.gz openshift-67fda43df08a260571eb9b1d7f1ecdab5e323c41.tar.bz2 openshift-67fda43df08a260571eb9b1d7f1ecdab5e323c41.tar.xz openshift-67fda43df08a260571eb9b1d7f1ecdab5e323c41.zip |
Add AWS cloud provider support.
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/meta/main.yml | 1 | ||||
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/roles/openshift_node/meta/main.yml b/roles/openshift_node/meta/main.yml index 702012489..62a8480c8 100644 --- a/roles/openshift_node/meta/main.yml +++ b/roles/openshift_node/meta/main.yml @@ -14,3 +14,4 @@ galaxy_info: dependencies: - role: openshift_common - role: openshift_docker +- role: openshift_cloud_provider diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index 993c8c0cd..80b3e710d 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -81,6 +81,21 @@ notify: - restart node +- name: Configure AWS Cloud Provider Settings + lineinfile: + dest: /etc/sysconfig/{{ openshift.common.service_type }}-node + regexp: "{{ item.regex }}" + line: "{{ item.line }}" + create: true + with_items: + - regex: '^AWS_ACCESS_KEY_ID=' + 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 openshift.cloudprovider.kind == 'aws' and 'access_key' in openshift.cloudprovider.aws and 'secret_key' in openshift.cloudprovider.aws" + notify: + - restart node + - name: Additional storage plugin configuration include: storage_plugins/main.yml |