diff options
author | Samuel Munilla <smunilla@redhat.com> | 2016-07-27 09:14:42 -0400 |
---|---|---|
committer | Samuel Munilla <smunilla@redhat.com> | 2016-08-26 10:57:45 -0400 |
commit | 2fe8715d9935dc7372dab68fa2b93a702265a119 (patch) | |
tree | f29dbb53a9b17f7213c90d4975d685f47b6ca302 /roles/cockpit-ui | |
parent | 577195e3eefe19b95e39f0f52834cd3dc8f77cdf (diff) | |
download | openshift-2fe8715d9935dc7372dab68fa2b93a702265a119.tar.gz openshift-2fe8715d9935dc7372dab68fa2b93a702265a119.tar.bz2 openshift-2fe8715d9935dc7372dab68fa2b93a702265a119.tar.xz openshift-2fe8715d9935dc7372dab68fa2b93a702265a119.zip |
Add support for Atomic Registry Installs
Add the Registry deployment subtype as an option in the quick installer.
Diffstat (limited to 'roles/cockpit-ui')
-rw-r--r-- | roles/cockpit-ui/meta/main.yml | 13 | ||||
-rw-r--r-- | roles/cockpit-ui/tasks/main.yml | 19 |
2 files changed, 32 insertions, 0 deletions
diff --git a/roles/cockpit-ui/meta/main.yml b/roles/cockpit-ui/meta/main.yml new file mode 100644 index 000000000..6ad2e324a --- /dev/null +++ b/roles/cockpit-ui/meta/main.yml @@ -0,0 +1,13 @@ +--- +galaxy_info: + author: Samuel Munilla + description: Deploy and Enable cockpit-ui + company: Red Hat, Inc. + license: Apache License, Version 2.0 + min_ansible_version: 2.1 + platforms: + - name: EL + versions: + - 7 + categories: + - cloud diff --git a/roles/cockpit-ui/tasks/main.yml b/roles/cockpit-ui/tasks/main.yml new file mode 100644 index 000000000..1fa289653 --- /dev/null +++ b/roles/cockpit-ui/tasks/main.yml @@ -0,0 +1,19 @@ +--- +- name: Expose registry with route + command: oc expose service docker-registry + +- name: Install Cockpit template + command: oc create -f registry-console.yaml -n default + +- name: Create passthrough route for Registry + command: oc create route passthrough --service registry-console --port registry-console -n default + +- name: Deploy Registry + command: oc new-app -n default --template=registry-console -p OPENSHIFT_OAUTH_PROVIDER_URL="{{ openshift_https_proxy }}:8443",REGISTRY_HOST=$(oc get route docker-registry -n default --template='{{ .spec.host }}'),COCKPIT_KUBE_URL=$(oc get route registry-console -n default --template='https://{{ .spec.host }}') + +- name: Enable cockpit-ui + service: + name: cockpit.socket + enabled: true + state: started + when: not openshift.common.is_containerized | bool |