Hack on openshift-ansible roles against a local openshift environment. We have to use an openshift-ansible container to workaround local dependencies.
NOTE: run from base of local openshift-ansible repo.
-
Bring up local cluster
oc cluster up
-
Run openshift-ansible container. You'll need to change this command to point to a valid playbook.
docker run -ti --rm -u root \ --net=host \ -v `pwd`/test/tox-inventory.txt:/tmp/inventory \ -v `pwd`:/usr/share/ansible/openshift-ansible \ -e INVENTORY_FILE=/tmp/inventory \ -e PLAYBOOK_FILE=playbooks/<some_playbook> \ -v $HOME/.kube/config:/etc/origin/master/admin.kubeconfig \ -e KUBECONFIG=/etc/origin/master/admin.kubeconfig \ -e OPTS="-v -c local -e openshift_deployment_type=origin -e is_containerized=true" \ openshift/origin-ansible