Mobile Services Installer
This repo contains ansible playbook for installing Mobile Services into existing OpenShift 3.11 instance.
It also contains scripts for local development of Mobile Services (using
oc cluster up).
- Ansible 2.7.6
- Running instance of OpenShift 3.11 with Ansible Service Broker
- Cluster-admin access to targeted OpenShift instance
Make sure you are targeting OpenShift instance with installed Ansible Service Broker (run
oc projectsand search for
Run the installation playbook:
If you want to use the community releases, run the following command:
If you want to use the productized releases from Red Hat Container Catalog, please make sure you first follow the instructions on this page to ensure that your OpenShift cluster is configured to be able to pull from registry.redhat.io.
Additionally, create a secret that will store the credentials, as described here, and then use the following command:
ansible-playbook install-mobile-services.yml -e "ansible_playbookbundle_registry_type=rhcc" -e "rhcc_registry_auth_name=<name of the secret>"
It will take a few minutes to redeploy and load all Mobile Services to Service Catalog. If you want to force the service catalog to refresh, run the following command:
oc get clusterservicebroker ansible-service-broker -o=json > broker.json oc delete clusterservicebroker ansible-service-broker oc create -f broker.json
Verify that installation was successful by navigating to https://your-openshift-instance-url.com/console/catalog. A new tab
Mobileshould appear in the catalog.
By following next steps, you can spin up your local OpenShift instance with Mobile Services already installed.
You may need to configure your firewall first:
sudo firewall-cmd --permanent --add-port=8443/tcp sudo firewall-cmd --permanent --add-port=8053/tcp sudo firewall-cmd --permanent --add-port=53/udp sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --reload
Download archive with oc client binary, extract it, add it to your
$PATH and run:
See OpenShift documentation for more details.
oc cluster up is causing problems for users using Mac OS (since OpenShift version 3.10), it is advised to use Minishift as an alternative.
To spin up OpenShift 3.11 cluster locally, run:
Once the setup is complete, it is possible to stop the cluster with
minishift stop and then run it again with
See Minishift documentation for more details.