LINK TO THIS REPO: https://bit.ly/2GPNhKz
Kubernetes environment with ASB (Ansible Service Broker) will be installed on your machine at the end of this exercise.
[Official Getting started docs](https://github.com/openshift/ansible-service-broker/blob/master/README.md) for Ansible Service Broker.
- Installed
kvm,virtualboxorhyperv(for minishift provisioning) - Install minishift
- MacOS
brew cask install minishift
- Other
- Download package for your OS from minishift release page
- Unpack the archive and copy binary
minishiftto any location in you$PATH
- Either use default vm-driver for minishift or config
minishiftto alternative vm-driver, e.g. for kvm:minishift config set vm-driver kvm
- Make sure
minishift startandminishift deleteare working.
- MacOS
- Install oc (v3.9.0) -
kubectllike tool for Openshift - Install apb (Ansible Playbook Bundle) tool either with
- Using Docker
git clone https://github.com/ansibleplaybookbundle/ansible-playbook-bundle.gitYOUR_PATH_DIR=~/binPATH=${YOUR_PATH_DIR}:${PATH}cp ansible-playbook-bundle/scripts/apb-docker-run.sh ${YOUR_PATH_DIR}/apb && chmod +x ${YOUR_PATH_DIR}/apb
- Using RPM (Fedora 26/27)
sudo dnf -y install dnf-plugins-coresudo dnf -y copr enable @ansible-service-broker/ansible-service-broker-latestsudo dnf -y install apb
- Using RPM (Centos 7)
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmsudo yum -y install apb
- Using virtualenv
- virtualenv /var/tmp/apb
- source /var/tmp/apb/bin/activate
- pip install apb
- Verify
- Using Docker
- Install the svcat binary
Clone and install Ansible Service Broker add-on:
git clone https://github.com/minishift/minishift-addons.git
minishift addons install minishift-addons/add-ons/ansible-service-broker
minishift addons enable ansible-service-brokerAdd admin user add-ons
minishift addons install --defaults
minishift addons enable admin-userminishift config set openshift-version v3.9.0
export MINISHIFT_ENABLE_EXPERIMENTAL=y
minishift config set iso-url centos
minishift start --memory 4GB --service-catalog --iso-url https://github.com/minishift/minishift-centos-iso/releases/download/v1.7.0/minishift-centos7.iso
eval $(minishift docker-env)