diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-08-23 10:55:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 10:55:17 -0400 |
commit | a56384839e769657c9f97c1fcdbea55e9ff92f1c (patch) | |
tree | 2894d6640753a19c6aab85f4a8cb159131bfd91a /roles/openshift_hosted/tasks | |
parent | b107f677a3563f6db9a1ef17fe10518d321d495c (diff) | |
parent | fb0adaad2e27f80ecae7790b206b29cbebdae36a (diff) | |
download | openshift-a56384839e769657c9f97c1fcdbea55e9ff92f1c.tar.gz openshift-a56384839e769657c9f97c1fcdbea55e9ff92f1c.tar.bz2 openshift-a56384839e769657c9f97c1fcdbea55e9ff92f1c.tar.xz openshift-a56384839e769657c9f97c1fcdbea55e9ff92f1c.zip |
Merge pull request #5120 from smarterclayton/allow_gcs_registry
Allow GCS object storage to be configured
Diffstat (limited to 'roles/openshift_hosted/tasks')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/storage/object_storage.yml | 15 | ||||
l--------- | roles/openshift_hosted/tasks/registry/storage/registry_config_secret.j2 | 1 |
2 files changed, 14 insertions, 2 deletions
diff --git a/roles/openshift_hosted/tasks/registry/storage/object_storage.yml b/roles/openshift_hosted/tasks/registry/storage/object_storage.yml index 8aaba0f3c..8553a8098 100644 --- a/roles/openshift_hosted/tasks/registry/storage/object_storage.yml +++ b/roles/openshift_hosted/tasks/registry/storage/object_storage.yml @@ -2,7 +2,7 @@ - include: s3.yml when: openshift.hosted.registry.storage.provider == 's3' -- name: Ensure the resgistry secret exists +- name: Ensure the registry secret exists oc_secret: name: "{{ registry_config_secret_name }}" state: present @@ -10,6 +10,19 @@ - path: /tmp/config.yml data: "{{ lookup('template', 'registry_config.j2') }}" register: registry_config_out + when: openshift_hosted_registry_storage_gcs_keyfile is not defined + +- name: Ensure the registry secret exists for GCS + oc_secret: + name: "{{ registry_config_secret_name }}" + state: present + contents: + - path: /tmp/config.yml + data: "{{ lookup('template', 'registry_config.j2') }}" + - path: /tmp/gcs.json + data: "{{ lookup('file', openshift_hosted_registry_storage_gcs_keyfile) | string }}" + register: registry_config_out + when: openshift_hosted_registry_storage_gcs_keyfile is defined - name: Add secrets to registry service account oc_serviceaccount_secret: diff --git a/roles/openshift_hosted/tasks/registry/storage/registry_config_secret.j2 b/roles/openshift_hosted/tasks/registry/storage/registry_config_secret.j2 deleted file mode 120000 index b9e82c1ea..000000000 --- a/roles/openshift_hosted/tasks/registry/storage/registry_config_secret.j2 +++ /dev/null @@ -1 +0,0 @@ -../../../templates/registry_config_secret.j2
\ No newline at end of file |