From 5129f8b4b4a6d5451fd47269dc652a6eac0d3f24 Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Thu, 2 Mar 2017 08:42:25 -0500 Subject: Correct config for hosted registry --- roles/openshift_hosted/tasks/registry/registry.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/openshift_hosted/tasks/registry') diff --git a/roles/openshift_hosted/tasks/registry/registry.yml b/roles/openshift_hosted/tasks/registry/registry.yml index 39e7de230..79b6a9504 100644 --- a/roles/openshift_hosted/tasks/registry/registry.yml +++ b/roles/openshift_hosted/tasks/registry/registry.yml @@ -65,7 +65,8 @@ port: 5000 protocol: TCP targetPort: 5000 - selector: "{{ openshift_hosted_registry_selector }}" + selector: + docker-registry: default session_affinity: ClientIP service_type: ClusterIP -- cgit v1.2.3 From 33bc830837735f2b18ca72b0a3891547abd17dba Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Thu, 2 Mar 2017 11:45:28 -0500 Subject: Add oc_adm_policy_user task cluster-role policy --- roles/openshift_hosted/tasks/registry/registry.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/openshift_hosted/tasks/registry') diff --git a/roles/openshift_hosted/tasks/registry/registry.yml b/roles/openshift_hosted/tasks/registry/registry.yml index 79b6a9504..d89ce855a 100644 --- a/roles/openshift_hosted/tasks/registry/registry.yml +++ b/roles/openshift_hosted/tasks/registry/registry.yml @@ -56,6 +56,13 @@ openshift_hosted_registry_force: - False +- name: oc adm policy add-cluster-role-to-user system:registry system:serviceaccount:default:registry + oc_adm_policy_user: + user: system:serviceaccount:default:registry + resource_kind: cluster-role + resource_name: system:registry + state: present + - name: create the default registry service oc_service: namespace: "{{ openshift_hosted_registry_namespace }}" -- cgit v1.2.3