summaryrefslogtreecommitdiffstats
path: root/README_ANSIBLE.md
diff options
context:
space:
mode:
authorAvesh Agarwal <avagarwa@redhat.com>2015-08-13 18:17:11 -0400
committerAvesh Agarwal <avagarwa@redhat.com>2015-08-14 15:29:24 -0400
commit20814f5f16800dbf7956ccf8aa16eb972aeade1c (patch)
tree7a88ab6d03316db7fbba19e3fb3de399445f3971 /README_ANSIBLE.md
parent4fc01f5d73547da931f8ab822a3709e94280d7b1 (diff)
downloadopenshift-20814f5f16800dbf7956ccf8aa16eb972aeade1c.tar.gz
openshift-20814f5f16800dbf7956ccf8aa16eb972aeade1c.tar.bz2
openshift-20814f5f16800dbf7956ccf8aa16eb972aeade1c.tar.xz
openshift-20814f5f16800dbf7956ccf8aa16eb972aeade1c.zip
Added README_ANSIBLE.md file that contains instructions to build and run
ansible in a docker container, and also modified Dockerfile to replace CMD with ENTRYPOINT to run the container as executable.
Diffstat (limited to 'README_ANSIBLE.md')
-rw-r--r--README_ANSIBLE.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README_ANSIBLE.md b/README_ANSIBLE.md
new file mode 100644
index 000000000..19e32d342
--- /dev/null
+++ b/README_ANSIBLE.md
@@ -0,0 +1,18 @@
+# Running ansible in a docker container
+* Building ansible container:
+
+ ```sh
+ git clone https://github.com/openshift/openshift-ansible.git
+ cd openshift-ansible/ansible-container
+ docker build --rm -t ansible .
+ ```
+* Create /etc/ansible directory on the host machine and copy inventory file (hosts) into it.
+* Copy ssh public key of the host machine to master and nodes machines in the cluster.
+* Running the ansible container:
+
+ ```sh
+ docker run -it --rm --privileged --net=host -v ~/.ssh:/root/.ssh -v /etc/ansible:/etc/ansible ansible
+ ```
+
+
+