summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-02-13 20:09:19 +0100
committerGitHub <noreply@github.com>2017-02-13 20:09:19 +0100
commit671062646c9a409470be374408f104352af825f0 (patch)
tree49c731b179aa83e991fa071502738c1ce95064ef /playbooks
parentd9a6627ac9e019f699b749f427e107514f96d9b0 (diff)
parentc96cbe38a9dfd08909687b347dc00a18a894b235 (diff)
downloadopenshift-671062646c9a409470be374408f104352af825f0.tar.gz
openshift-671062646c9a409470be374408f104352af825f0.tar.bz2
openshift-671062646c9a409470be374408f104352af825f0.tar.xz
openshift-671062646c9a409470be374408f104352af825f0.zip
Merge pull request #3306 from ingvagabund/oc_service
replace 'oc service' command with its lib_openshift equivalent
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates/registry.yml15
1 files changed, 9 insertions, 6 deletions
diff --git a/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml b/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml
index 999e4af65..6771cc98d 100644
--- a/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml
+++ b/playbooks/common/openshift-cluster/redeploy-certificates/registry.yml
@@ -48,12 +48,15 @@
# Replace dc/docker-registry certificate secret contents if set.
- block:
+ - name: Load lib_openshift modules
+ include_role:
+ name: lib_openshift
+
- name: Retrieve registry service IP
- command: >
- {{ openshift.common.client_binary }} get service docker-registry
- -o jsonpath='{.spec.clusterIP}'
- --config={{ mktemp.stdout }}/admin.kubeconfig
- -n default
+ oc_service:
+ namespace: default
+ name: docker-registry
+ state: list
register: docker_registry_service_ip
changed_when: false
@@ -67,7 +70,7 @@
--signer-cert={{ openshift.common.config_base }}/master/ca.crt
--signer-key={{ openshift.common.config_base }}/master/ca.key
--signer-serial={{ openshift.common.config_base }}/master/ca.serial.txt
- --hostnames="{{ docker_registry_service_ip.stdout }},docker-registry.default.svc.cluster.local,{{ docker_registry_route_hostname }}"
+ --hostnames="{{ docker_registry_service_ip.results.clusterip }},docker-registry.default.svc.cluster.local,{{ docker_registry_route_hostname }}"
--cert={{ openshift.common.config_base }}/master/registry.crt
--key={{ openshift.common.config_base }}/master/registry.key