| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Example:
atomic install --system --set INVENTORY_FILE=$(pwd)/hosts.inventory \
--set SSH_ROOT=/root/.ssh \
--set PLAYBOOK_FILE=./playbooks/byo/config.yml openshift-ansible
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
|
|
|
|
|
|
|
| |
This patch adds a check to ensure that required docker images are
available in at least one of the registries supplied in an installation
host. Images are available if they are either already present locally,
or able to be inspected using Skopeo on one of the configured
registries.
|
|
|
|
|
|
|
|
| |
Update openshift-ansible's Dockerfile to use playbook2image as a base, with the
goal to run an arbitrary playbook from a container.
The existing Dockerfile is moved to Dockerfile.rhel7 for the productized version
and will be updated to use playbook2image later.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A container that can be used to run the atomic-openshift-installer, or
by bypassing the entrypoint can be used to run ansible playbooks
directly.
Expects the user to mount a directory to /var/lib/openshift, where we'll
write out the installer.cfg, ansible.log, and hosts inventory.
WARNING: Don't run this on a host you're installing to, installation
restarts Docker which will kill your installer.
Example of running the quick installer:
docker run -ti -v ~/openshift/:/var/lib/openshift-installer/:Z -v ~/.ssh:/root/.ssh:Z openshift3/installer install
Example of running ansible directly:
docker run --entrypoint=/usr/bin/ansible-playbook -ti -v ~/openshift/:/var/lib/openshift-installer/:Z -v ~/.ssh:/root/.ssh:Z openshift3/installer -i /openshift-installer/install/.ansible/hosts /usr/share/ansible/openshift-ansible/playbooks/adhoc/uninstall.yml
|
|
|
|
| |
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
|
|
|
|
| |
Movied Dockerfile to openshift-ansible repo root and updated
README_ANSIBLE_CONTAINER.md file.
|
|
|
|
|
| |
ansible in a docker container, and also modified Dockerfile to replace
CMD with ENTRYPOINT to run the container as executable.
|
|
|
|
| |
also added privileged flag to allow sharing host network and host dirs.
|
|
This Dockerfile packages ansible and the playbook as a container image.
It's a proof of concept as it makes some assumptions:
- bindmounts private key ~/.ssh/id_rsa
- default cmd executes the byo playbook
|